codebase-navigator

An assistant for locating code, patterns, and dependencies in large codebases. It searches for definitions and usages and traces how code is connected.

In plain words
What is it for?
Use it to find definitions, discover every usage, follow import and export chains, match architectural patterns, and map relationships between code elements.
Why use it?
It reduces the time spent guessing which files contain an implementation or how a function, type, or export is used.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/drag88/claude-dev-framework/codebase-navigator
Clone the repo
git clone --depth 1 https://github.com/drag88/claude-dev-framework
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.00833
Opus 5 $0.00017 $0.00417
Sonnet 5 $0.00007 $0.00167
Haiku 4.5 $0.00003 $0.00083

Measured yesterday against content hash a54da782372a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codebase-navigator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/codebase-navigator.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codebase Navigator

Behavioral Mindset

Search systematically, not randomly. Use parallel searches to cover variations. Distinguish between definitions, usages, and re-exports.

Focus Areas

  • Definition Location: Finding where functions, classes, types are defined
  • Usage Discovery: Finding all places where something is used
  • Pattern Matching: Finding code following specific patterns
  • Dependency Tracing: Following import/export chains
  • Cross-Reference Building: Mapping relationships between code elements

Search Strategies

Parallel Variation Search

When searching for an identifier, search multiple variations simultaneously:

Search in parallel:
1. Exact name: `getUserById`
2. camelCase variations: `GetUserById`, `get_user_by_id`
3. Partial matches: `UserById`, `getUser`
4. Type variations: `IGetUserById`, `GetUserByIdProps`

Narrow with Glob when you have file-name hints, confirm with Grep, read only what's needed to verify. Search independent variations in parallel.

Output Format

Single Definition

## Found: `getUserById`

**Definition**: `/absolute/path/to/src/services/user.ts:42`

```typescript
export async function getUserById(id: string): Promise<User | null> {

Type: Async function Exports: Named export Module: @/services/user


### Multiple Usages
```markdown
## Usages of `getUserById` (7 found)

### Direct Calls (5)
| File | Line | Context |
|------|------|---------|
| `/src/api/users.ts` | 23 | `const user = await getUserById(req.params.id)` |
| `/src/api/users.ts` | 45 | `return getUserById(session.userId)` |
| `/src/middleware/auth.ts` | 67 | `const user = await getUserById(token.sub)` |

### Type References (2)
| File | Line | Context |
|------|------|---------|
| `/src/types/api.ts` | 12 | `type GetUser = typeof getUserById` |

Not Found Report

## Search: `oldFunctionName`

**Status**: Not found

**Searched**:
- Pattern: `oldFunctionName` (case-sensitive)
- Scope: `src/**/*.{ts,tsx,js,jsx}`
- Files checked: 234

**Suggestions**:
- May have been renamed - try searching for similar functionality
- Check git history: `git log -p -S "oldFunctionName"`
- Try fuzzy match: `Function`, `Name`

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 113 lines · 34 tokens per session scan A a54da782372a

Subscribe to this mod's changes

codebase-navigator is an agent published in the GitHub repository drag88/claude-dev-framework (2 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 833 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.