Coding agents often struggle with massive token costs and context windows when trying to understand large codebases. A new approach uses a TypeScript compiler-resolved knowledge graph to reduce AI tokens by about 90 percent.
Instead of feeding raw source files, an MCP server provides agents with a graph of declarations, relationships, and signatures. This allows the agent to query precise code structures, bypassing the need to read entire file bodies. It dramatically cuts down on token usage.
For example, codex/gpt-5.6-sol reduced onboarding task costs by 96 percent using this method. This is a game-changer for building efficient and scalable AI agents that interact with complex code.







































![Data-Parallel Thinking (2024) [pdf]](https://tdd-edge.b-cdn.net//infographics/40-hn-49045974.jpg)



























