codex-draft

A command workflow that asks Codex to create a quick first draft, then has the current agent review and improve it. The draft is intended as a starting point rather than a finished result.

In plain words
What is it for?
Creating a first version of code or files with Codex, inspecting the result, and refining it to match the project's requirements.
Why use it?
It divides work between fast bulk generation and context-aware editing, which can reduce the effort needed for large initial changes.

Command for Claude Code

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 commands/jgt87/codex-offload-mcp/codex-draft
Clone the repo
git clone --depth 1 https://github.com/jgt87/codex-offload-mcp

Made for: Claude Code.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 240 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.00017 $0.00240
Opus 5 $0.00009 $0.00120
Sonnet 5 $0.00003 $0.00048
Haiku 4.5 $0.00002 $0.00024

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

Security

Grade A, and why

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

.claude/commands/codex-draft.md · 20 lines

What it actually says

The user wants draft→refine: Codex writes the bulk cheaply, you polish it with context.

Task: $ARGUMENTS

  1. Draft on Codex with codex_start(prompt, cwd) — ask for a straightforward first pass, not a finished product. A lower reasoningEffort is usually right; the goal is bulk output fast, and this keeps the expensive output tokens on Codex's side, not yours.
  2. Collect with codex_result and read the changed files.
  3. Refine in-process. Do the judgement-heavy part yourself — the edits that need this conversation's context, taste, or knowledge of the wider codebase. This is the half worth your tokens.

Reach for this when the bulk is cheap to generate but the polish needs context. If the whole thing needs your judgement, just do it in-process; if none of it does, a plain codex_start is enough.

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 · 20 lines · 17 tokens per session scan A 821b97b79992

Subscribe to this mod's changes

codex-draft is a command published in the GitHub repository jgt87/codex-offload-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 240 once invoked, about $0.0001 per session on Opus 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-31.