codebase-analyst
Subagent "codebase-analyst" from coleam00/Archon: Use proactively to understand HOW code works.
Template by coleam00
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.
About
Use cases: documentation, debugging
Reviews
Write a reviewNo 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
- CRITICAL: Document What Exists, Nothing More
- Core Responsibilities
- Analysis Strategy
- Output Format
- Key Principles
- 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 (7 months ago)
- Last release
- Oct 17, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/coleam00/Archon
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from coleam00
- 0.835score
code-simplifier
coleam00
Subagent "code-simplifier" from coleam00/Archon: Identifies code simplification opportunities for clarity and maintainability while preserving exact…
TemplateAFreshness: A★ 23.8KClaude Code - 0.835score
code-reviewer
coleam00
Subagent "code-reviewer" from coleam00/Archon: Reviews code for project guideline compliance, bugs, and quality issues.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
comment-analyzer
coleam00
Subagent "comment-analyzer" from coleam00/Archon: Analyzes code comments for accuracy, completeness, and long-term value.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
docs-impact
coleam00
Subagent "docs-impact" from coleam00/Archon: Reviews documentation affected by code changes.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
pr-test-analyzer
coleam00
Subagent "pr-test-analyzer" from coleam00/Archon: Analyzes PR test coverage for quality and completeness.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
AGENTS.md · coleam00/Archon
coleam00
AGENTS.md from coleam00/Archon: 198 lines covering Read before changing code, Product boundaries, Engineering taste, Agentic-system boundaries and more.
TemplateAFreshness: A★ 23.8KCodex +5
Cite this page
codebase-analyst. Agent Mart. https://agentmart.dev/templates/coleam00-archon-codebase-analyst (last updated 2026-10-24)