Execute Baldrick iterations on existing specs. Use when: run baldrick, execute specs, implement features, start working. Triggers on: baldrick run, run specs, implement, execute features.
Execute autonomous iterations on feature specifications until all are complete.
Each iteration:
## Codebase Patterns at top of progress.txt FIRSTbaldrick-learnings.md for additional patterns## SELECTED SPEC in context (the loop has already selected it by priority โ risk โ created โ id)passes: trueSpecs are selected deterministically in this order:
high > medium > lowspike > integration > standard > polishcreated: frontmatter)This ensures critical work first, unknowns (spikes) early, polish last.
After completing each spec, append to progress.txt:
## 2025-01-08 14:30 - feature-name
Session: baldrick-20250108143000-12345
- What was done: Implemented X, added Y, fixed Z
- Test output: (paste actual output)
- Learnings: (patterns discovered, gotchas encountered)
- Next: Related work or follow-ups
If you discover a REUSABLE pattern during implementation:
## Codebase Patterns at TOP of progress.txtbaldrick-learnings.md for permanent storageGood patterns:
Do NOT add:
Per-spec completion:
passes: trueAll specs complete:
touch .baldrick-done<promise>COMPLETE</promise>Every iteration must:
Do NOT commit broken code.
# Run 10 iterations (default)
./baldrick run
# Run specific number of iterations
./baldrick run 20
# Preview without executing
./baldrick run 5 --dry-run
# Stream Claude output (or use stream-json + jq)
./baldrick run 10 --verbose
./baldrick run 10 --stream-json # requires jq
# Work on single spec until done
./baldrick once login-feature
./baldrick once login-feature --max 15
./baldrick once login-feature --max 15 --verbose
Every 5th iteration, switch from Worker to Reviewer:
This prevents broken code from compounding.
Beyond feature specs, use these skills for goal-oriented loops:
Load the skill and describe your goal. The skill iterates until complete.
Each run is tracked with:
baldrick-YYYYMMDDHHMMSS-PIDlogs/baldrick-YYYYMMDD-HHMMSS.log.last-session fileWhen switching branches or features, previous sessions are automatically archived.
If the same spec fails twice without changes:
When you switch git branches or start a new feature:
archive/YYYY-MM-DD-feature-name/This prevents mixing work across features.