implement

An implementation command that sends a written coding plan to Codex MCP, allowing the user to choose the model, reasoning effort, and sandbox level. Codex acts as the builder while Claude prepares and delegates the plan.

In plain words
What is it for?
Use it to hand off a complete implementation plan, run it in the foreground, or start it in the background for later checking.
Why use it?
It turns an approved plan into a delegated implementation run and supports either waiting for completion or receiving a background job ID. It also accepts a plan file, inline text, or `PLAN.md`.

Command

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/xiaolai/cc-suite/implement
Clone the repo
git clone --depth 1 https://github.com/xiaolai/cc-suite
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,319 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.00020 $0.01319
Opus 5 $0.00010 $0.00660
Sonnet 5 $0.00004 $0.00264
Haiku 4.5 $0.00002 $0.00132

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

Security

Grade A, and why

implement 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.

commands/implement.md · 144 lines

How it starts

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

Codex Implement

Delegate an entire implementation plan to Codex MCP. Claude is the architect, Codex is the builder.

Input

$ARGUMENTS

Workflow

Step 0: Parse Execution Mode

Parse $ARGUMENTS for --background or --wait flags (remove the flag from remaining arguments):

Flag Mode
--background Background — spawn detached Codex runner, return job ID
--wait Foreground (explicit) — same as default
Neither Foreground (default) — run inline, block until complete

Step 1: Resolve the plan

Determine the plan content from $ARGUMENTS:

Input Action
A file path (e.g. plan.md, ./docs/plan.txt) Read the file to get the plan
Inline text Use the text directly as the plan
(empty) Look for PLAN.md in cwd, then ask the user

If a file path was given but the file does not exist, report "Plan file not found: {path}" and stop.

Read the plan content and display a brief summary to the user.

Large plans: If the plan exceeds 200 lines, warn the user that very large plans may exceed Codex's context window and suggest breaking it into phases.

Step 2: Let user choose model and settings

Follow the instructions in commands/shared/model-selection.md to discover available models and present choices.

  • Recommended model: first available from preflight
  • Recommended reasoning effort: medium
  • Recommended sandbox level: workspace-write
  • Include sandbox question: Yes

Step 3: Confirm and send to Codex

Show the final configuration:

  • Plan: (summary)
  • Working directory: {cwd}
  • Model: {chosen_model}
  • Reasoning effort: {chosen_effort}
  • Sandbox: {chosen_sandbox}

If --background mode was selected, follow the Background Execution section in commands/shared/codex-call.md. Build the prompt as described below, then hand off to the background runner with --kind implement.

Follow commands/shared/codex-call.md for the call pattern (CLI runner) and Job Tracking.

Read the full file on GitHub · 144 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 · 144 lines · 20 tokens per session scan A 148c3392e6a3

Subscribe to this mod's changes

implement is a command published in the GitHub repository xiaolai/cc-suite (44 stars, last pushed 23d ago), licensed ISC. It adds 20 tokens to every session and 1,319 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.