codex

A Codex add-on that lists saved coding sessions and helps import one from Codex, Claude Code, Pi, or another profile.

In plain words
What is it for?
Use it to filter sessions, preview a selected session, confirm an import, and get the Codex command for opening the resulting thread.
Why use it?
It helps you continue work across coding agents without manually searching for session data. Codex still requires you to run the printed resume command separately.

Agent

Install

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.

agentmods
npx agentmods add agents/alexei-led/resume-from/codex
Clone the repo
git clone --depth 1 https://github.com/alexei-led/resume-from
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00375
Opus 5 $0.00000 $0.00187
Sonnet 5 $0.00000 $0.00075
Haiku 4.5 $0.00000 $0.00038

Measured yesterday against content hash 43d13da5094d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex 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 yesterday.

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.

docs/agents/codex.md · 71 lines

What it actually says

Codex guide

The Codex plugin adds a /resume-from prompt. The prompt runs the matching published command package.

Install

codex plugin marketplace add alexei-led/resume-from
codex plugin add resume-from@alexei-led-resume-from

Use Codex CLI or the Codex desktop application. The Codex IDE extension does not install plugins.

Network requirement

The prompt runs a pinned resume-from version through npx --yes. The first use needs access to the npm registry. Later use can use the local npm cache.

Import a session

  1. Run /resume-from.
  2. Read the numbered list.
  3. Run /resume-from <row>.
  4. Read the preview.
  5. Run the token-bearing /resume-from <row> --confirm <token> command printed by the preview.

Codex cannot move the current process into the new thread. The command prints the new thread ID and the native resume command.

codex resume <thread-id>

Run that command in a terminal.

Filter the source list

List sessions from one agent:

/resume-from claude
/resume-from pi
/resume-from codex

List sessions from one home:

/resume-from --agent codex --home ~/.codex-work

Use --help to show all selectors and options.

/resume-from --help

Use another Codex home

Codex reads CODEX_HOME. The default home is ~/.codex.

Start Codex with another target home:

CODEX_HOME="$HOME/.codex-work" codex

Add other source homes in the shared configuration file.

Changes

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.

  1. yesterday First seen · 71 lines · 0 tokens per session scan A 43d13da5094d

Subscribe to this mod's changes

codex is an agent published in the GitHub repository alexei-led/resume-from (5 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 375 tokens. 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-31.