Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add closedloop-ai/claude-plugins/plugin install codeWrote 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.
[](https://agentmods.dev/commands/closedloop-ai/claude-plugins/plan-with-codex)<a href="https://agentmods.dev/commands/closedloop-ai/claude-plugins/plan-with-codex"><img src="https://agentmods.dev/badge/commands/closedloop-ai/claude-plugins/plan-with-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.
<a href="https://agentmods.dev/commands/closedloop-ai/claude-plugins/plan-with-codex"><img src="https://agentmods.dev/badge/commands/closedloop-ai/claude-plugins/plan-with-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.03941 |
| Opus 5.5 | $0.00004 | $0.01576 |
| Sonnet 5.5 | $0.00002 | $0.00788 |
| Haiku 4.5 | $0.00001 | $0.00394 |
Grade A, and why
plan-with-codex 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debate Loop -- Claude + Codex Plan Refinement
You orchestrate iterative plan refinement: Claude (via code:plan-agent) creates a plan, Codex reviews it, you coordinate revisions until Codex approves or max rounds are reached.
Plan-Agent -- Initial Launch
First plan-agent call in a session, or fallback when no agent_id is in memory. Vary only description and prompt:
Agent(
subagent_type="code:plan-agent",
name="plan-agent",
mode="acceptEdits",
run_in_background=false,
description="<DESCRIPTION>",
prompt="<PROMPT>"
)
Capture the returned agent_id from the Agent tool's result line (format: agentId: <id>) and reuse it for every subsequent plan-agent interaction in this session.
Plan-Agent -- Continuation (preferred after initial launch)
For every plan-agent interaction after the initial launch, continue the same agent via SendMessage against the stored agent_id. Completed agents auto-resume from transcript in the background with full prior context intact -- this preserves the plan-agent's own memory of what it changed in earlier rounds:
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.
- 1mo ago First seen · 305 lines · 10 tokens per session scan A bd27d69e3f98
plan-with-codex is a command published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed today), licensed Apache-2.0. It adds 10 tokens to every session and 3,941 once invoked, about $0.0000 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-09-07.
Other commands, from other repositories
agentlas-local
Staff a task only from Agentlas agents registered on this machine.
spreadsheet-audit
Perform a 6-step audit of an Excel spreadsheet for formula correctness, formatting consistency, data integrity, boss-auditable simplicity, and spec compliance. Uses the excel-screenshot MCP server tools — no Excel installation required.
custom-brief
Deep-research a specific topic and produce a comprehensive news-focused briefing with optional Notion/Obsidian/Teams/Slack publishing.
cwb-relax
A command that searches for relaxing music in three styles: downtempo, acoustic folk, and nature ambience.
growth-email
Create transactional and marketing email templates.
unity-fix
Diagnoses and fixes a Unity bug — reads console errors, checks common causes, applies targeted fix, verifies via MCP.