DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to map a codebase so Claude finds callers in one call with Claude DB

Index an existing project so Claude can see what defines, calls or imports a symbol.

Short answer: npm install -g claude-db; then cd your-project; claude-db install --project. All steps.

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

  1. npm install -g claude-db
  2. cd your-project
  3. claude-db install --project
  4. Run claude-db scan to map the existing code into memory.
  5. In Claude Code, run /cdb-scan if 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer