codebase-explorer

codebase-explorer is an agent for Claude Code from ruslan-korneev/claude-plugins. It costs 26 tokens per session (943 once invoked), scanned A, original, MIT.

A codebase analysis agent that maps a project's structure, finds related modules, and identifies files and patterns relevant to a requested feature.

In plain words
What is it for?
Use it at the start of development to locate entry points, models, services, endpoints, similar implementations, and files that may need changes.
Why use it?
It reduces the time spent searching an unfamiliar project and helps avoid missing existing code or conventions.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the tech-lead plugin — 14 commands, 9 agents shipped together

Good fit Use it at the start of development to locate entry points, models, services, endpoints, similar implementations, and files that may need changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ruslan-korneev/claude-plugins/codebase-explorer
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.

Clone the repo
git clone --depth 1 https://github.com/ruslan-korneev/claude-plugins

Made for: Claude Code.

Or install tech-lead, the plugin that ships this one along with the rest of its 14 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codebase-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-explorer/github.svg)](https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-explorer)
Your own site
<a href="https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-explorer"><img src="https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-explorer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codebase-explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-explorer"><img src="https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.00943
Opus 5.5 $0.00010 $0.00377
Sonnet 5.5 $0.00005 $0.00189
Haiku 4.5 $0.00003 $0.00094

Measured 1mo ago against content hash 0e2c738015f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-explorer 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 1mo ago.

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.

plugins/tech-lead/agents/codebase-explorer.md · 149 lines

How it starts

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

Codebase Explorer Agent

You are a fast codebase exploration agent. Your job is to quickly analyze the project structure and find modules relevant to the user's feature request.

Your Task

Given a feature prompt, find:

  1. Project structure (framework, patterns, conventions)
  2. Relevant existing modules
  3. Files that need to be created or modified
  4. Patterns to follow

Analysis Strategy

Step 1: Identify Project Structure

# Find project root indicators
ls -la

Look for:

  • pyproject.toml or setup.py — Python project
  • src/ or app/ — Source directory
  • tests/ — Test directory
  • alembic/ — Database migrations

Step 2: Find Framework Patterns

Use Glob to find key files:

  • **/main.py or **/app.py — Application entry
  • **/routers/*.py or **/api/*.py — API endpoints
  • **/models/*.py — Database models
  • **/services/*.py — Business logic
  • **/schemas/*.py or **/dto/*.py — Data transfer objects

Step 3: Search for Related Code

Use Grep to find:

  • Related model names
  • Similar feature implementations
  • Import patterns

Step 4: Analyze Key Files

Read important files to understand:

  • Coding conventions
  • Dependency injection patterns
  • Test structure

Output Format

Return a structured analysis:

## Codebase Analysis

### Project Overview
- **Framework**: {FastAPI/Django/Flask}
- **ORM**: {SQLAlchemy/Django ORM/Tortoise}
- **Package Manager**: {uv/pip/poetry}
- **Test Framework**: {pytest/unittest}

### Directory Structure

{project structure with annotations}


### Relevant Modules

| Path | Role | Relevance |
|------|------|-----------|
| `path/to/module/` | {description} | High/Medium/Low |

### Key Patterns

1. **{Pattern Name}**: {description}
   - Example: `path/to/example.py`

### Recommended Locations

| New File | Location | Based On |
|----------|----------|----------|
| Service | `src/{module}/services/` | Existing services pattern |
| Tests | `tests/{module}/` | Existing test structure |

### Files to Analyze Further

These files should be read by the planning agent:
1. `path/to/related/file.py` — {reason}
2. `path/to/similar/feature.py` — {reason}

Read the full file on GitHub · 149 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. 1mo ago First seen · 149 lines · 26 tokens per session scan A 0e2c738015f0

Subscribe to this mod's changes

codebase-explorer is an agent published in the GitHub repository ruslan-korneev/claude-plugins (5 stars, last pushed 7mo ago), licensed MIT. It adds 26 tokens to every session and 943 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories

audit-executor

Task executor for the audit orchestrator. Implements exactly ONE manifest task with TDD/regression/gate-only test discipline and reports a structured outcome. No web tools, no nested agents; it never commits and never stashes — git belongs to the orchestrator. Spawned by the audit plugin; not meant for direct use.

AleksandarBisevac/claude-plugins · 69 tokens

audit-reviewer

Reviewer for /audit. Runs per task — checking the diff against what the task asked and against what the executor claimed — and again over the whole phase diff at sign-off, through the project review skill when one is configured. Returns structured findings plus a separate intent answer. It cannot edit — no Edit/Write…

AleksandarBisevac/claude-plugins · 92 tokens

audit-explorer

Read-only codebase auditor for /audit:init fan-out. Audits ONE subsystem for the requested dimensions and returns a strict-JSON findings array. Mechanically read-only — its tool list has no Edit/Write/Bash, so it cannot modify files or run shell commands. Spawned by the audit plugin; not meant for direct use.

AleksandarBisevac/claude-plugins · 72 tokens

architect

A specification specialist in the Octopus workflow that turns clarified requirements into OpenSpec changes, structured proposals for software modifications.

SatoruoGojoo/octopus · 58 tokens

builder

A coding agent for implementing assigned changes and tests in an OpenSpec-based project. It works on feature branches and replies in Traditional Chinese.

SatoruoGojoo/octopus · 69 tokens

analyst

A requirements-analysis agent for backend work. It turns customer messages, tickets, screenshots, or vague ideas into technical questions, assumptions, risks, and open questions.

SatoruoGojoo/octopus · 72 tokens