Show HN: TS Compiler Knowledge Graph reducing AI tokens about 90%
@ttsc/graph @ttsc/graph is an MCP server that gives AI agents a code graph instead of source files. It indexes a TypeScript codebase into a graph of declarations and their relationships, and answers an agent's code questions from that index through a single tool. Every node and edge is resolved by the TypeScript compiler itself, so the graph is exact for TypeScript and TSX, never text-guessed.
- ▪@ttsc/graph @ttsc/graph is an MCP server that gives AI agents a code graph instead of source files.
- ▪It indexes a TypeScript codebase into a graph of declarations and their relationships, and answers an agent's code questions from that index through a single tool.
- ▪Every node and edge is resolved by the TypeScript compiler itself, so the graph is exact for TypeScript and TSX, never text-guessed.
Hacker News (AI / LLM) files mainly under ai. We currently carry 2,236 of its stories.
Opening excerpt (first ~120 words) tap to expand
@ttsc/graph @ttsc/graph is an MCP server that gives AI agents a code graph instead of source files. It indexes a TypeScript codebase into a graph of declarations and their relationships, and answers an agent's code questions from that index through a single tool. Every node and edge is resolved by the TypeScript compiler itself, so the graph is exact for TypeScript and TSX, never text-guessed. Coding agents normally answer a code question by grepping the repository and reading file after file into context, and that reading is most of the token bill. The graph removes the need for it, and its own answers stay small in turn: they carry names, signatures, relationships, and source spans, never file bodies.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.