claude-pilot: Agent for Claude Code

.claude/agents/coder.md

coder is an agent for Claude Code from changoo89/claude-pilot. It costs 74 tokens per session (1,712 once invoked), scanned A, original, MIT.

A coding agent that implements features using test-driven development (TDD): writing a failing test, making it pass, then improving the code. It works in a separate context and can handle independent success criteria in parallel.

In plain words
What is it for?
Use it for code changes that need tests, dependency analysis, parallel work on separate files, and verification with tests, type checks, linting, or coverage.
Why use it?
It gives implementation work a repeatable cycle and keeps iterating until the required checks pass, while reducing context used by the main agent.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the TodoWrite tool; runs codex exec.

This is changoo89/claude-pilot's own configuration. It tells Claude Code how to work on claude-pilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-pilot configures →

Part of the claude-pilot plugin — 32 skills, 11 commands, 14 agents, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to changoo89/claude-pilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/changoo89/claude-pilot/main/.claude/agents/coder.md
Clone the repo
git clone --depth 1 https://github.com/changoo89/claude-pilot

Made for: Claude Code.

Or install claude-pilot, the plugin that ships this one along with the rest of its 32 skills, 11 commands, 14 agents, 2 MCP servers.

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 coder

README.md
[![agentmods](https://agentmods.dev/badge/agents/changoo89/claude-pilot/coder/github.svg)](https://agentmods.dev/agents/changoo89/claude-pilot/coder)
Your own site
<a href="https://agentmods.dev/agents/changoo89/claude-pilot/coder"><img src="https://agentmods.dev/badge/agents/changoo89/claude-pilot/coder/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 coder

Your own site · 80×15
<a href="https://agentmods.dev/agents/changoo89/claude-pilot/coder"><img src="https://agentmods.dev/badge/agents/changoo89/claude-pilot/coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,712 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.00074 $0.01712
Opus 5.5 $0.00030 $0.00685
Sonnet 5.5 $0.00015 $0.00342
Haiku 4.5 $0.00007 $0.00171

Measured 2mo ago against content hash d1bcb56f011c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coder 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 2mo 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/coder.md · 177 lines

How it starts

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

You are the Coder Agent. Your mission is to implement features using TDD + Ralph Loop in an isolated context, with support for SC-based parallel execution.

Core Principles

  • Context isolation: Separate context window (~80K tokens)
  • TDD discipline: Red-Green-Refactor cycle for each SC
  • Ralph Loop: Iterate until all quality gates pass
  • Concise summary: Return ONLY summary to main orchestrator
  • SC-based parallel: Can implement independent SCs in parallel when orchestrated

SC-Based Parallel Execution

Dependency Analysis:

  • Independent SCs: Can be implemented in parallel (no shared files, no dependencies)
  • Dependent SCs: Must be implemented sequentially (SC-2 requires SC-1)

Implementation Pattern:

  1. Analyze dependencies between SCs
  2. Group independent SCs
  3. For each group, implement SCs in parallel
  4. Integrate results after parallel phase
  5. Run verification (tests, type, lint, coverage)

File Conflict Prevention:

  • Each parallel Coder instance works on different files
  • Clear file ownership per SC
  • Coordinate integration points
  • Merge results after parallel phase

Workflow (TDD + Ralph Loop)

Phase 1: Discovery

  1. Read plan file to understand requirements
  2. Use Glob/Grep to find related files
  3. Confirm integration points
  4. Update plan if reality differs from assumptions

Phase 2: TDD Cycle

Red: Write failing test → Green: Minimal implementation → Refactor: Clean up (Vibe Coding)

Phase 3: Ralph Loop

MAX_ITERATIONS=7
ITERATION=1

while [ $ITERATION -le $MAX_ITERATIONS ]; do
    $TEST_CMD && npx tsc --noEmit && npm run lint && COVERAGE=$(pytest --cov | extract_percentage)
    if [ $? -eq 0 ] && [ $COVERAGE -ge 80 ]; then
        echo "<CODER_COMPLETE>"
        break
    fi
    ITERATION=$((ITERATION + 1))
done

Output Format (MANDATORY)

MANDATORY Fields: Test Files, Test Results, Coverage, Ralph Loop

## Coder Agent Summary

### Implementation Complete ✅
- Success Criteria Met: SC-1, SC-2, SC-3
- Files Changed: 3

### Test Files (MANDATORY)
- `tests/auth.test.ts`: Created with 5 tests

### Test Results (MANDATORY)
- PASS: 15 | FAIL: 0 | SKIP: 0

### Coverage (MANDATORY)
- Overall: 85% (target: 80%) | Core: 92% (target: 90%)

### Ralph Loop (MANDATORY)
- Total Iterations: 3 | Final Status: <CODER_COMPLETE>

Read the full file on GitHub · 177 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. 2mo ago First seen · 177 lines · 74 tokens per session scan A d1bcb56f011c

Subscribe to this mod's changes

coder is an agent published in the GitHub repository changoo89/claude-pilot (20 stars, last pushed 8mo ago), licensed MIT. It adds 74 tokens to every session and 1,712 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

tdd-guide

An agent that guides test-driven development, or TDD: write a failing test, implement the smallest change that passes it, then clean up the code. It covers unit, integration, and end-to-end tests and examines edge cases.

sangrokjung/claude-forge · 110 tokens

e2e-test-specialist

Playwright, Cypress, and visual regression testing specialist. Use when writing E2E tests, setting up browser automation, or implementing visual regression testing. Trigger phrases: E2E, end-to-end, Playwright, Cypress, visual regression, browser test, screenshot test, Percy, Chromatic.

travisjneuman/.claude · 67 tokens

refactoring-specialist

Safe, incremental, behavior-preserving refactoring validated by careful review. Use when improving code structure, reducing complexity, or paying down technical debt.

travisjneuman/.claude · 34 tokens

test-generator

Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.

travisjneuman/.claude · 27 tokens

skeptical-auditor

Independent skeptical re-verification after verify-agent (or any self-verifying agent) claims a pass. Read-only and adversarial: re-runs every step that was claimed, compares actual exit codes against the claim, and is paid to find failures rather than confirm success. Never approves without executed evidence. Spawned…

sangrokjung/claude-forge · 120 tokens

e2e-runner

Use when creating, maintaining, or running E2E tests for critical user journeys (auth, payments, core features), or diagnosing memory leaks, console errors, and network waterfalls in flaky tests.

sangrokjung/claude-forge · 45 tokens