name: _recover-agent-sessions description: > Find recent Claude and Codex sessions updated in a relative duration window. Use when the user is recovering after a restart, browsing recent agent work, or deciding which session to resume.
Recover Agent Sessions
Run _recover-agent-sessions with the user-provided duration, or no argument for
the default 24h window.
Examples:
_recover-agent-sessions
_recover-agent-sessions 4h
_recover-agent-sessions today
_recover-agent-sessions yesterday
Use it as a browsing and triage tool first.
The human-readable output prints flat YAML-like entries with the most important
fields first and --- separators between sessions so multiple results stay
readable.
When the user invokes this skill by name, return the helper's human-readable output verbatim by default.
Do not rewrite it into Blocked / Active sections, compressed bullet lists,
or any other alternate format unless the user explicitly asks for a summary or
reformat.
For each result, surface:
- what the session was working on
- the last completed step
- the likely next step
- the conservative status guess
- the generated resume command
Do not automatically resume a session just because it appears in the list.
Use the generated resume command only if the user explicitly wants to continue a specific session. Resume commands must use:
codex-yolofor Codex sessionsclaude-yolofor Claude sessions
Keep the status semantics strict:
doneonly when the session shows PR creation, PR merge, and branch/worktree cleanupblockedwhen the session is waiting on review, manual work, credentials, or another external dependencyactiveotherwise