WeSearch

Show HN: TS Compiler Knowledge Graph reducing AI tokens about 90%

·9 min read · 0 reactions · 0 comments · 5 views
#show#compiler#knowledge#graph#reducing
Show HN: TS Compiler Knowledge Graph reducing AI tokens about 90%
TL;DR · WeSearch summary

@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.

Key facts
About this source

Hacker News (AI / LLM) files mainly under ai. We currently carry 2,236 of its stories.

Original article
GitHub
Read full at GitHub →
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.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub