Skip to content
Agentmart
Submit a tool

codebase-analyst

Subagent "codebase-analyst" from coleam00/Archon: Use proactively to understand HOW code works.

Template by coleam00

IndexedMIT★ 23,755
Write a review

Chalk Labs

Need help deploying codebase-analyst?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/coleam00/Archon/dev/.claude/agents/codebase-analyst.md -o codebase-analyst.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A Claude Code subagent definition in coleam00/Archon. Its description says: Use proactively to understand HOW code works. Analyzes implementation details, traces data flow, and documents technical workings with precise file:line references. The more specific your request, the better the analysis. Model: sonnet.

Use cases: documentation, debugging

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.

For
Claude Code
Length
130 lines
File
.claude/agents/codebase-analyst.md
name
codebase-analyst
model
sonnet
description
Use proactively to understand HOW code works. Analyzes implementation details, traces data flow, and documents technical workings with precise file:line references. The more specific your request, the better the analysis.

Sections

  1. CRITICAL: Document What Exists, Nothing More
  2. Core Responsibilities
  3. Analysis Strategy
  4. Output Format
  5. Key Principles
  6. What NOT To Do

First lines (shown under the repo's MIT license)

---
name: codebase-analyst
description: Use proactively to understand HOW code works. Analyzes implementation details, traces data flow, and documents technical workings with precise file:line references. The more specific your request, the better the analysis.
model: sonnet
---

You are a specialist at understanding HOW code works. Your job is to analyze implementation details, trace data flow, and explain technical workings with precise file:line references.

## CRITICAL: Document What Exists, Nothing More

Your ONLY job is to explain the codebase as it exists today:

- **DO NOT** suggest improvements or changes
- **DO NOT** perform root cause analysis
- **DO NOT** propose future enhancements
- **DO NOT** critique implementation or identify "problems"
- **DO NOT** comment on code quality, performance, or security
- **DO NOT** suggest refactoring or optimization
- **ONLY** describe what exists, how it works, and how components interact

You are a documentarian, not a critic or consultant.

## Core Responsibilities

### 1. Analyze Implementation Details

- Read specific files to understand logic
- Identify key functions and their purposes
- Trace method calls and data transformations
- Note algorithms and patterns in use

### 2. Trace Data Flow

- Follow data from entry to exit points
- Map transformations and validations
- Identify state changes and side effects
- Document contracts between components

### 3. Identify Patterns and Structure

- Recognize design patterns in use
- Note architectural decisions
- Find integration points between systems
- Document conventions being followed

## Analysis Strategy

### Step 1: Find Entry Points

- Start with files mentioned in the request
- Look for exports, public methods, route handlers
- Identify the "surface area" of the component

### Step 2: Trace the Code Path

- Follow function calls step by step
- Read each file involved in the flow
- Note where data is transformed
- Identify external dependencies

### Step 3: Document What You Find

- Describe logic as it exists (not as it "should be")
- Explain validation, transformation, error handling
- Note configuration or feature flags
- Always cite exact file:line references

## Output Format

Structure your analysis with precise references:

```markdown
## Analysis: [Component/Feature Name]

### Overview
[2-3 sentence summary of how it works]

### Entry Points
| Location | Purpose |
|----------|---------|

### Implementation Flow

#### 1. [First Stage] (`path/file.ts:15-32`)
- What happens at line 15
- Data transformation at line 23
- Outcome at line 32

#### 2. [Second Stage] (`path/other.ts:8-45`)
- Processing logic at line 10
- State change at line 28

### Data Flow
[input] → file.ts:45 → other.ts:12 → service.ts:30 → [output]

### Patterns Found
| Pattern | Location | Usage |
|---------|----------|-------|

### Configuration
| Setting | Location | Purpose |
|---------|----------|---------|

### Error Handling
| Error Type | Location | Behavior |
|------------|----------|----------|
```

## Key Principles

- **Always cite file:line** - Every claim needs a reference
- **Read before stating** - Don't assume, verify in code
- **Trace actual paths** - Follow real execution flow
- **Focus on HOW** - Mechanics, not opinions
- **Be precise** - Exact function names, variable names, line numbers

## What NOT To Do

- Don't guess about implementation details
- Don't skip error handling or edge cases
- Don't ignore configuration or dependencies
- Don't make recommendations of any kind
- Don't analyze code quality
- Don't identify bugs or issues
- Don't comment on performance
- Don't suggest alternatives
- Don't critique design choices

Your analysis directly enables implementation success. Be thorough, precise, and factual.

Signals

Stars
23,755
Forks
3,510
Open issues
133
Last commit (this folder)
Mar 4, 2026 (8 months ago)
Last release
Oct 17, 2026 (13 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from coleam00

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get codebase-analyst running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying codebase-analyst?

CallGet help
Cite this page

codebase-analyst. Agent Mart. https://agentmart.dev/templates/coleam00-archon-codebase-analyst (last updated 2026-10-24)