When to Use Hotfix
Use/comet-hotfix only when all of the following conditions are met:
- The fix targets existing functionality — no new capability is introduced
- The change scope is predictable: fewer than 3 files typically affected
- No interface changes or architecture adjustments are required
- No new public API is introduced by the fix
- The fix scope is contained within a single function or module
- No database schema changes are involved
Hotfix Workflow
| Phase | What Happens |
|---|---|
| Open | Streamlined artifact creation — proposal.md, design.md, tasks.md (no multi-solution comparison, no delta spec unless existing acceptance scenarios are affected) |
| Build | Direct build (build_mode: direct) — tasks executed one by one, formatter and tests run per task, commits use fix: prefix |
| Verify | Root cause elimination check, then comet-verify scale assessment (small hotfixes typically qualify for lightweight verification: ≤ 3 tasks, ≤ 2 files) |
| Archive | Reuses /comet-archive after verify_result: pass is confirmed |
Starting a Hotfix
In your AI coding tool, describe the bug you want to fix. Comet evaluates your description automatically:- If it meets hotfix conditions,
/cometauto-routes to/comet-hotfix— you don’t need to invoke it directly. - You can also invoke
/comet-hotfixdirectly to explicitly use the preset.
Build Mode
Hotfix usesdirect build mode by default. This means a single agent executes all tasks sequentially without spinning up sub-agents or generating a full implementation plan. If the task count exceeds 3, the agent transfers to /comet-build’s plan and execution method selection instead.
Upgrade Conditions
Upgrading to Full Workflow
When a hotfix is confirmed to need upgrading, Comet follows this path:- Updates the
workflowfield in.comet.yamltofull - Loads the
comet-designskill to supplement a full Design Doc on top of the existing hotfix artifacts - Proceeds normally through the full workflow from the design phase onward
proposal.md, design.md, and tasks.md are preserved and built upon — you don’t start from scratch.
Phase Guards
Hotfix enforces the same phase guard transitions as the full workflow:verify without isolation and build_mode set, and cannot archive without verify_result: pass.