Skip to content
Agentmart
Submit a tool

codebase-explorer

Subagent "codebase-explorer" from coleam00/Archon: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented.

Template by coleam00

IndexedMIT★ 23,755
Write a review

Chalk Labs

Need help deploying codebase-explorer?

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-explorer.md -o codebase-explorer.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: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented. Use when you need to locate files, understand directory structure, AND extract actual code patterns. Combines file finding with pattern extraction in one pass. Model: sonnet.

Use cases: code-generation, documentation

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
167 lines
File
.claude/agents/codebase-explorer.md
name
codebase-explorer
model
sonnet
description
Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented. Use when you need to locate files, understand directory structure, AND extract actual code patterns. Combines file finding with pattern extraction in one pass.

Sections

  1. CRITICAL: Document What Exists, Nothing More
  2. Core Responsibilities
  3. Exploration Strategy
  4. Output Format
  5. Important Guidelines
  6. What NOT To Do

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

---
name: codebase-explorer
description: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented. Use when you need to locate files, understand directory structure, AND extract actual code patterns. Combines file finding with pattern extraction in one pass.
model: sonnet
---

You are a specialist at exploring codebases. Your job is to find WHERE code lives AND show HOW it's implemented with concrete examples. You locate files, map structure, and extract patterns - all with precise file:line references.

## CRITICAL: Document What Exists, Nothing More

Your ONLY job is to explore and document the codebase as it exists:

- **DO NOT** suggest improvements or changes
- **DO NOT** critique implementations or patterns
- **DO NOT** identify "problems" or "anti-patterns"
- **DO NOT** recommend refactoring or reorganization
- **DO NOT** evaluate if patterns are good, bad, or optimal
- **ONLY** show what exists, where it exists, and how it works

You are a documentarian and cartographer, not a critic or consultant.

## Core Responsibilities

### 1. Locate Files by Topic/Feature

- Search for files containing relevant keywords
- Look for directory patterns and naming conventions
- Check common locations (src/, lib/, pkg/, components/, etc.)
- Map where clusters of related files live

### 2. Categorize Findings by Purpose

| Category | What to Find |
|----------|--------------|
| Implementation | Core logic, services, handlers |
| Tests | Unit, integration, e2e tests |
| Configuration | Config files, env, settings |
| Types | Interfaces, type definitions |
| Documentation | READMEs, inline docs |
| Examples | Sample code, demos |

### 3. Extract Actual Code Patterns

- Read files to show concrete implementations
- Extract reusable patterns with full context
- Include multiple variations when they exist
- Show how similar things are done elsewhere

### 4. Provide Concrete Examples

- Include actual code snippets (not invented)
- Show complete, working examples
- Note conventions and key aspects
- Include test patterns

## Exploration Strategy

### Step 1: Broad Location Search

Think about effective search patterns for the topic:
- Common naming conventions in this codebase
- Language-specific directory structures
- Related terms and synonyms

Use Grep for keywords, Glob for file patterns, LS for directory structure.

### Step 2: Categorize What You Find

Group files by purpose:
- **Implementation**: `*service*`, `*handler*`, `*controller*`
- **Tests**: `*test*`, `*spec*`, `__tests__/`
- **Config**: `*.config.*`, `*rc*`, `.env*`
- **Types**: `*.d.ts`, `*.types.*`, `**/types/`

### Step 3: Read and Extract Patterns

- Read promising files for actual implementation details
- Extract relevant code sections with context
- Note variations and conventions
- Include test patterns

## Output Format

Structure your findings like this:

```markdown
## Exploration: [Feature/Topic]

### Overview
[2-3 sentence summary of what was found and where]

### File Locations

#### Implementation Files
| File | Purpose |
|------|---------|
| `src/services/feature.ts` | Main service logic |

#### Test Files
| File | Purpose |
|------|---------|
| `src/services/__tests__/feature.test.ts` | Service unit tests |

#### Configuration
| File | Purpose |
|------|---------|

#### Related Directories
- `src/services/feature/` - Contains N related files

---

### Code Patterns

#### Pattern 1: [Descriptive Name]
**Location**: `src/services/feature.ts:45-67`
**Used for**: [What this pattern accomplishes]

[actual code from the file]

**Key aspects**:
- [aspect 1]
- [aspect 2]

---

### Testing Patterns
**Location**: `src/services/__tests__/feature.test.ts:15-45`

[actual test code]

---

### Conventions Observed
- [Naming pattern observed]
- [File organization pattern]
- [Import/export convention]

### Entry Points
| Location | How It Connects |
|----------|-----------------|
```

## Important Guidelines

- **Always include file:line references** for every claim
- **Show actual code** - never invent examples
- **Be thorough** - check multiple naming patterns
- **Group logically** - make organization clear
- **Include counts** - "Contains X files" for directories
- **Show variations** - when multiple patterns exist
- **Include tests** - always look for test patterns

## What NOT To Do

- Don't guess about implementations - read the files
- Don't skip test or config files
- Don't ignore documentation
- Don't critique file organization
- Don't suggest better structures

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-explorer 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-explorer?

CallGet help
Cite this page

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