AST-Retrieval MCP Saves 2.1M Tokens in Real Claude Code Roblox Project
naruto_uzumaki00 · reddit · 2026-08-14
A developer integrated a custom AST-retrieval MCP plugin while building a Roblox game entirely with Claude Code. The plugin uses tree-sitter to feed the agent exact code slices instead of full files.
Real-World Metrics
- Across a 164k-token repo, 188 real retrieval calls were logged.
- Saved approximately 2.12 million tokens (93% reduction) compared to whole-file reads.
- This directly cuts costs on metered APIs and delays hitting weekly caps on Claude Code subscriptions.
Additional Details
- The tool is open-source (Apache-2.0) and works as an MCP plugin (Claude Code + Codex) or a proxy.
- Supports 13 languages including Luau.
More from coding & agent
- Perplexity Launches Agent API, More Than Doubling Sonar's Research Scores — perplexity_ai · 2026-08-14
- Google Launches Gemini 3.7 Flash with Major Upgrades in Coding and Agentic Tasks — jackwoth · 2026-08-14
- Developer Uses Claude and Codex to Rapidly Build a 3D Monopoly Game — nijfranck · 2026-08-14
- Arcee's Nac Framework Integrates with Mainstream Coding Tools — code_star · 2026-08-14
- Grok Build 1.0.4 Released: Adds Interruption Hooks and Domain Filtering — mark_k · 2026-08-14
- Tripwire: Open-Source Proxy to Monitor Coding Agents and Stop Infinite Loops — pritisinghhhh · 2026-08-14