01
Ingest
Clone the repository and parse every file into an AST with tree-sitter, which covers 100+ languages.
Technical detail
The indexing pipeline, the three-layer knowledge model, and the tool surface agents actually call.
Pipeline
Seven stages. Stages one through five run on first index; six and seven run continuously after that.
01
Clone the repository and parse every file into an AST with tree-sitter, which covers 100+ languages.
02
Extract symbols and relationships into a graph database, with stable node IDs so later runs can be diffed against earlier ones.
03
Describe functions, then modules, then subsystems, then the whole repository — each level built on the summaries below it.
04
Traverse the graph from entry points to sinks, then name and describe each flow and the use case it serves.
05
Read the explicit sources — lint configs, ADRs, contribution guides — and infer the rest from patterns repeated across the code.
06
On each commit, re-process only what changed and everything that depends on it, so the knowledge base never goes stale.
07
Expose the knowledge base through MCP tools, and render documentation and diagrams as views over the same data.
MCP tools
Agents pull exactly the context they need, which keeps answers grounded and token budgets sane.
search_semanticget_symbolget_callersget_calleesget_dependencieslist_flowsget_flowget_conventionsimpact_analysisexplainDesign note
Each layer answers a class of question the others answer badly.
A pure vector index handles “how does billing work?” and fails on “what calls this function?” — embeddings blur exactly the precision that question needs. A pure code graph is the reverse: it answers the call question exactly and cannot say what the code is for. Neither knows whether a new file matches how this team writes code.
So the structural layer stays exact, the semantic layer carries meaning, and the conventions layer carries the rules with links to the evidence behind them. The query layer picks the right one, or composes across all three and cites what it used.
Tell us about the repository and what your team keeps re-explaining to each other, and we'll tell you whether Lore is the right shape for it.