Who it is forA developer or reviewer who inherits a TypeScript, Python, Go, Rust, Java, Kotlin or JavaScript codebase and needs to trace where a function is used.
The problemWithout a map, Claude runs grep and reads many files to work out what calls what, which is slow and often incomplete.
The outcomeClaude answers who defines, calls or imports a symbol in a single lookup, with the map built from your existing code.
What you need first
- Node 22.16 or newer
- A git repository for your project
- Claude Code installed and able to run hooks
- Optional: a Postgres or MongoDB database if you want to share memory across machines
Steps
npm install -g claude-dbcd your-projectclaude-db install --project- Run
claude-db scanto map the existing code into memory. - In Claude Code, run
/cdb-scanif you want to map the codebase from inside a chat, then ask who calls a function you choose.
Prompt for your agent
In the repo <repo-path>, after running claude-db scan, ask Claude Code who defines, calls and imports the symbol <symbol-name>. Expected output is a list of definition and call sites. Verify at least one listed site with grep before trusting the result.
Caveat. The README notes that plain grep wins in some cases, so check Claude DB results against grep when precision matters.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Avijit07x/claude-db and "Map a codebase so Claude finds callers in one call"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer