Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vincentkoc/dotskills --skill codex-session-recoverygit clone --depth 1 https://github.com/vincentkoc/dotskillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vincentkoc/dotskills/codex-session-recovery)<a href="https://agentmods.dev/skills/vincentkoc/dotskills/codex-session-recovery"><img src="https://agentmods.dev/badge/skills/vincentkoc/dotskills/codex-session-recovery/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vincentkoc/dotskills/codex-session-recovery"><img src="https://agentmods.dev/badge/skills/vincentkoc/dotskills/codex-session-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 25 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01092 |
| Opus 5.5 | $0.00024 | $0.00437 |
| Sonnet 5.5 | $0.00012 | $0.00218 |
| Haiku 4.5 | $0.00006 | $0.00109 |
Grade A, and why
codex-session-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Session Recovery
Purpose
Recover crashed, detached, or confusing agent sessions while preserving the best restore source.
When to use
- Recover a Codex, Claude, or tmux cockpit session.
- Find an exact
codex resume <id>command. - Preview or restore saved pane/window/session state.
- Repair missing snapshot history or tmux menu bindings.
Workflow
- Preserve evidence before writing state.
- Do not create a new snapshot until the restore candidate is known.
- Preserve Codex and Claude history; never delete or overwrite it during recovery or cleanup.
- Set a recovery pane title when possible.
- Inspect live tmux state.
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}'- Inspect relevant key bindings before re-sourcing tmux configuration.
- Inspect available recovery sources.
- Prefer the operator's snapshot/history helper when installed.
- For
ttcockpit restoration, read tt recovery and the snapshot directory'sAGENTS.mdbefore choosing a restore route. Install missing guidance from its dotfiles source; do not run a full bootstrap for this. - Inspect recent
~/.codex/sessions/YYYY/MM/DD/*.jsonlmetadata for session IDs and working directories. - Cross-check pane PIDs, cwd, and recent logs before selecting a session.
- Inventory pane markers separately from terminal RGB support. A working palette does not prove the saved amber, green or other pane assignments survived. Match historical colors by exact session UUID and CWD when window numbers changed.
- Produce a dry-run plan first.
- Prefer one-pane or one-window restore over whole-session restore.
- Show the snapshot or session ID, target pane, and exact command.
- If the exact owners are already live, attach or repair only missing markers. Preview
tt marker restore <session> <snapshot>when supported; preserve current conflicting markers. Do not rebuild or restart agents for missing pane colors.
- Execute only with clear intent.
- Require explicit intent before restore commands that mutate tmux state.
- Never kill broad Codex, Claude, tmux, or terminal processes from name matches alone.
- Restrict cleanup to the exact pane, PID, process group, or current-task resource.
- For cockpit recovery, prepare the native RGB palette, saved pane markers and native agent launch environment before starting any Codex process. Restore the native three-column, two-row six-pane layout and verify rendered colors, not only live PIDs.
- Preserve the original goals feature setting and each thread's goal lifecycle, objective, budget and usage. Do not add
--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.
- Stay narrow for session-ID requests.
- Return the concrete ID and
codex resume <id>first. - Add the broader recovery method only when requested.
- Return the concrete ID and
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago Changed 29fdf4bb36cc
- 1mo ago Changed · +10 lines 64ce20b17fae
- 2mo ago Changed · +19 lines 3b90810c31a2
- 3mo ago First seen · 60 lines · 61 tokens per session scan A a13b9878d1a4
codex-session-recovery is a skill published in the GitHub repository vincentkoc/dotskills (111 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,092 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
codex-session-recovery compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-session-recoveryvincentkoc/dotskills | Skill | 111 | today | MIT | A | 61 | Codex |
| research-reportShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| systematic-debuggingmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 33 | Claude Code, Codex |
| da-anomaly-analysisShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| ideationmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 75 | Claude Code, Codex |
| meeting-prepShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| slacrawlmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 41 | Claude Code, Codex |