codex-offload-mcp: Command for Claude Code

.claude/commands/codex-draft.md

codex-draft is a command for Claude Code from jgt87/codex-offload-mcp. It costs 17 tokens per session (240 once invoked), scanned A, original, MIT.

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

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Codex.

This is jgt87/codex-offload-mcp's own configuration. It tells Claude Code how to work on codex-offload-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-offload-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jgt87/codex-offload-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jgt87/codex-offload-mcp/main/.claude/commands/codex-draft.md
Clone the repo
git clone --depth 1 https://github.com/jgt87/codex-offload-mcp

Made for: Claude Code.

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.

agentmods badge for codex-draft

README.md
[![agentmods](https://agentmods.dev/badge/commands/jgt87/codex-offload-mcp/codex-draft/github.svg)](https://agentmods.dev/commands/jgt87/codex-offload-mcp/codex-draft)
Your own site
<a href="https://agentmods.dev/commands/jgt87/codex-offload-mcp/codex-draft"><img src="https://agentmods.dev/badge/commands/jgt87/codex-offload-mcp/codex-draft/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.

agentmods 80×15 button for codex-draft

Your own site · 80×15
<a href="https://agentmods.dev/commands/jgt87/codex-offload-mcp/codex-draft"><img src="https://agentmods.dev/badge/commands/jgt87/codex-offload-mcp/codex-draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.00240
Opus 5.5 $0.00007 $0.00096
Sonnet 5.5 $0.00003 $0.00048
Haiku 4.5 $0.00002 $0.00024

Measured 2mo ago against content hash 821b97b79992, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

.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. 2mo ago 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 3mo ago), licensed MIT. It adds 17 tokens to every session and 240 once invoked, about $0.0001 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-31.