| name | autopilot |
| description | Automatically implement all remaining features end-to-end. Picks the next feature, implements it, validates, marks done, and repeats until all features are complete. |
| user-invocable | true |
| argument-hint | [max-features] |
| allowed-tools | Read, Grep, Glob, Edit, Write, Bash |
/autopilot ā Implement All Features Automatically
Chains the full SDD + TDD workflow in a loop: pick next ā implement ā validate ā mark done ā repeat.
Arguments
$ARGUMENTS ā optional max number of features to implement in this session (default: all remaining)
Workflow
For each unimplemented feature, execute these phases in sequence:
Phase 1 ā Pick Next Feature
- Read
specs/.devx/features.json
- Find the first feature with
"status": "not-started"
- If no features remain, report completion and stop
- Announce: "Starting feature: (<N> of <total> remaining)"
Phase 2 ā Read Specs
- Read
specs/<slug>/specs.md ā understand what to build
- Read
specs/<slug>/requirements.md ā the acceptance checklist
- Read
specs/<slug>/tdd-tests.md ā test specifications
Phase 3 ā Implement
Follow the TDD Red ā Green ā Refactor cycle for each acceptance criterion:
- Red ā Write a failing test based on tdd-tests.md
- Green ā Write minimum code to pass the test
- Refactor ā Clean up while keeping tests green
- Run the full test suite ā all tests must pass
- Repeat for each criterion in requirements.md
Phase 4 ā Validate
- Go through every item in
specs/<slug>/requirements.md
- Verify each acceptance criterion is satisfied in the code
- Check edge cases from specs.md
- Confirm all tests pass
If validation fails:
- Fix the failing criteria
- Re-validate
- Do not proceed until all criteria pass
Phase 5 ā Mark Done
- Read
specs/.devx/features.json
- Update this feature's
"status" from "not-started" to "done"
- Write the updated features.json back
- Announce: "Completed: ā"
Phase 6 ā Continue or Stop
- Check if max features limit reached (from
$ARGUMENTS)
- If more features remain and limit not reached ā go to Phase 1
- If all features done ā announce completion summary
- If limit reached ā announce progress and remaining count
Output Between Features
After each feature, show a brief status:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Completed: <Feature Title>
Requirements: 8/8 passed
Tests: 12 passed, 0 failed
Next: <Next Feature Title> (N remaining)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Final Summary
When all features are done (or limit reached), show:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Autopilot Complete
Features implemented: X / Y
Total requirements satisfied: N
Total tests: N passed
Remaining: Z features
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Rules
- Never skip validation. Every feature must pass all requirements before moving on.
- Stop on repeated failure. If a feature fails validation 3 times, stop and report the issue.
- Do not modify specs. If a spec seems wrong, stop and ask the user.
- Commit after each feature. Keep changes atomic and reviewable.
- Follow TDD strictly. No production code without a failing test.
- No gold-plating. Implement exactly what the spec describes, nothing more.