plan

plan is a command for coding agents from jcarlosrodicio/opencode-agent-orchestration-kit. It costs 17 tokens per session (717 once invoked), scanned A, original, Apache-2.0.

A planning workflow that researches a software task, turns the findings into an implementation plan, and reviews that plan before any files are changed.

In plain words
What is it for?
It helps define scope, assumptions, acceptance criteria, validation steps, risks, and an ordered list of coding tasks.
Why use it?
It gives developers a checked, detailed plan without modifying the codebase. This reduces guesswork before implementation begins.

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/jcarlosrodicio/opencode-agent-orchestration-kit/plan
Clone the repo
git clone --depth 1 https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit

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 plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/jcarlosrodicio/opencode-agent-orchestration-kit/plan.svg)](https://agentmods.dev/commands/jcarlosrodicio/opencode-agent-orchestration-kit/plan)
Your own site
<a href="https://agentmods.dev/commands/jcarlosrodicio/opencode-agent-orchestration-kit/plan"><img src="https://agentmods.dev/badge/commands/jcarlosrodicio/opencode-agent-orchestration-kit/plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 717 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.00017 $0.00717
Opus 5 $0.00009 $0.00358
Sonnet 5 $0.00003 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 4d ago against content hash 22d8930e27b6, 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 4d 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.

opencode/commands/plan.md · 75 lines

How it starts

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

Objective:

$ARGUMENTS

Run a deterministic plan-only flow.

Contract: lead -> researcher -> specifier -> reviewer.

Init/context policy

Before invoking researcher, record only the minimum context:

  • cwd: target repository or area.
  • AGENTS.md: applicable local rules when present.
  • git state: clean/dirty state when the plan depends on current changes.
  • validation commands: likely checks the plan should use.
  • repo docs: local docs relevant to research/spec.

Do not implement or do deep discovery in this phase.

Mandatory flow

  1. Ground the user objective with assumptions, questions, scope, non-scope, and verifiable success criteria.
  2. Always invoke researcher first; wait for the full result before continuing.
  3. Synthesize research findings: verified facts, inferences, risks, recommended decisions, and open questions.
  4. Invoke specifier only after research has been consolidated.
  5. Ask specifier for an implementation-ready plan, acceptance criteria, validation, and ordered tasks.
  6. Invoke reviewer to review the plan/spec against the objective, research, assumptions, risks, and acceptance criteria.
  7. If reviewer finds no significant issues, deliver the final plan.
  8. If reviewer finds significant issues, allow exactly 1 correction pass.
  9. After the second review, deliver the plan with explicit risks or declare the state blocked.

Dependency rules

  • Do not invoke developer.
  • Do not invoke designer; if the work needs design, mark that dependency in the plan or recommend /design or /feature.
  • Do not implement code or modify application files.
  • Do not invoke specifier while researcher has pending work.
  • Do not invoke reviewer before a reviewable plan/spec exists.
  • Do not use evaluator, debugger, or evolver; this command plans, it does not evolve or validate the harness.
  • Do not parallelize phases; this flow is sequential by design.
  • If there is a blocking question, stop the flow and state it instead of inventing a decision.

Read the full file on GitHub · 75 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. 4d ago First seen · 75 lines · 0 tokens per session scan A 22d8930e27b6

Subscribe to this mod's changes

plan is a command published in the GitHub repository jcarlosrodicio/opencode-agent-orchestration-kit (105 stars, last pushed 5d ago), licensed Apache-2.0. It adds 17 tokens to every session and 717 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.