Session Save
Capture current session progress so you can resume later with /session-load.
Usage
/session-save
Procedure
Step 1: Gather Session Context
Collect the following information:
- •Current branch: Run
git branch --show-current - •Modified files: Run
git status --shortto see what's changed - •Recent commits: Run
git log --oneline -5for recent history - •Current working directory: Note the cwd
Step 2: Summarize the Session
Create a session summary by reviewing what was accomplished:
- •What was done: List completed tasks/changes in this session
- •What's pending: List unfinished work or known TODOs
- •Key decisions: Any architectural or design decisions made
- •Blockers: Anything that's blocking progress
- •Context notes: Important context that would be lost between sessions
Step 3: Generate Session File
Create the file at .claude/sessions/<date>-<topic>.md:
- •
<date>= today's date inYYYY-MM-DDformat - •
<topic>= a short slug describing the session's focus (e.g.,auth-refactor,api-endpoints)
markdown
# Session: [Topic] **Date**: [YYYY-MM-DD] **Branch**: [branch-name] ## Completed - [What was accomplished] - [What was accomplished] ## Pending TODOs - [ ] [Task description] - [ ] [Task description] ## Key Decisions - [Decision and rationale] ## Blockers - [Blocker description, if any] ## Modified Files [Output of git status --short] ## Context Notes [Any important context for resuming, e.g., "The API design follows the pattern in src/api/users.ts", "We chose approach X over Y because..."] ## Resume Instructions To continue this work: 1. Check out branch: `git checkout [branch]` 2. Start with: [description of next step]
Step 4: Confirm Save
Tell the user:
- •Where the file was saved
- •How to resume: "Run
/session-loadin your next session to pick up where you left off"