DeepMap
Code RAG that reasons, not just retrieves. Graph + Vector + FTS. 100% local.
DeepMap is a Claude Code plugin that searches your code three ways at once: graph (how code connects),
vector (what code means) and full-text (names and keywords, with fuzzy matching for typos and spelling).
It fuses the three into one ranked list. Then Claude reasons over it, with a file:line on every result and a
confidence label on every link.
- Impact analysis in one call: callers, routes, jobs and cascades, up to 3 hops out.
- Multi-language: 25 programming languages parsed, 8 of them with their own end-to-end test suites, plus
framework wiring for Python, Rails, .NET, Java, Go and TypeScript / JavaScript.
- MIT, 100% local: no cloud, no API key, no Docker.
RAG is retrieval-augmented generation: Claude looks up your code before it reasons and answers.
DeepMap is an early release, and features may change. CHANGELOG.md lists what changed.
Install · How it works · Known limits
The whole idea, in three lines
- Retrieves three ways at once. Graph + Vector + FTS, fused into one ranked list.
- Reasons before it answers. A bundled skill tells Claude to follow the links and read the cited code.
- Backs every answer with evidence. A
file:line on every result, a confidence label on every link.
Three retrieval modes. One ranked answer.
One call to deepmap_search runs all three at once and merges their rankings. You never pick a mode.
| Mode | What it does | Example |
|---|
| Graph: how your code connects | Your code as nodes and links in Neo4j, a graph database. In search, code with more callers ranks higher. For "what breaks", DeepMap walks the links backwards, up to 3 hops, across calls and framework wiring. | "Who calls this? What depends on the User model?" |
| Vector: what your code means | Each function, method and class gets a one-line intent summary. A local model on your CPU turns it into an embedding, a list of numbers that captures meaning, so vector search finds code by what it does even when your words don't appear in it. | "Find the code that retries failed uploads." |
| FTS: names, keywords and fuzzy matches | Full-text search (FTS) matches your words against names and summaries, the way a search engine does, and ranks the hits by relevance. It is fuzzy: a typo or a different spelling still finds the name. | retry_faild_charges still finds retry_failed_charges |
Fused with RRF. Reciprocal Rank Fusion, a standard way to combine ranked lists, merges the three rankings into
one. A result that several modes agree on rises to the top.
The ranking, exactly
- Vector: similarity between your question and each symbol's name plus its one-line summary (a 768-dimension
local model).
- Full-text: BM25 relevance ranking over names and summaries. Every word of three or more characters is matched
fuzzily, within 2 edits, so typos and spelling variants still hit. A method is indexed under its
Class.method
name.
- Graph: the vector score boosted by the number of call links pointing at the code:
score × (1 + log(1 + callers)). Calls are matched by name, so common names get a lift too.
- Fusion: Reciprocal Rank Fusion with k = 60, implemented directly in
build/retrieval.py. By default the
three modes carry equal, fixed weights, which is exactly plain RRF.
Your agent greps. Grep can't see how your code connects.
Text search is perfect for finding a name. But "what breaks if I change this?" is about connections, and many
never appear as text. Vector search alone finds similar code; it cannot follow a call chain.
- "What breaks if I change this function?" Grep finds the lines that mention it, and finding the callers of
those callers takes more searches. DeepMap walks up to 3 hops out in one call and labels how sure it is about
each result.
- "What's wired to this: routes, jobs, injected services?" Grep sees decorators and config, not the
connections they create. DeepMap stores each one as a typed link: a route to its handler, a job to its function.
- "What gets deleted along with a Customer?" Grep finds each declaration; following the chain is on you.
DeepMap follows declared cascades hop by hop in Rails, Django, SQLAlchemy, EF Core, JPA, GORM and TypeORM.
Here is "What breaks if I change charge_card()?" on a six-file example app with a checkout API and a background
job. Grep needs five searches, and only finds the job and the route if you know to look for the decorators.
DeepMap answers in one call:
/deep-map:impact "charge_card"