Expand description
Code graph for Mimir: tree-sitter symbol extraction (no LLM, no type checker) persisted into the unified node/edge store, plus petgraph queries (callers/calls/impact/path/hubs/communities).
Symbols are ordinary nodes — they embed into semantic recall and link to memories like everything else. Stable identity across re-extraction lives in meta.stable_id; see store_graph.
Re-exports§
pub use queries::CodeGraph;pub use store_graph::update;pub use store_graph::GraphStats;
Modules§
- extract
- Tree-sitter symbol/call/import extraction. No LLM, no type checker — honest static extraction with explicit confidence tiers downstream.
- languages
- Per-language tree-sitter adapters: which AST nodes are definitions, scopes, calls, and imports — and how to read docs/signatures off them.
- queries
- In-memory graph queries over the persisted symbols/edges.
- store_
graph - Persist extraction results as nodes/edges, incrementally.
Functions§
- resolve_
symbol - Resolve a symbol by short id, exact qualified name, or bare name. Bare-name matches must be unique; ambiguity lists the candidates.
- symbol_
line - One-line agent format for a symbol:
c:TAIL [method rust] path:12-40 qualified.