codex-plan

codex-plan is a command for Claude Code from softaworks/agent-toolkit. It costs 15 tokens per session (2,668 once invoked), scanned B, original, MIT.

A command that creates a detailed software implementation plan with help from a Codex coding model. It first examines the request and asks questions about unclear requirements.

In plain words
What is it for?
Use it before coding features, migrations, integrations, or other projects where decisions and requirements need to be clarified and documented.
Why use it?
It helps turn a broad or incomplete development request into a plan that reflects the needed scope, technology, constraints, and security concerns.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; runs codex exec; mentions Codex.

Good fit Use it before coding features, migrations, integrations, or other projects where decisions and requirements need to be clarified and documented.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/softaworks/agent-toolkit/codex-plan
About the project

Softaworks Agent Toolkit is a collection of packaged instructions, scripts, agents, and commands that give AI coding assistants reusable procedures for development, documentation, planning, and professional work. Developers install its components individually in compatible coding-agent environments; catalogue entries represent parts of this toolkit.

softaworks/agent-toolkit · 2,729 stars · on GitHub

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/softaworks/agent-toolkit

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-plan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/softaworks/agent-toolkit/codex-plan"><img src="https://agentmods.dev/badge/commands/softaworks/agent-toolkit/codex-plan.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 2,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.02668
Opus 5.5 $0.00006 $0.01067
Sonnet 5.5 $0.00003 $0.00534
Haiku 4.5 $0.00002 $0.00267

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

Security

Grade B, and why

codex-plan scanned grade B with 1 finding 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 3mo 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

7. **Output instructions** - Write to `codex-plan.md` in current directory
commands/codex-plan.md · 320 lines

How it starts

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

Codex Plan Command

You are being asked to create a detailed implementation plan using a Codex subagent. Your job is to:

  1. Understand the user's planning request
  2. Ask clarifying questions using AskUser to improve plan quality
  3. Craft an excellent, detailed prompt for Codex
  4. Execute Codex to generate and save the plan

Always uses: gpt-5.2-codex with high reasoning

User Request

$ARGUMENTS

Step 1: Analyze the Request

Look at what the user wants to plan. Identify:

  • What is the core goal?
  • What technology/domain is involved?
  • What aspects are ambiguous or underspecified?
  • What decisions would significantly impact the plan?

Step 2: Ask Clarifying Questions

Use AskUser to ask 3-6 targeted clarifying questions before generating the plan.

Good clarifying questions:

  • Narrow down scope and requirements
  • Clarify technology choices
  • Understand constraints (time, budget, team size)
  • Identify must-haves vs nice-to-haves
  • Uncover integration requirements
  • Determine security/compliance needs

Example Question Patterns

For "implement auth":

  • What authentication methods do you need? (email/password, OAuth providers like Google/GitHub, SSO, magic links)
  • Do you need role-based access control (RBAC) or just authenticated/unauthenticated?
  • What's your backend stack? (Node/Express, Python/Django, etc.)
  • Where will you store user credentials/sessions? (Database, Redis, JWT stateless)
  • Do you need features like: password reset, email verification, 2FA?
  • Any compliance requirements? (SOC2, GDPR, HIPAA)

For "build an API":

  • What resources/entities does this API need to manage?
  • REST or GraphQL?
  • What authentication will the API use?
  • Expected scale/traffic?
  • Do you need rate limiting, caching, versioning?

For "migrate to microservices":

  • Which parts of the monolith are you migrating first?
  • What's your deployment target? (K8s, ECS, etc.)
  • How will services communicate? (REST, gRPC, message queues)
  • What's your timeline and team capacity?

Read the full file on GitHub · 320 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. 3mo ago First seen · 320 lines · 15 tokens per session scan B 0b3c3fc563cb

Subscribe to this mod's changes

codex-plan is a command published in the GitHub repository softaworks/agent-toolkit (2,729 stars, last pushed 8mo ago), licensed MIT. It adds 15 tokens to every session and 2,668 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

codex-plan compared with commands from other repositories

codex-plan next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-plansoftaworks/agent-toolkitCommand2.7k8mo agoMITB15Claude Code
memorizelucasrosati/claude-code-memory-setupCommand1.1k1mo agoMITA0Claude Code
resume-fromalexei-led/resume-fromCommand913d agoMITA13Claude Code
release-planalisunstar/OpenSunstarCommand311mo agoApache-2.0A0Claude Code
clarifyalisunstar/OpenSunstarCommand311mo agoApache-2.0A0Claude Code
iteratedaphnee-ovo/dev-flowCommand222d agoMITA14Claude Code
viberevert-setupmadeinplutofabio/vibe-revertCommand0yesterdayApache-2.0A22Claude Code, Cursor