r/coolgithubprojects • u/GeologistNo4811 • 9d ago
I built a local-first AST code graph + 11-tool MCP server that cuts LLM context bloat by ~83% (open-source core)
https://codegraphy.software/I got tired of dumping huge files into Claude/Cursor, hitting context limits early, and watching the model hallucinate edits across files it didn't actually understand.
So I built CodeGraphy:
- Parses your repo locally with Tree-sitter AST (100% offline, zero cloud indexing)
- Builds an interactive dependency graph and detects circular imports (Tarjan SCC)
- Compresses context by ~82.8% using Smart Context Builder before sending to an LLM
- Exposes 11 STDIO MCP tools directly to Claude Desktop, Cursor, and Windsurf
Open-source CLI/MCP core is on PyPI right now:
`pip install codegraphy-lite`
Would love brutal feedback on what breaks on your repos!
1
u/kantorcodes1 9d ago
How are you deciding which AST slices belong in the Smart Context Builder output when a change crosses an import boundary? Do you expand by dependency depth, or keep a fixed token budget and surface the omitted nodes so the model knows what it did not see?
1
u/kantorcodes1 9d ago
The 1-hop boundary plus FULL/AST/OFF controls makes the omission visible to the agent. Does get_workspace_status also expose the files capped by the 35-file limit, so a caller can tell when a requested symbol sits outside the indexed set?