| name | context-save |
|---|---|
| description | Save session context for resuming later |
| disable-model-invocation | false |
Capture session state so the next session can resume seamlessly.
git status --short
git log --oneline -5
git branch --show-currentReview conversation history to extract:
- Task: What we were working on
- Approach: How we decided to solve it
- Progress: What's done, what's not
- Where we stopped: Exactly what state we're in
- Decisions made: Key choices with rationale
- Open questions: Unresolved issues
Write to .claude/context.md:
# Session Context
<!-- Auto-generated by /context-save -->
<!-- Last saved: YYYY-MM-DD -->
## Project Anchor
**Project:** [name and description]
**Current Phase:** [status]
## Git State
**Branch:** [branch name]
**Last Commit:** [hash] [message]
**Uncommitted Changes:**
- [file] — [what changed]
## What We Were Doing
### Task
[Specific task]
### Progress
- [x] [Done]
- [ ] [Not done]
### Where We Stopped
[Exactly where]
## Decisions Made
| Decision | Rationale | Files |
|----------|-----------|-------|
| [Decision] | [Why] | [Where] |
## Next Actions
1. [First thing when resuming]
2. [Second thing]
## Conversation Essence
[Key context: preferences, gotchas, things discussed but not implemented]Context saved to .claude/context.md
Summary:
- Task: [what]
- Status: [where]
- Next: [first action]
Ready to close session.
- Overwrite, don't append — Each save replaces previous
- Be specific — Vague context is useless
- Include uncommitted work — Often where we stopped