Mori (森)
A local code graph for tracing callers, dependencies, and connections between repositories.
I built Mori around a question that comes up on almost every code change. If I change this function, which other parts of the system should I check? That might mean finding direct callers in one repository. It might mean tracking a GraphQL operation from a TypeScript client to a Go resolver in another repository.
Mori reads source with Tree-sitter and records what it can resolve in a local SQLite graph. The graph keeps file locations alongside symbols and edges, so a caller result tells me where to read next. The index persists across sessions. I can query it through the command line, from an agent through the mori-graph MCP server, or through the graph UI.

Mori builds on Codebase Memory MCP. The screenshot shows its Lens UI on public source. Mori embeds that UI. Capture notes
Index a Repository and Find Its Callers
Install the release binary using the Mori setup guide. Then index a repository and use the project name returned by the command.
mori cli --quiet index_repository --repo_path "$PWD" --name example
mori cli --quiet index_status --project example
mori cli --quiet search_graph --project example --name_pattern '.*handle.*'Use an exact qualified name from the search result with command mori cli trace_path and option --direction inbound to find callers. For an agent session, the Mori Graph skill explains which graph tool to use and how to check index coverage. The MCP server page has registration examples and the tool list.
Follow a Call Across Repositories
Indexing runs separately for each repository. A link run compares the client and provider graphs and records where an operation reaches a route in another project. For gqlgen, Mori can also connect that route to the resolver method when it can resolve the binding.
The GraphQL walkthrough shows how to find the client and resolver to check before changing a field. It follows operation OpenTrades from a TypeScript client to the Go method Trades.
Read the Source Before Acting
The graph represents code Mori could index and relationships it could resolve. A runtime-built query can escape static analysis. A stale index can point at the previous version of a file. I use Mori to narrow the search, then read the call site, handler, and relevant tests before changing behavior.
Unique Divine