Context rotation for fresh sessions. Saves current state and signals to start a new session with clean context.
Save current state and signal to start a fresh session. Use when context is exhausted or at natural breakpoints.
Reason: $ARGUMENTS
Not for:
/checkpoint/execute-plan handles its own recap/summary (add --quick for the compact form)Difference from /checkpoint:
| | /handoff | /checkpoint |
|-|------------|---------------|
| Purpose | End session, rotate context | Save progress, continue or pause |
| Saves | STATE.md + RECAP.md | Checkpoint file only |
| Signal | "Start a new session" | "Can resume from here" |
| Best for | Context exhaustion | Mid-session saves |
1. SUMMARIZE
└── What was accomplished, what's pending, key decisions
2. RECAP
└── Run /summary --quick if RECAP.md is stale
3. SAVE
└── Update STATE.md with handoff context
4. SIGNAL
└── Tell user to start fresh session with specific next step
Gather context for the handoff:
Check if thoughts/RECAP.md is fresh (updated in last 10 minutes).
/summary --quick)Update thoughts/STATE.md with handoff context:
# Project State
**Last Updated**: YYYY-MM-DD HH:MM
**Branch**: [current branch]
**Workflow Position**: handoff
**Handoff Reason**: [reason from $ARGUMENTS or auto-detected]
## Active Work
- **Feature**: [current feature/task]
- **Plan**: [path to active plan, if any]
- **Phase**: [current phase in the plan]
## Session Summary
[Brief summary of what was accomplished]
## Key Decisions
- [Decision 1]: [rationale]
- [Decision 2]: [rationale]
## Pending Work
- [ ] [Next task 1]
- [ ] [Next task 2]
## Blockers
- [Blocker description, if any]
## Resume Instructions
1. Read this file: `thoughts/STATE.md`
2. Read the recap: `thoughts/RECAP.md`
3. Read the context: `thoughts/CONTEXT.md` (if exists)
4. Continue with: [specific next step]
If thoughts/STATE.md already exists:
Display a clear handoff message to the user:
## Handoff Complete
**Reason**: [reason]
**Branch**: `feat/auth`
**State saved**: `thoughts/STATE.md`
**Recap saved**: `thoughts/RECAP.md`
### To resume in a new session:
Please read thoughts/STATE.md and thoughts/RECAP.md, then continue with: [specific next step]
**Tip**: Copy the resume command above into your new session.
# Context exhaustion
/handoff context is getting heavy
# Natural breakpoint
/handoff phase 1 complete, moving to phase 2
# Before risky operation
/handoff about to refactor auth, want fresh context
# End of day
/handoff wrapping up for today
/summary --quick first if you want a more detailed session summary/checkpoint is lighterSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer