Home
cd ../playbooks
Developer ToolsAdvanced

Subagent-Driven Development

Execute an implementation plan by dispatching a fresh subagent per task with a spec-and-quality review after each, a ledger that survives compaction, and a 'rulings not stalls' policy that keeps a running plan from waiting on a human at every fork.

10 minutes
By obra (Superpowers)Source
#subagents#implementation-plans#code-review#autonomous-execution#claude-code#developer-tools

A session that loses its place after a compaction doesn't just forget context — it re-dispatches entire task sequences it already finished, because nothing was tracking real progress anywhere outside its own memory.

Who it's for: developers executing multi-task implementation plans with Claude Code, teams using subagents to isolate context per task, anyone whose long-running sessions lose track of progress after a compaction, engineers who want continuous execution without a check-in after every task

Example

"Execute this implementation plan" → A fresh implementer subagent dispatched per task with exactly the context it needs, a separate task reviewer checking spec compliance and quality before the task is marked done, a bounded 5-round fix loop that escalates to a fresh agent on a stronger model after round 3, a ledger recording every completion and ruling so a compaction never causes rework, and one broad final review across the whole branch before wrap-up

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add subagent-driven-development
# Subagent-Driven Development

Execute an implementation plan by dispatching a fresh subagent per task, reviewing each task for spec compliance and code quality as it lands, and running one broad review across the whole branch at the end.

**Why subagents:** delegate each task to an agent with isolated context. Precisely crafted instructions keep it focused and successful — it never inherits your session's history, you construct exactly what it needs. This also preserves your own context for coordination work instead of burning it on implementation detail.

**Core principle:** fresh subagent per task + a task review (spec + quality) after each + one broad final review = high quality, fast iteration.

## When to Use

Use this when you have a real implementation plan, its tasks are mostly independent, and you're staying in the current session. If tasks are tightly coupled, execute manually or go back to planning. If you'd rather hand execution to a separate parallel session, use a plan-execution workflow instead of this in-session one.

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A disciplined execution loop for implementation plans with mostly-independent tasks: dispatch a fresh, isolated subagent per task, review that task for spec compliance and code quality before marking it done, run a bounded fix loop when the review finds problems, and close out with one broad review across the whole branch. Fresh context per task means no pollution from earlier tasks' history; a separate reviewer means the same agent isn't grading its own work.

The two ideas that make this hold up under real, long sessions: a ledger that records every task completion and every autonomous decision, so a compaction or restart never causes an already-finished task to get re-dispatched — the single most expensive failure this workflow guards against — and a "rulings, not stalls" policy that has the agent decide conflicts and ambiguities itself (with the decision logged) rather than pausing to ask, reserving actual stops for only four cases: irreversible operations, security-sensitive actions, side effects outside the workspace, or a plan broken enough that every path forward is a guess.


Quick Start

Step 1: Create a Project Folder

mkdir subagent-driven-dev && cd subagent-driven-dev

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Execute a Plan

claude

Point Claude at an implementation plan with a set of mostly-independent tasks and say "execute this plan using subagent-driven development." It will set up a workspace, create a ledger, and start dispatching implementer and reviewer subagents per task.


Tips & Best Practices

  • Treat writing to the ledger as part of completing a task, not an optional afterthought — it's the only thing that survives a compaction, and skipping it defeats the entire point of the workflow.
  • Don't skip the task reviewer on "obviously simple" tasks. The review is cheap relative to the cost of a subtly wrong task compounding into three more tasks built on top of it.
  • When the fix loop reaches round 4–5, actually switch to a stronger model if one is available — repeating the same approach with the same model rarely breaks whatever pattern caused rounds 1–3 to fail.

Limitations

  • Assumes plan tasks are genuinely independent enough to implement in isolation — tightly coupled tasks fight this model and are better handled by continuous, manual execution instead.
  • The fix-loop cap (5 rounds) is a deliberate circuit breaker, not a success guarantee — a task that consistently blows through it usually signals a plan defect, not an implementation problem worth more retries.
  • Needs real subagent-dispatch capability (parallel or sequential agent tooling) — without it, the "fresh subagent per task" isolation this approach depends on isn't available.

$Related Playbooks

Developer Tools

Task Observer Claude Skill: Install & How It Works

The task-observer Claude skill (rebelytics/one-skill-to-rule-them-all on GitHub): a meta-skill that watches every work session, logs corrections and workflow patterns as skill candidates, and runs a review cycle that turns the log into new or improved skills

15 minutes
Advanced
Developer Tools

Taste Skill v1: Legacy Anti-Slop Frontend Design

The original numeric-dial version of the Taste Skill frontend framework, preserved for projects already built on v1 conventions

10 minutes
Intermediate
Developer Tools

Taste Skill: Anti-Slop Frontend Design

A design-taste inference system that reads your brief, tunes three dials, and stops Claude from shipping the same AI-purple centered-hero landing page everyone else gets

10 minutes
Intermediate
Developer Tools

Terminal Screenshot

Render a terminal program's colored output to a PNG so Claude can actually see the visual result — color contrast, alignment, highlighting — instead of only reading raw ANSI escape codes.

5 minutes
Beginner
Developer Tools

Terraform Operational Traps

Avoid the operational traps in Terraform provisioners, multi-environment isolation, and zero-to-deployment reliability — provisioner failures, snapshot cross-contamination, and post-apply container issues.

20 minutes
Advanced
Developer Tools

Telegram Bot Builder

Telegram bot development - chatbots, notifications, AI assistants, and group automation

10 minutes
Advanced
Developer Tools

Tool Interface Design for Agents

Design agent-facing tools as contracts an agent must infer entirely from the description alone — the consolidation principle over narrow overlapping tools, architectural reduction toward primitives, actionable error-recovery messages, and an 8-point audit checklist.

10 minutes
Advanced
Developer Tools

PR Queue Triage

Clear a backlog of open pull requests before a release by classifying every PR into an evidence-based disposition — never by title — with a real git merge-tree test against the actual release branch, not the platform's often-wrong mergeable flag.

10 minutes
Intermediate
Developer Tools

Reproducible Database Lookup

A methodology for querying public database APIs — scientific, regulatory, financial, or otherwise — so another agent or human can repeat exactly what you did: bounded calls, count reconciliation, identifier-conversion tracking, and untrusted-data handling for every response.

10 minutes
Advanced
Developer Tools

Semantic Prompt Compression

Re-encode verbose system prompts, tool descriptions, and skill bodies into a dense telegraphic register — punctuation as connectives, label frames, verbless assertions — via re-encoding, not word deletion, with a density gate and a declared-loss verification pass.

5 minutes
Advanced
Developer Tools

Simplified Technical English for Docs

Write or rewrite technical documentation with the ASD-STE100 Simplified Technical English discipline — the aerospace maintenance-manual standard adapted for READMEs, runbooks, error messages, incident reports, and agent instructions.

10 minutes
Intermediate
Developer Tools

Project Graveyard: Autopsy Your Abandoned Side Projects

Scan local repos for dead side projects, autopsy each one from its git history, surface your personal death patterns, and pick the one corpse most worth resurrecting — then help ship it.

10 minutes
Intermediate

Browse all Developer Tools playbooks →