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
- Developer explains agent memory design: append-only storage plus quarantine to handle collisions — rchardkovacs · 2026-11-30
- WorkflowArena: 145 long-horizon tasks benchmark multi-agent orchestration across nine models — jiqizhixin · 2026-11-30
- VASP: visual-anchored agent tops scientific poster generation with 94.3 mAP figure extraction — Huihan Wang · 2026-11-30
- Dev shows agents auto-verifying and sending SAFE fundraising docs in parallel — Scobleizer · 2026-11-30
- Ex-Citadel MD: AI will automate equity long-short workflows within 3 years; job seekers should build eval suites — _AustinCalvert_ · 2026-11-30
- Why Google bans users: wrapping Gemini CLI in Claude Code violates consumer ToS — thomasahle · 2026-11-30