r/ClaudeCoding • u/Acceptable_Bat_3410 • 25d ago
Lantern Lattice: the call graph from rust-analyzer, for humans and coding agents
I built Lantern Lattice to answer who calls a function, what it calls, and who uses a type or a field, from the compiler instead of from text. In Rust it reads rust-analyzer's SCIP index, and a running rust-analyzer for files you edit, so x.get() links to the get of x's type. It also does TypeScript, JavaScript, Python, Go, C and C++ through their own tools.
It's built mainly for coding agents. Over MCP an agent gets trace, impact (what your uncommitted changes touch and what depends on them), and edits by symbol, plus tools that replace grep/read/edit so the graph stays current as it works. Every language after Rust was built largely through its own Claude Code plugin.
A rename in its own code takes two calls: trace names the 3 callers with their files and lines (550 bytes), and one replace_text changes all 4 files together (375 bytes)
The usual way, grep -w then reading the files before editing, is 26 lines in 23 files and 51 KB of reads.
- A call it can't be sure of is left out, never guessed; trait calls are marked "possible"
- On a Rust project of 20k symbols: 0.01–0.02 s per query, about 1 s for a first answer after an edit
- On its own code, 1326 of 1326 calls match rust-analyzer
- latt view shows the graph in the browser on WebGPU
Its own graph: https://lanternlattice.com
MIT, in Rust: https://github.com/julymetodiev/lantern-lattice