dispatch-codex

dispatch-codex is a command for Claude Code from rhan1/crewline. It costs 15 tokens per session (798 once invoked), scanned B, original, MIT.

A command that sends a coding task to the Codex command-line tool through a planning, specification, and smoke-test workflow.

In plain words
What is it for?
Use it to force-dispatch a task when automatic dispatch would not start, then create a task specification and check the resulting API or UI output.
Why use it?
It gives tasks a fixed preparation and checking process, including required files, data, output shape, and limits before code is written.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; reads ~/.codex paths; runs codex exec.

Good fit Use it to force-dispatch a task when automatic dispatch would not start, then create a task specification and check the resulting API or UI output.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rhan1/crewline/dispatch-codex
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.

Clone the repo
git clone --depth 1 https://github.com/rhan1/crewline

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 dispatch-codex

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhan1/crewline/dispatch-codex"><img src="https://agentmods.dev/badge/commands/rhan1/crewline/dispatch-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00015 $0.00798
Opus 5.5 $0.00006 $0.00319
Sonnet 5.5 $0.00003 $0.00160
Haiku 4.5 $0.00002 $0.00080

Measured 1mo ago against content hash a546ce7a6e5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

dispatch-codex scanned grade B with 2 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

> `flex` was removed server-side on 2026-09-29 (every model returns `Unsupported service_tier: flex`) — never set `CODEX_SERVICE_TIER=flex`. Overrides: `CODEX_TIER=lite|std|high|max|algo` forces a tier; `CODEX_ROUTER=off

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- UI component → dev server + browser/curl verification
commands/dispatch-codex.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run the Codex dispatch workflow for the task below, even if the auto-dispatch heuristics wouldn't have fired. Do NOT shortcut the spec-writing or smoke-test steps.

Executor: Codex CLI, tier-routed. codex-dispatch.sh picks a tier per task (auto-routing tops out at high; max/algo only when forced):

Tier Model Effort service_tier Typical work
lite gpt-6-luna low default renames, typos, reformatting, boilerplate
std gpt-5.6-terra high default most mechanical code / API / data-transform specs (there is no GPT-6 Terra)
high gpt-6-sol high default executor top tier: hard mechanical builds, multi-file parsers
max gpt-6-astra high default forced only: audits, planning review, hard debugging
algo gpt-6-astra ultra default forced only: genuinely algorithmic specs

flex was removed server-side on 2026-09-29 (every model returns Unsupported service_tier: flex) — never set CODEX_SERVICE_TIER=flex. Overrides: CODEX_TIER=lite|std|high|max|algo forces a tier; CODEX_ROUTER=off reverts to whatever ~/.codex/config.toml says; CODEX_MODEL / CODEX_EFFORT / CODEX_SERVICE_TIER override individual knobs. Anything unexpected (classifier missing, bad tier name) falls back to std, never max.

Task

$ARGUMENTS

Workflow

  1. Plan. Read the referenced files, pattern sources, and data endpoints yourself. If anything essential is missing (target path, output shape, data-source URL), ask before writing the spec — thin specs produce thin code.

  2. Write the spec to /tmp/codex-dispatch-<short-task-name>-<unix-ts>.txt. Cover:

    • Exact target file path
    • 2–3 pattern files to mirror (style + error-handling conventions)
    • Data sources and expected fields
    • Output shape (JSON for APIs, component signature for UI)
    • Explicit "do not do" constraints — no npm/git/vercel/deploy, no tests/READMEs, no modifying other files, no network validation

Read the full file on GitHub · 44 lines

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. 1mo ago Changed · +12 lines scan A → B a546ce7a6e5c
  2. 2mo ago First seen · 32 lines · 15 tokens per session scan A 202b2d67436b

Subscribe to this mod's changes

dispatch-codex is a command published in the GitHub repository rhan1/crewline (2 stars, last pushed 11d ago), licensed MIT. It adds 15 tokens to every session and 798 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.