/patch
For well-understood problems that need some rigor but not the full ceremony.
When to use
Section titled “When to use”- GitHub issue with a clear problem statement
- Bug fix between 50-300 lines
- Small feature request with known scope
What it does
Section titled “What it does”- Understand — reads the GitHub issue (
gh issue view) or description, plus context files - Investigate — reads relevant code, presents diagnosis with root cause, approach, files, and risk
- Confirm — waits for user approval of the approach (skipped in
--automode) - Implement with TDD — failing test first, then implementation
- Self-review — checks against DECISIONS.md, ARCHITECTURE.md, CONSTITUTION.md
- Run all checks — full test suite, not just the new tests
- Commit — with
Fixes #[issue]reference - Report — offers to close the GitHub issue with a summary
Auto mode
Section titled “Auto mode”/patch --auto #42 — runs without pausing for confirmation. Still stops for scope overflow, unclear root cause, or constitutional violations.
Scope gates
Section titled “Scope gates”- Under ~50 lines? Redirects to
/quick - Over ~300 lines? Redirects to
/feature+/plan+/build - Root cause unclear? Suggests
/debuginstead
Output
Section titled “Output”A committed fix with tests, referencing the issue.