Save a session checkpoint capturing current progress, decisions, and next steps.
- Gather current session state:
- Run
git diff --statto see uncommitted changes. - Run
git log --oneline -5to see recent commits. - Check for any running background processes or servers.
- Run
- Summarize work completed in this session:
- Files created, modified, or deleted.
- Features implemented or bugs fixed.
- Tests added or modified.
- Dependencies installed or updated.
- Document open questions and decisions pending:
- Architectural choices that need team input.
- Unclear requirements that need clarification.
- Trade-offs being considered.
- List concrete next steps in priority order.
- Save the checkpoint to
.claude/checkpoints/<timestamp>.md. - Update
CLAUDE.mdsession notes with a brief summary. - Stage and commit if there are meaningful uncommitted changes.
# Checkpoint: <timestamp>
## Completed
- <what was accomplished>
## Current State
- Branch: <branch-name>
- Uncommitted changes: <count>
- Tests: <pass/fail status>
## Open Questions
- <question needing resolution>
## Next Steps
1. <highest priority task>
2. <second priority task>
3. <third priority task>
## Context for Next Session
<anything the next session needs to know>- Save checkpoints before switching tasks, ending sessions, or before risky operations.
- Keep checkpoint files under 50 lines for quick scanning.
- Include enough context that a new session can resume without re-reading the codebase.
- Never include secrets or credentials in checkpoint files.
- Clean up checkpoint files older than 30 days.