← knowledge.oriz.in

rules/agent/claude-code/session-handoff-prompt

concept

Session handoff prompt

Why this exists

Claude Code context windows are finite. Auto-compact happens but drops nuance. Better move: fresh session at natural breakpoints, with a structured handoff.

CLAUDE.md carries the project's PERMANENT facts. Session-handoff carries the SESSION-SPECIFIC state — what got decided today, what's mid-flight, what's next.

The prompt to end a session with

Summarize everything important about this project:
- Architecture decisions made this session
- Current state / mid-flight work
- What's left to do
- Any gotchas discovered

Format so I can paste it directly into a new session as context.

The prompt to start the next session with

[Paste the summary from the previous session's end.]

Now continue from here. Trust the CLAUDE.md for permanent context;
this summary is where we left off.

When to break sessions

When NOT to break

Anti-patterns

Cross-refs