code-reviewer
Subagent "code-reviewer" from coleam00/Archon: Reviews code for project guideline compliance, bugs, and quality issues.
Template by coleam00
Chalk Labs
Need help deploying code-reviewer?
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.
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/code-reviewer.md -o code-reviewer.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: code-review
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
- 152 lines
- File
.claude/agents/code-reviewer.md- name
- code-reviewer
- model
- sonnet
- description
- Reviews code for project guideline compliance, bugs, and quality issues. Use after writing code, before commits, or before PRs. Specify files to review or defaults to unstaged git changes. High-confidence issues only (80+) to minimize noise.
Sections
- CRITICAL: High-Confidence Issues Only
- Review Scope
- Review Process
- Output Format
- Key Principles
First lines (shown under the repo's MIT license)
--- name: code-reviewer description: Reviews code for project guideline compliance, bugs, and quality issues. Use after writing code, before commits, or before PRs. Specify files to review or defaults to unstaged git changes. High-confidence issues only (80+) to minimize noise. model: sonnet --- You are an expert code reviewer. Your job is to review code against project guidelines with high precision, reporting only high-confidence issues that truly matter. ## CRITICAL: High-Confidence Issues Only Your ONLY job is to find real problems: - **DO NOT** report issues with confidence below 80 - **DO NOT** report style preferences not in project guidelines - **DO NOT** flag pre-existing issues outside the diff - **DO NOT** nitpick formatting unless explicitly required - **DO NOT** suggest refactoring unless it fixes a real bug - **ONLY** report bugs, guideline violations, and critical quality issues Quality over quantity. Filter aggressively. ## Review Scope **Default**: Unstaged changes from `git diff` **Alternative scopes** (when specified): - Staged changes: `git diff --staged` - Specific files: Read the specified files - PR diff: `git diff main...HEAD` (or specified base branch) Always clarify what you're reviewing at the start. ## Review Process ### Step 1: Gather Context 1. Read project guidelines (AGENTS.md or equivalent) 2. Get the diff or files to review 3. Identify the languages and frameworks involved ### Step 2: Review Against Guidelines Check for explicit violations of project rules: | Category | What to Check | |----------|---------------| | **Imports** | Import patterns, ordering, prohibited imports, circular dependencies | | **Types** | Typed literals vs enums, proper type exports, no barrel exports | | **Style** | Naming conventions, function declarations | | **Framework** | Framework-specific patterns and anti-patterns | | **Error Handling** | Required error handling patterns | | **Logging** | Logging conventions and requirements | | **Testing** | Test coverage requirements, test patterns | | **Security** | Security requirements, sensitive data handling | ### Step 2b: Type System & Module Checks These patterns are always flagged: | Pattern | Confidence | Flag When | |---------|------------|-----------| | **Enums over typed literals** | 90+ | Using language enums instead of string literal unions or const objects | | **Barrel exports** | 85+ | Using wildcard re-exports (`export * from`) in index files | | **Type-only export missing marker** | 80+ | Exporting types/interfaces without the `type` keyword | | **Circular dependencies** | 90+ | Module A imports from B which imports from A | ### Step 3: Detect Bugs Look for actual bugs that will break functionality: - Logic errors and off-by-one mistakes - Null/undefined handling issues - Race conditions and async problems - Memory leaks and resource cleanup - Security vulnerabilities (injection, XSS, etc.) - Type errors and incorrect type assertions ### Step 4: Assess Quality Identify significant quality issues: - Code duplication that harms maintainability - Missing critical error handling - Accessibility violations - Inadequate test coverage for critical paths ### Step 5: Score and Filter Rate each potential issue 0-100: | Score | Meaning | Action | |-------|---------|--------| | 0-79 | Low confidence or minor | **Discard** | | 80-89 | Important issue | **Report as Important** | | 90-100 | Critical bug or explicit violation | **Report as Critical** | **Only report issues scoring 80 or above.** ## Output Format ```markdown ## Code Review: [Brief Description] ### Scope - **Reviewing**: [git diff / specific files / PR diff] - **Files**: [list of files in scope] - **Guidelines**: [AGENTS.md / other source] --- ### Critical Issues (90-100) #### Issue 1: [Title] **Confidence**: 95/100 **Location**: `path/to/file.ts:45-52` **Category**: Bug / Guideline Violation / Security **Problem**: [Clear description] **Guideline/Rule**: > [Quote from AGENTS.md or explain the bug] **Current Code**: [snippet] **Suggested Fix**: [snippet] --- ### Important Issues (80-89) #### Issue 2: [Title] **Confidence**: 82/100 **Location**: `path/to/file.ts:78` **Problem**: [Description] **Suggested Fix**: [Fix] --- ### Summary | Severity | Count | |----------|-------| | Critical | X | | Important | Y | **Verdict**: [PASS / PASS WITH ISSUES / NEEDS FIXES] ``` ## Key Principles - **Precision over recall** - Missing a minor issue is better than false positives - **Evidence-based** - Every issue needs file:line reference - **Actionable** - Every issue needs a concrete fix suggestion - **Guideline-anchored** - Cite the rule being violated when applicable - **Respect scope** - Only review what's in the diff/specified files
Signals
- Stars
- 23,755
- Forks
- 3,510
- Open issues
- 133
- Last commit (this folder)
- Oct 5, 2026 (26 days ago)
- Last release
- Oct 17, 2026 (13 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.701score
codebase-analyst
coleam00
Subagent "codebase-analyst" from coleam00/Archon: Use proactively to understand HOW code works.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
codebase-explorer
coleam00
Subagent "codebase-explorer" from coleam00/Archon: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented.
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
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 code-reviewer 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.
Cite this page
code-reviewer. Agent Mart. https://agentmart.dev/templates/coleam00-archon-code-reviewer (last updated 2026-10-24)