SymbolPeek lets coding agents read symbols instead of whole files, saving 1.61M tokens

Real_Veterinarian851 · reddit · 2026-07-23

SymbolPeek is an open-source MCP server for coding agents that asks for symbols, not whole files.

For TypeScript and JavaScript, it uses the official TypeScript Compiler API to provide readsymbol, findreferences, findcallers, findcallees, gotodefinition, gettype, and getcallhierarchy. For Rust, Python, Go, Java, JSON, and Markdown, it uses Tree-sitter for syntax-aware navigation.

The author says the tool has already avoided 163 file reads across 162 requests, saving about 352,910 lines, 6.4 MB, and an estimated 1.61M tokens, with an average context reduction of 95.7%. The goal is to keep AI assistants from loading huge files when they only need one declaration.

Related event: SymbolPeek: Open-Source MCP Server for Symbol-Level AI Code Reading(2 posts)→

Original post →

More from coding & agent

coding & agent channel →