plan

A command that turns an approved software specification into a detailed implementation plan for an engineer who does not know the codebase. A specification describes what should be built and why; a plan describes exactly how to build it.

In plain words
What is it for?
Use it to start, resume, list, inspect, or validate plans stored in the project's .procoder/plans/ directory.
Why use it?
It prevents vague tasks and placeholder steps by requiring each part of the work to be concrete, self-contained, and quality-checked.

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/azrtydxb/procoder/plan
Clone the repo
git clone --depth 1 https://github.com/azrtydxb/procoder
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 707 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.00027 $0.00707
Opus 5 $0.00014 $0.00353
Sonnet 5 $0.00005 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured yesterday against content hash dae78bd53303, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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.

.kilo/commands/plan.md · 56 lines

What it actually says

The user invoked /procoder:plan with arguments:

The command below is the procoder binary on PATH.

Plans live under .procoder/plans/, the middle link of the chain: spec (what and why) → plan (how, exactly) → todo (tracked, quality-gated execution). Write the plan for an engineer who is skilled but knows nothing about this codebase and its domain: every task self-contained, every value literal, nothing left to taste.

With a name in the arguments, start (or resume) that plan. With check or list, run the matching subcommand. With no arguments, run procoder plan list and report.

The workflow:

  1. Start from a COMPLETE spec (procoder spec check <name> says so). No spec → run /procoder:spec first; the thinking happens before the plan, not inside it.
  2. procoder plan template <name> prints the shape; write it to the printed path and fill it:
    • Goal — one sentence. Architecture — two or three.
    • Constraints — project-wide requirements every task inherits (version floors, naming rules, exact copy), taken verbatim from the spec. Every task implicitly includes this section.
    • Tasks (## Task N: <name>) — the smallest unit that carries its own test cycle and is worth a reviewer's gate. Fold setup, config, and docs into the task whose deliverable needs them; split only where a reviewer could reject one task while approving its neighbour. Each task carries:
      • Files: — every file created or modified, one responsibility each.
      • Interfaces: — the exact names and signatures this task consumes from earlier tasks or produces for later ones. A task's implementer sees only their own task; this line is how they learn what their neighbours call things.
      • Checkbox steps, one action each: write the failing test (with the literal test code or command and expect FAIL with "..."), implement minimally, run to pass, commit.
  3. Never write these — they are plan failures, not plans: "TBD", "TODO", "implement later", "add appropriate error handling", "handle edge cases", "write tests for the above" (without the test code), or "similar to Task N" (repeat the code — tasks are read out of order).
  4. Run procoder plan check <name> after each pass; it names the remaining gaps. Keep writing until it says COMPLETE. Then self-review once against the spec: point to the task that covers each spec requirement, and check names stay consistent across tasks (a function renamed between Task 3 and Task 7 is a bug).
  5. When COMPLETE: seed the todo list — procoder todo add one task each, acceptance criteria from the task's steps (see /procoder:todo) — and execute task by task, gate-clean after each. If reality contradicts the plan mid-build, update the plan first and re-check.
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. yesterday First seen · 56 lines · 27 tokens per session scan A dae78bd53303

Subscribe to this mod's changes

plan is a command published in the GitHub repository azrtydxb/procoder (196 stars, last pushed 2d ago), licensed Apache-2.0. It adds 27 tokens to every session and 707 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.