Local Code Index for Agents Resolves Imports Without a Language Server
Goldziher · reddit · 2026-08-08
The author introduces a local code index tool (Rust, MIT) designed for coding agents that resolves imports without a build step or language server (LSP). This is crucial when a repo doesn't compile because an agent is mid-edit.
While lacking LSP precision, it offers tiered resolution:
- JS/TS: Uses oxc for real scope trees and cross-file import resolution.
- Python/Java: Uses GitHub's archived stack-graphs (forked and maintained by the author with bug fixes).
- Others: Intra-file lexical scope binding only.
Supporting 371 grammars, the tool's key feature is refusing to over-claim: querying callers returns all name-scan hits, annotating which ones are proven, preventing agents from blindly trusting a small subset of results. It runs fully offline, scanning 81k TypeScript files in 18 seconds on an M4.
More from coding & agent
- Hermes Agent Announces Support for Portable Plugin Standard with MCP Compatibility — Teknium · 2026-08-08
- AI Agents Are Changing What 'Memory Leak' Means to Developers — nptacek · 2026-08-08
- AI Contestant Quits Early: Claude Agent Decides Project is 'Finished' — morgymcg · 2026-08-08
- Model Routing in Agent Loops: Which Calls to Delegate to Small Models? — Commercial_Try7052 · 2026-08-08
- Making an AI Bid Writer Refuse to Lie: Engineering Alignment in Business — Lucius-AI · 2026-08-08
- OpenNews MCP Aggregates 85+ Real-Time Data Sources for AI Assistants — Roger_M_Taylor · 2026-08-08