OntoPrune
OntoPrune is a neuro-symbolic context pruning middleware for local small language models (SLMs) and coding agents. Through local AST parsing and an in-memory RDF graph, it converts multi-file source code into minimal typed dependency contracts, isolating closed-world functional boundaries before attention computation, thereby reducing input tokens, lowering first-token latency (TTFT) on CPU, and preventing leakage of internal proprietary code. The project is provided as an MCP server and CLI, supporting cross-file dependency resolution and deterministic verification of generated code.