codex-execute

A command that carries out an implementation plan through a Codex server, assigning tasks to separate coding-agent processes and Git workspaces.

In plain words
What is it for?
Use it to execute the tasks in a plan, run independent tasks in parallel, and track completed work through branches and isolated worktrees.
Why use it?
It coordinates dependent or parallel development tasks and keeps their branches organized as work progresses.

Command for 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.

agentmods
npx agentmods add commands/arittr/spectacular/codex-execute
Clone the repo
git clone --depth 1 https://github.com/arittr/spectacular

Made for: Codex.

Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,503 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.00018 $0.04503
Opus 5 $0.00009 $0.02252
Sonnet 5 $0.00004 $0.00901
Haiku 4.5 $0.00002 $0.00450

Measured 2d ago against content hash 55802829018a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-execute 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 2d 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.

.codex/commands/codex-execute.md · 528 lines

How it starts

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

You are executing an implementation plan using the Codex MCP server.

Architecture

Execution Flow:

  1. Orchestrator (This Command): Validates worktree, setup, configures options
  2. MCP Server (spectacular-codex): Parses plan.md, spawns Codex CLI subagents
  3. Codex Subagents: Execute tasks in isolated worktrees (parallel or sequential)
  4. Git State: Branches track completion, worktrees provide isolation

Key Difference from Claude Code:

  • Claude Code: Uses Task tool to spawn Claude subagents in same session
  • Codex: Calls spectacular_execute MCP tool which spawns separate Codex CLI processes with --dangerously-bypass-approvals-and-sandbox --yolo

Available Skills

Skills are referenced on-demand when you encounter the relevant step. Do not pre-read all skills upfront.

Support Skills (read as needed when referenced):

  • validating-setup-commands - Reference if CLAUDE.md setup validation needed (Step 1.1)
  • using-git-spice - Reference for git-spice command syntax (as needed)
  • verification-before-completion - Reference before claiming completion (Step 3)
  • finishing-a-development-branch - Reference after all phases complete (Step 4)

Input

User will provide: codex-execute {plan-path}

Read the full file on GitHub · 528 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. 2d ago First seen · 528 lines · 18 tokens per session scan A 55802829018a

Subscribe to this mod's changes

codex-execute is a command published in the GitHub repository arittr/spectacular (20 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 4,503 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-30.