Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
Wrote 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/commands/mturac/everything-openai-codex/resume-session)<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/resume-session"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/resume-session/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/commands/mturac/everything-openai-codex/resume-session"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/resume-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00026 | $0.01332 |
| Opus 5 | $0.00013 | $0.00666 |
| Sonnet 5 | $0.00005 | $0.00266 |
| Haiku 4.5 | $0.00003 | $0.00133 |
Grade A, and why
resume-session 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 6d 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.
This is a copy
91% identical to resume-session — 48 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resume Session Command
Load the last saved session state and orient fully before doing any work.
This command is the counterpart to /save-session.
When to Use
- Starting a new session to continue work from a previous day
- After starting a fresh session due to context limits
- When handing off a session file from another source (just provide the file path)
- Any time you have a session file and want Codex to fully absorb it before proceeding
Usage
/resume-session # loads most recent file in ~/.codex/session-data/
/resume-session 2024-01-15 # loads most recent session for that date
/resume-session ~/.codex/session-data/2024-01-15-abc123de-session.tmp # loads a current short-id session file
/resume-session ~/.codex/sessions/2024-01-15-session.tmp # loads a specific legacy-format file
Process
Step 1: Find the session file
If no argument provided:
- Check
~/.codex/session-data/ - Pick the most recently modified
*-session.tmpfile - If the folder does not exist or has no matching files, tell the user:
Then stop.No session files found in ~/.codex/session-data/ Run /save-session at the end of a session to create one.
If an argument is provided:
- If it looks like a date (
YYYY-MM-DD), search~/.codex/session-data/first, then the legacy~/.codex/sessions/, for files matchingYYYY-MM-DD-session.tmp(legacy format) orYYYY-MM-DD-<shortid>-session.tmp(current format) and load the most recently modified variant for that date - If it looks like a file path, read that file directly
- If not found, report clearly and stop
Step 2: Read the entire session file
Read the complete file. Do not summarize yet.
Step 3: Confirm understanding
Respond with a structured briefing in this exact format:
SESSION LOADED: [actual resolved path to the file]
════════════════════════════════════════════════
PROJECT: [project name / topic from file]
WHAT WE'RE BUILDING:
[2-3 sentence summary in your own words]
CURRENT STATE:
PASS: Working: [count] items confirmed
In Progress: [list files that are in progress]
Not Started: [list planned but untouched]
WHAT NOT TO RETRY:
[list every failed approach with its reason — this is critical]
OPEN QUESTIONS / BLOCKERS:
[list any blockers or unanswered questions]
NEXT STEP:
[exact next step if defined in the file]
[if not defined: "No next step defined — recommend reviewing 'What Has NOT Been Tried Yet' together before starting"]
════════════════════════════════════════════════
Ready to continue. What would you like to do?
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.
- 6d ago First seen · 157 lines · 26 tokens per session scan A 6eb9207e2bea
resume-session is a command published in the GitHub repository mturac/everything-openai-codex (89 stars, last pushed 16d ago), licensed MIT. It adds 26 tokens to every session and 1,332 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to resume-session, differing in 48 lines, and is treated as a copy.
Other commands, from other repositories
teach
Hand-record a lesson into Memory Fabric (learning tier, high confidence) so it is recalled later.
handoff
Create a handoff document for seamless session continuity.
learn
A command that saves reusable discoveries and lessons from a coding session as one-line JSON records. JSONL means one JSON object per line, making the file easy to append to and process.
archive-mail-migrate
A one-time command that moves old email archive indexes and settings into the newer `.claude/.mail/` folder structure. It leaves the archived Markdown emails where they are.
context-budget
Legacy slash-entry shim for the context-budget skill. Prefer the skill directly.
localize-project
Create persistent project memory for this repo (spec, ADRs, session log) on top of the global Understudy team.