Recovers crashed or detached Codex/Claude sessions from tmux panes, cockpit snapshots, session history, and agent logs. Preserves restore evidence and produces a dry-run plan before executing targeted recovery commands.
Ships in codex-session-recovery. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Recover crashed, detached, or confusing agent sessions while preserving the best restore source.
codex resume <id> command.tmux display-message -p '#S:#I.#P #{pane_current_command} #{pane_current_path}'tmux list-panes -a -F '#S:#I.#P #{pane_pid} #{pane_current_command} #{pane_current_path}'tt cockpit restoration, read tt recovery and the snapshot directory's AGENTS.md before choosing a restore route. Install missing guidance from its dotfiles source; do not run a full bootstrap for this.~/.codex/sessions/YYYY/MM/DD/*.jsonl metadata for session IDs and working directories.tt marker restore <session> <snapshot> when supported; preserve current conflicting markers. Do not rebuild or restart agents for missing pane colors.--disable goals, pause/clear goals, or issue blanket resume commands as part of restoration. Preserve native continuation of active goals; leave paused and terminal goals in their existing states.codex resume <id> first.tt.stateDiagram-v2
[*] --> PreserveRestoreEvidence
PreserveRestoreEvidence --> MatchSourceAndTarget
MatchSourceAndTarget --> ReportUnknown: identity or source ambiguous
MatchSourceAndTarget --> ReturnResumeID: session-ID lookup
MatchSourceAndTarget --> ShowExactPlan: preview or recovery
ShowExactPlan --> ReportPlan: preview only or mutation not authorized
ShowExactPlan --> TargetedRecovery: exact mutation authorized
TargetedRecovery --> PrepareNativeAppearance: tt cockpit
PrepareNativeAppearance --> PreserveThreadGoals
PreserveThreadGoals --> LaunchExactSessions
LaunchExactSessions --> VerifyTarget
TargetedRecovery --> VerifyTarget: other recovery
VerifyTarget --> ReportResult
ReportUnknown --> [*]
ReturnResumeID --> [*]
ReportPlan --> [*]
ReportResult --> [*]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/codex-session-recovery:codex-session-recoveryfrom codex-session-recovery
npx claudepluginhub vincentkoc/dotskills --plugin codex-session-recoveryOther plugins' skills for the same job