From codebrain
Use when you want fully automated Plan → Execute → Verify with auto-commit. Uses task recitation to prevent drift, circuit breakers for safety, and fresh context per task. Pauses on Critical issues and unresolved [NEEDS CLARIFICATION] markers.
npx claudepluginhub chrsmay/codebrain-plugin --plugin codebrainThis skill uses the workspace's default tool permissions.
Fully automated Plan → Execute → Verify pipeline with drift prevention. Plans, implements, verifies, and commits — pausing on Critical issues and ambiguities.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Fully automated Plan → Execute → Verify pipeline with drift prevention. Plans, implements, verifies, and commits — pausing on Critical issues and ambiguities.
/codebrain:yolo <task description>
/codebrain:yolo epic <slug> — work through all tickets in an epic
/codebrain:yolo resume — resume a paused run
[NEEDS CLARIFICATION] markers always pause — never guess[SPEC_DEVIATION] markers always pause — user decides spec vs codeBefore EVERY implementation step, re-read the acceptance criteria for the current task from the plan. This pushes the spec into the model's recent attention window, preventing "lost-in-the-middle" drift.
Each ticket in an epic is executed with a FRESH planner agent invocation. The planner receives:
This prevents context poisoning from accumulated execution history.
The constitution is included in EVERY planner and verifier invocation. Non-negotiable principles stay in context throughout the entire run.
After each task completes, verify checks for [SPEC_DEVIATION] markers. Any deviation pauses the run for user review.
Load context.
Plan (no user approval needed).
planner agent with task description + constitution + context.codebrain/active/plan.md[NEEDS CLARIFICATION] markers: PAUSE immediatelyExecute (with task recitation).
Verify.
/codebrain:verify .codebrain/active/plan.md[SPEC_DEVIATION] found: always pause — user decidesCommit.
git add changed files (specific files, not git add .)git commit with descriptive message referencing the planUpdate memory.
mcp__codebrain__codebrain_epic_status to get ticket list.bart agent to determine ticket execution order and identify parallel candidates.done
d. Record execution summary in .codebrain/epics/{slug}/executions/
e. Spec reconciliation — check for [SPEC_DEVIATION] between ticket spec and implementation
f. Spawn bart to check for drift before next ticket[P] parallel tickets are available: note them but execute sequentially (parallel requires user opt-in)..codebrain/active/yolo-state.json via MCP tools.[NEEDS CLARIFICATION] marker? → show the marker, ask user to resolve[SPEC_DEVIATION]? → show the deviation, ask user to decide.codebrain/active/yolo-state.json:
{
"workflow_id": "active",
"type": "yolo",
"phase": "verify",
"completed_phases": ["plan", "execute"],
"pending_phases": ["commit", "memory-update"],
"current_task": "Add input validation to /api/users endpoint",
"pause_reason": "SPEC_DEVIATION | NEEDS_CLARIFICATION | CRITICAL_ISSUE | CIRCUIT_BREAKER",
"pause_details": "Spec says return 404 but implementation returns 400",
"metadata": {
"fix_attempts": 2,
"last_error": "Test failure: expected 422, got 500",
"committed_tasks": ["task-1", "task-2"],
"epic_slug": null,
"token_budget": 50000,
"tokens_used": 42000
},
"updated_at": "2026-03-21T15:30:00Z"
}
Read from .codebrain/config.json under yolo:
auto_fix_minor: true — auto-fix Minor issues without askingauto_fix_major: false — pause on Major issues (set true for more aggressive mode)max_fix_attempts: 2 — max fix+verify cycles before pausing (default reduced from 3 per Stripe Minions pattern)