Complete verification steps before ending the session
Before ending the session, complete these steps:
/session-endIf you implemented features or completed tasks this session, verify ROADMAP.md
reflects current status if it exists. Mark completed items with [x].
Review what was done this session:
git log --oneline -5
Why this matters: If you skip this step, the next session starts with stale context — wrong priorities, wrong metrics, wrong status. Every section below must be updated.
Update SESSION_CONTEXT.md if it exists:
docs/SESSION_HISTORY.md if applicable
### Session #N (YYYY-MM-DD) with **Focus**: lineUpdate the Quick Status table to reflect current reality:
Rewrite the "Immediate Priority" goals based on what's actually next:
Check if agents suggested during the session were actually invoked:
# Check agent tracking state if hooks are configured
cat .claude/hooks/.session-agents.json 2>/dev/null
cat .claude/hooks/.agent-trigger-state.json 2>/dev/null
Compare agents invoked against suggestions. Report any gaps:
Also check the delegated review queue:
cat .claude/state/pending-reviews.json 2>/dev/null
If pending-reviews.json shows queued: true but no code-reviewer was invoked,
flag this as a compliance gap and suggest the user run a review before merging.
Remove ephemeral session state that should not persist.
# Remove ephemeral session tracking files
rm -f .claude/hooks/.session-agents.json
rm -f .claude/hooks/.agent-trigger-state.json
# Always remove the pending reviews queue for the session
rm -f .claude/state/pending-reviews.json
# Only remove handoff if no tasks are still in progress
if ! grep -q '"status": "in_progress"' .claude/state/task-*.state.json 2>/dev/null; then
echo "No in-progress tasks found. Cleaning up handoff file."
rm -f .claude/state/handoff.json
else
echo "In-progress tasks found. Preserving handoff.json for session recovery."
fi
Keep task-*.state.json files only if they have in_progress steps (the user
may resume them next session).
Commit and push all session-end changes:
git add -A
git commit -m "session-end: [brief summary of session work]"
git push
Session complete.
| Version | Date | Description |
|---|---|---|
| 1.0 | 2026-02-25 | Initial implementation |
| 1.1 | 2026-03-01 | Sanitized for framework repo (removed app-specific scripts) |