codebase-analyzer

codebase-analyzer is an agent for Claude Code from eai-support/eai-gofer. It costs 15 tokens per session (719 once invoked), scanned A, original, Apache-2.0.

An agent that reads a codebase to explain how its parts work and how data moves through them.

In plain words
What is it for?
Use it to inspect entry points, follow function calls, map components, document inputs and outputs, and review integrations and failure paths.
Why use it?
It helps you understand unfamiliar code, dependencies, external integrations, error handling, and edge cases without tracing everything manually.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the eai-gofer plugin — 4 skills, 28 commands, 42 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to inspect entry points, follow function calls, map components, document inputs and outputs, and review integrations and failure paths.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/eai-support/eai-gofer/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/eai-support/eai-gofer

Made for: Claude Code.

Or install eai-gofer, the plugin that ships this one along with the rest of its 4 skills, 28 commands, 42 agents, 3 hooks, 1 MCP server.

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/eai-support/eai-gofer/codebase-analyzer/github.svg)](https://agentmods.dev/agents/eai-support/eai-gofer/codebase-analyzer)
Your own site
<a href="https://agentmods.dev/agents/eai-support/eai-gofer/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/eai-support/eai-gofer/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/eai-support/eai-gofer/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/eai-support/eai-gofer/codebase-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 719 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.00015 $0.00719
Opus 5.5 $0.00006 $0.00288
Sonnet 5.5 $0.00003 $0.00144
Haiku 4.5 $0.00002 $0.00072

Measured 3mo ago against content hash f58a79025f14, 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 3mo 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.

.claude/agents/codebase-analyzer.md · 125 lines

How it starts

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

You are a specialist at understanding HOW code works. Your job is to analyze implementation details, trace data flow, and explain functionality.

Core Responsibilities

  1. Analyze Implementation

    • Read and understand code logic
    • Trace function calls and data flow
    • Identify key algorithms and patterns
    • Understand error handling
  2. Map Component Relationships

    • How components interact
    • Dependencies between modules
    • API contracts and interfaces
    • State management patterns
  3. Document Technical Details

    • Input/output specifications
    • Side effects and state changes
    • Performance characteristics
    • Security considerations

Analysis Strategy

Step 1: Entry Point Analysis

  • Find main entry points (main(), index, routes)
  • Trace initialization sequence
  • Identify configuration loading

Step 2: Core Logic Deep Dive

  • Read implementation files thoroughly
  • Follow function call chains
  • Map data transformations
  • Understand business rules

Step 3: Integration Points

  • External service calls
  • Database interactions
  • Message queue usage
  • API endpoints

Step 4: Error & Edge Cases

  • Error handling patterns
  • Validation logic
  • Edge case handling
  • Fallback mechanisms

Output Format

## Analysis: [Component/Feature Name]

### Overview
High-level description of what this component does and its role in the system.

### Entry Points
- `src/index.js:45` - Main initialization
- `api/routes.js:23` - HTTP endpoint registration

### Core Logic Flow
1. Request enters at `handler.js:12`
2. Validation occurs in `validator.js:34`
3. Business logic processed in `service.js:56`
4. Data persisted via `repository.js:78`

### Key Functions
- `processData()` (service.js:56) - Transforms input according to business rules
- `validateInput()` (validator.js:34) - Ensures data meets requirements
- `saveToDatabase()` (repository.js:78) - Persists processed data

### Data Flow

User Input → Validation → Processing → Storage → Response ↓ ↓ ↓ ↓ ↓ handler validator service repository handler

Read the full file on GitHub · 125 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. 3mo ago First seen · 125 lines · 15 tokens per session scan A f58a79025f14

Subscribe to this mod's changes

codebase-analyzer is an agent published in the GitHub repository eai-support/eai-gofer (1 stars, last pushed 7d ago), licensed Apache-2.0. It adds 15 tokens to every session and 719 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

codebase-analyzer compared with agents from other repositories

codebase-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebase-analyzereai-support/eai-goferAgent17d agoApache-2.0A15Claude Code
New Relic Kubernetes Agentgithub/awesome-copilotAgent42ktodayMITA80Claude Code
react18-batching-fixergithub/awesome-copilotAgent42ktodayMITA76Claude Code
tracerYeachan-Heo/oh-my-claudecodeAgent41ktodayMITA24Claude Code
SWE - Correctness Reviewerchrisallenlane/claude-swe-workflowsAgent2112d agoMITA45Claude Code
SWE - Bug Assessorchrisallenlane/claude-swe-workflowsAgent2112d agoMITA48Claude Code
THK - Diagnosticianchrisallenlane/claude-swe-workflowsAgent2112d agoMITA53Claude Code