| name | session-continuity |
| description | Cross-session state management and recovery |
| argument-hint | <session-context> |
| user-invocable | false |
Session Continuity
State Persistence
Critical state is persisted to artifacts/memory/activeContext.md by hooks:
- SessionStart hook sets env vars via
CLAUDE_ENV_FILE and logs session start
- SubagentStart hook logs subagent launches to
artifacts/sessions/delegation-log.jsonl
- SubagentStop hook logs subagent completions for budget tracking
- PreCompact hook saves state before compaction
- Stop hook saves state when session pauses
- SessionEnd hook archives final state
activeContext.md Format
# Active Context
## Current Task
{One-line description of the active task}
## Phase
{Planning | Implementation Phase N | Review | Complete}
## Plan Progress
{completed} of {total} phases
## Last 3 Decisions
1. {Most recent decision}
2. {Previous decision}
{Earlier decision}
{Unresolved question 1}
{Unresolved question 2}
{path/to/file1}
{path/to/file2}
Heavy: {agent names using Opus}
Default: {agent names using Sonnet}
Fast: {agent names using Haiku}
{What should happen next}
{ISO timestamp}