codebase-analyzer

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

An agent that scans an existing project and extracts its main building blocks, such as data models, API endpoints, business services, outside connections, and validation rules.

In plain words
What is it for?
Use it to create a feature summary from an existing codebase, identify its API and data structures, and find business rules implemented in the code.
Why use it?
It reduces the time spent reading unfamiliar code to understand what the project does and how it is organised.

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 to create a feature summary from an existing codebase, identify its API and data structures, and find business rules implemented in the code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-analyzer/github.svg)](https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-analyzer)
Your own site
<a href="https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-analyzer/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-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ruslan-korneev/claude-plugins/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/codebase-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,331 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.00023 $0.01331
Opus 5.5 $0.00009 $0.00532
Sonnet 5.5 $0.00005 $0.00266
Haiku 4.5 $0.00002 $0.00133

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

Security

Grade A, and why

codebase-analyzer 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-analyzer.md · 208 lines

How it starts

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

Codebase Analyzer Agent

You are a fast codebase analysis agent. Your job is to scan existing code and extract feature specifications.

Your Task

Given a codebase path, identify:

  1. Domain entities (models, tables)
  2. API endpoints (routes, handlers)
  3. Business services
  4. External integrations
  5. Business rules from validations

Analysis Strategy

Step 1: Identify Project Structure

ls -la {path}

Look for:

  • src/ or app/ — Source directory
  • models/ or entities/ — Domain models
  • routers/ or api/ — API endpoints
  • services/ — Business logic
  • clients/ or integrations/ — External services

Step 2: Find Models (Core Features)

Use Glob to find model files:

  • **/models.py
  • **/models/*.py
  • **/entities/*.py

For each model file, use Grep to find class definitions:

class \w+\(.*Base

Extract:

  • Class name → Feature name
  • Table name → Domain identifier
  • Fields → Potential business rules
  • Relationships → Dependencies

Step 3: Find Routes (User Stories)

Use Glob to find router files:

  • **/routers/*.py
  • **/api/*.py
  • **/routes/*.py
  • **/views/*.py

For each router, use Grep to find endpoints:

@(router|app)\.(get|post|put|patch|delete)

Map endpoints to user stories:

  • POST /users → "As a user, I want to register"
  • GET /users/me → "As a user, I want to view my profile"
  • PUT /users/{id} → "As a user, I want to update my profile"

Step 4: Find Services (Workflows)

Use Glob to find service files:

  • **/services/*.py
  • **/use_cases/*.py

Look for complex operations:

  • Methods with multiple model interactions
  • Transaction management
  • Multi-step processes

Step 5: Find Integrations

Use Glob to find integration files:

  • **/clients/*.py
  • **/integrations/*.py
  • **/adapters/*.py
  • **/external/*.py

Identify:

  • Email services (SMTP, SendGrid, SES)
  • Payment gateways (Stripe, PayPal)
  • Storage (S3, GCS)
  • OAuth providers

Step 6: Extract Business Rules

Read the full file on GitHub · 208 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 · 208 lines · 23 tokens per session scan A cbd650f36d11

Subscribe to this mod's changes

codebase-analyzer is an agent published in the GitHub repository ruslan-korneev/claude-plugins (5 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 1,331 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