Graph vs vector search for code?
Both: vectors catch 'code that does similar things', graphs answer 'who calls/depends on this' exactly. Structure first, similarity second.
Glossary · Repomap (Code Graph Retrieval)
Who calls this, answered in tokens, not files.
The short answer
A repomap parses repositories into symbol graphs (tree-sitter + PageRank-style ranking) so agent questions (callers, dependencies, blast radius, covering tests) return short identifier lists instead of whole files.
Retrieval by relationship beats retrieval by similarity for code: 'the definition plus three call sites' instead of '50 files mentioning the string.' Measured wins include multi-minute refactors collapsing to a few tool calls at double reward.
Repomap (Code Graph Retrieval), working
The same request twice: first the agent explores, later the Mind serves what earlier sessions settled.
In Anvaya
Questions
Both: vectors catch 'code that does similar things', graphs answer 'who calls/depends on this' exactly. Structure first, similarity second.
Forty matches pasted in full cost tens of thousands of tokens and thin attention; a caller list costs hundreds and is exact.
Branch-awareness and freshness, an index trailing your edits curates wrong tokens with full confidence.
23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.
Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.