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.
npx agentmods add commands/zts0hg/codexspec/plan-to-tasksgit clone --depth 1 https://github.com/Zts0hg/codexspecWrote 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/zts0hg/codexspec/plan-to-tasks)<a href="https://agentmods.dev/commands/zts0hg/codexspec/plan-to-tasks"><img src="https://agentmods.dev/badge/commands/zts0hg/codexspec/plan-to-tasks.svg" alt="Measured on agentmods" 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 | $0.00016 | $0.01761 |
| Opus 5 | $0.00008 | $0.00881 |
| Sonnet 5 | $0.00003 | $0.00352 |
| Haiku 4.5 | $0.00002 | $0.00176 |
Grade A, and why
plan-to-tasks 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 today.
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 — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plan to Tasks Converter
Language Preference
Read .codexspec/config.yml. Two independent language controls apply (each falls back to language.output, then English):
- Interaction language (
language.interaction): language for all conversation with the user — questions, explanations, status messages, andcodexspecCLI terminal output. - Document language (
language.document): language for generated artifact files (requirements/spec/plan/tasks).
Converse in the interaction language and author artifacts in the document language. Apply the project's translation standard to both: translate by meaning (not word-for-word), keep English for terms with no good native equivalent, and write as if originally in that language.
User Input
$ARGUMENTS
Role
Act as a plan expander. Produce implementation tasks that execute the approved plan without redesigning it.
Feature Resolution and Inputs
Use an explicit path first, then the current branch. Ask the user if the feature cannot be resolved uniquely; never select the latest directory silently.
Read:
requirements.mdspec.mddesign.mdplan.md- Constitution and relevant repository conventions
design.md (the confirmed design) sits between spec.md and plan.md in authority; read it as context so tasks trace to the design the plan implements. A legacy feature may have no design.md; proceed from plan.md in that case.
Legacy compatibility: when requirements.md is absent, use spec.md as the temporary highest authority and state the limitation.
Stop Conditions
Before task generation, verify that the plan covers the specification and does not contradict confirmed requirements.
Stop instead of guessing when:
- A plan component is undefined or internally contradictory.
- A task would require a new architecture or product decision.
- Required file paths or dependencies cannot be determined safely.
- A critical upstream item remains open.
Task Rules
- Every task must include
Covers: REQ-xxx; Plan: <component/phase>. - A task must have one clear, verifiable outcome.
- Do not equate atomicity with exactly one file. Multiple tightly related files may belong to one task when splitting them would make validation artificial or incomplete.
- Use exact paths when they are known from the plan or repository; do not invent paths to satisfy a template.
- Preserve the plan's organization. Group by user story, component, or technical phase according to the approved plan.
- Declare only dependencies that are needed to execute or validate the task.
- Mark
[P]only when tasks can actually run concurrently after their declared dependencies. Missing[P]is not inherently a defect. - Require test-first ordering only when mandated by the constitution, specification, plan, or established repository workflow.
- Otherwise include the appropriate verification task without imposing TDD as a universal method.
- For every testable task, enumerate an explicit, individually identifiable Test Scenarios list: the happy path plus the boundary and error conditions the behavior implies. Non-testable tasks (docs, config, assets, infrastructure) keep their deterministic verification and do not carry test scenarios.
- Derive test scenarios from the specification's acceptance criteria and the covered requirement's behavior, expanding them into concrete cases; never invent scenarios with no upstream basis. If upstream behavior is too underspecified to enumerate meaningful scenarios, stop per the Stop Conditions rather than guessing.
- Keep each scenario individually identifiable and traceable so implementation and the
implement-tasksself-check can map each scenario to a test one-to-one. Do not pad: enumerate only scenarios the behavior actually implies. - Do not add polish, monitoring, abstraction, documentation, or hardening tasks unless they are required by the approved plan, repository policy, or a verified implementation need.
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.
- today Changed · +7 lines 721530ba55e7
- 4d ago First seen · 127 lines · 16 tokens per session scan A 64559ecac758
plan-to-tasks is a command published in the GitHub repository Zts0hg/codexspec (5 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 1,761 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-31.
Other commands, from other repositories
review-agentready
AgentReady-specific code review with attribute mapping and score impact analysis.
speckit.specify
Create or update the feature specification from a natural language feature description.
speckit.checklist
Generate a custom checklist for the current feature based on user requirements.
speckit.implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
speckit.tasks
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
speckit.clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.