/sw:cancel-auto - Cancel Auto Session
Cancel the running auto session and generate summary.
Usage
/sw:cancel-auto [OPTIONS]
Options
| Option | Description |
|---|---|
--force | Cancel without confirmation |
--reason <text> | Reason for cancellation |
Examples
# Interactive cancel (asks for confirmation)
/sw:cancel-auto
# Force cancel without confirmation
/sw:cancel-auto --force
# With reason
/sw:cancel-auto --reason "Need to switch to urgent bug fix"
What It Does
- Checks if auto session is active
- Shows current session status
- Asks for confirmation (unless
--force) - Updates session status to "cancelled"
- Releases session lock
- Generates summary report
Output Example
📊 Current Session
Session ID: auto-2025-12-29-abc123
Status: running
Iteration: 47
Current Increment: 0001-user-auth
Increments Completed: 2
Duration: 2h 15m
Cancel this session? [y/N] y
✅ Session cancelled
Summary: .specweave/logs/auto-2025-12-29-abc123-summary.md
💡 To resume work later, just run /sw:do
Summary Report
A summary report is generated at .specweave/logs/auto-{session-id}-summary.md:
# Auto Session Summary
Session ID: auto-2025-12-29-abc123
Status: cancelled
Duration: 2h 15m
Iterations: 47
## Progress
- Tasks Completed: 28/42 (67%)
- Tests Passed: 112/115
- Coverage: 82%
## Increments
- 0001-user-auth: in-progress (15/20 tasks)
- 0002-payment: pending
- 0003-notifications: pending
## Cancellation
- Reason: Need to switch to urgent bug fix
- Time: 2025-12-29T12:15:00Z
Notes
- Cancelling doesn't undo completed work
tasks.mdprogress is preserved- You can resume anytime with
/sw:do - Use Claude Code's
/resumeto restore full conversation context
Related Commands
| Command | Purpose |
|---|---|
/sw:auto | Start auto session |
/sw:auto-status | Check session status |
/sw:do | Resume work on tasks |
See Also
- /sw:auto Documentation - Start autonomous execution
- /sw:auto-status Documentation - Session status
- Commands Overview - All SpecWeave commands