| name | subagent-driven-development |
| namespace | process |
| description | Use WHEN executing an implementation plan, epic, or atomic task wave with independent tasks AND subagents are available TO dispatch fresh subagent per task in isolated worktree/session with active session registry, heartbeat, stop/resume/status controls, and two-stage review. Trigger phrases: parallel subagents, fan-out, subagent-driven, atomic tasks, epic worktree, goal-until-complete autonomous, active session registry. |
| allowed-tools | ["Read","Grep","Glob","Write","Edit","Bash"] |
| phase | exec |
| prerequisites | ["implementation-plan"] |
| emits-artifact | agent-output |
| confidence-rubric | confidence-rubrics/agent-delivery.yaml |
| gate-on-exit | true |
| version | 1.1 |
| last-verified | "2026-05-02T00:00:00.000Z" |
Subagent-Driven Development
When to invoke
WHEN executing a plan AND subagent dispatch is available AND plan has 5+ independent tasks. Preferred over supervibe:executing-plans (inline) when both apply.
Continuation Contract
Continue through every ready wave until the wave queue is exhausted, a
verification/review gate fails, a policy or approval gate blocks progress, a
write-set conflict appears, an explicit budget expires, or the user explicitly pauses. Do
not stop after the first subagent result, first green task, first rejected task,
or first review checkpoint when unrelated ready work remains.
If one task fails, quarantine or re-queue that task with reason, retry count,
owner, and next unblock action; keep independent ready tasks moving when their
write sets and dependencies are disjoint.
Definition Of Ready
A subagent task is ready only when it has a reviewed plan reference, dependency
state, declared write set, expected files, acceptance criteria, verification
command, rollback plan, scope id, risk level, stop condition, and reviewer. If
any field is missing, split or repair the task before dispatch.
Worker Execution Packet
Each worker brief must be self-contained because the worker may not share the
parent conversation:
taskId: "<stable id>"
whyItMatters: "<user-visible outcome>"
objective: "<bounded deliverable>"
writeSet: ["<repo-relative paths>"]
allowedReads: ["<context files or search citations>"]
approvedScope: "<scope id or explicit approval receipt>"
acceptanceCriteria: ["<criterion>"]
verification: ["<command and expected signal>"]
rollback: "<how to undo this task>"
stopConditions: ["<when to stop and report blocked>"]
outputContract: "changed files, evidence, risks, confidence, next action"
Workers must be told they are not alone in the codebase, must not revert edits
made by others, and must adapt to concurrent changes instead of overwriting
them.
Definition Of Done
A wave is done only after every task in the wave is SUCCESS, BLOCKED, or
QUARANTINED with evidence. SUCCESS requires worker evidence, independent
Stage 2 review, verification output, side-effect reconciliation, scope safety,
hostInvocation.source + hostInvocation.invocationId for the real host
subagent run, and confidence at least 9/10. Rejected or partial worker output is not progress
until it is repaired or explicitly accepted as partial by the user.
Expert Operating Standard
Follow docs/references/skill-expert-operating-standard.md: start from source of truth, preserve retrieval evidence, apply scope safety, use real producers with runtime receipts for durable delegated outputs, verify before completion claims, and keep confidence below gate when evidence is partial.
Step 0 ā Read source of truth (required)
- Read full plan
- Identify task dependencies (which tasks need others' output first)
- Group into waves: tasks within wave run in parallel; waves are sequential
- Read project's subagent type list to pick appropriate type per task
- Read
docs/references/scope-safety-standard.md, apply the Scope Safety Gate, and preserve the plan's approved/deferred/rejected scope boundary
Decision tree
Per task: which subagent type?
āā Code change in known stack ā stack-specific developer agent (laravel-developer, etc.)
āā Cross-cutting refactor ā refactoring-specialist
āā Investigation only ā repo-researcher (READ-ONLY)
āā Code review ā code-reviewer
āā Bug investigation ā root-cause-debugger
āā Unknown territory ā general-purpose with detailed brief
Procedure
- Plan analysis (Step 0)
1a. Orchestration preflight - for durable/epic execution, run or consult
/supervibe-loop --plan-waves <plan-or-state> and use capability/preset assignment before dispatching a wave. Every task needs a worker, an independent reviewer, declared write scope, and required evidence before launch.
- Wave organization ā group tasks; tasks within wave are parallelizable
2a. Session coordination - if execution is epic/worktree-backed, check the active worktree session registry before dispatch. Do not let two sessions claim the same epic/work item unless explicitly allowed.
2b. Assignment explainability - record why the worker/reviewer were chosen, which alternatives were rejected, and why any task was serialized or blocked.
- Per task: write brief (subagent has no conversation memory; brief must be self-contained):
- What to do (concrete deliverable)
- What files to touch
- Verification command + expected output
- Quality gate (ā„9 on agent-output)
- Approved scope id and explicit instruction to reject or defer unapproved extras instead of implementing them
- Dispatch wave ā parallel Agent tool calls in single message
- Two-stage review per task:
- Stage 1: subagent self-reviews via attached
supervibe:verification and supervibe:confidence-scoring
- Stage 2: parent (this skill) reviews subagent output for scope respect, evidence completeness, regression safety
- Reject if: scope violation, unapproved feature expansion, missing evidence, regression introduced
- Re-dispatch with corrected brief if rejected
- After wave completes ā proceed to next wave
- Heartbeat/status - update the session registry after each wave and mark stale/cleanup-blocked sessions explicitly.
- Producer receipt gate - for every durable worker/reviewer artifact, issue runtime workflow receipts with host invocation proof and run
npm run validate:agent-producer-receipts before claiming the wave complete.
Output contract
Returns wave-by-wave execution log:
Wave 1 (parallel, N tasks):
Assignment model: <worker-preset>/<subagent-type> + <reviewer-preset>, with why-worker, why-reviewer, rejected alternatives, required evidence, and wave/block reason
- Task 1: <subagent-type> ā SUCCESS / REJECTED+reason
- Task 2: ...
Wave 2 (parallel, N tasks):
...
Final: combined deliverable + per-wave confidence score
Guard rails
- DO NOT: include conversation context in subagent brief (will leak)
- DO NOT: dispatch >5 parallel in single wave (track-ability suffers)
- DO NOT: skip Stage 2 review (subagent can claim done without doing)
- DO NOT: re-dispatch with same brief (will produce same output)
- DO NOT: dispatch work already owned by another active worktree session
- DO NOT: let a worker review its own output or share an overlapping write set in the same wave
- DO NOT: reward a worker for adding extra functionality that was not in the plan
- DO NOT: emulate a subagent, worker, or reviewer in the controller. If the host agent call did not run, stop or save a non-agent draft; never mark the task
SUCCESS.
- ALWAYS: brief includes WHY the task matters + project conventions
- ALWAYS: per-task verification before claiming wave done
- ALWAYS: include stop/resume/status commands for long autonomous waves
- ALWAYS: include assignment explanation and wave status in the handoff package
- ALWAYS: require workers to explain rejected or deferred extras with concrete project harm and a safer alternative
Verification
- Every task has dispatch + Stage 1 + Stage 2 outputs
- Every successful worker/reviewer has a
hostInvocation.invocationId linked to a runtime-issued workflow receipt
- Failed tasks have new brief + re-dispatch evidence
- Stage 2 review confirms no unapproved scope expansion shipped
- Final deliverable passes overall agent-output rubric ā„9
Related
supervibe:executing-plans ā fallback when subagents unavailable
supervibe:dispatching-parallel-agents ā for ad-hoc parallelism (not plan execution)