plan

plan is a command for coding agents from HigorAlves/orc. It costs 42 tokens per session (2,826 once invoked), scanned A, original, MIT.

A planning command that turns a feature or refactoring request into a written test-driven development plan and can break it into separate work issues. Test-driven development means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to create a resumable plan, optionally stress-test the design, split the plan into issues, and connect the work to a Jira ticket or selected repositories.
Why use it?
It helps clarify the implementation before coding, identify design risks, and divide large work into pieces that can be delivered independently.

Command

Part of the orc plugin — 13 skills, 30 commands, 14 agents, 5 hooks shipped together

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/higoralves/orc/plan
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Or install orc, the plugin that ships this one along with the rest of its 13 skills, 30 commands, 14 agents, 5 hooks.

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/higoralves/orc/plan.svg)](https://agentmods.dev/commands/higoralves/orc/plan)
Your own site
<a href="https://agentmods.dev/commands/higoralves/orc/plan"><img src="https://agentmods.dev/badge/commands/higoralves/orc/plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 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,826 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.00042 $0.02826
Opus 5 $0.00021 $0.01413
Sonnet 5 $0.00008 $0.00565
Haiku 4.5 $0.00004 $0.00283

Measured 3d ago against content hash b20a14978c9d, 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 3d 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.

orc/commands/plan.md · 149 lines

How it starts

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

/orc:plan

Turn a feature or refactor request into a written, TDD-shaped implementation plan. Persist it to .orc/<branch>/files/plan.md so the work can pause and resume.

Arguments

  • --auto[=guided|full] — autopilot level for this run (overrides interaction_policy; taxonomy in orc:using-orc). Soft-inward gates consult the resolved policy — guided auto-advances mechanical confirms with a printed one-liner; full pre-approves them from settled decisions (orc:state-protocol), stopping only on escalation-only conditions. Hard-outward gates are unaffected at every level.

  • --grill — after drafting the plan, invoke orc:grill-me to stress-test the design before committing.

  • --issues — after the plan is approved, run orc:to-issues to break it into independently grabbable issues.

  • --jira <KEY> — link a Jira ticket key (e.g. PROJ-123) to this session silently. Suppresses the Phase 1 link prompt. Validate against ^[A-Z][A-Z0-9_]*-\d+$.

  • --repos <list>, --repo <name>, --all-repos, --this-repo — workspace-mode repo selection. See orc:workspace-mode for precedence.

  • The feature description is the rest of the argument string.

Workflow

Phase 0 — Detect PRD-shaped input (optional)

If the feature description is long-form, references a Jira ticket / linked doc, or reads more like a brief than a settled spec — dispatch the orc-prd-analyzer subagent via Task first. Pass it the input + the URL if there is one. The agent returns a structured analysis (extracted goals, ambiguities, P0/P1/P2 clarifying questions, recommendation).

After the analyzer returns, print the Gate headline (**⛔ Gate — PRD analysis**, one line on P0/P1/P2 counts, per orc:callouts), then AskUserQuestion:

  • "Proceed to plan — questions are P1/P2 only"
  • "Hold — answer P0 questions with PM first" (exit; don't waste planning effort)
  • "Run /orc:rfc first — design space needs RFC treatment"

If the input is short and clear, skip Phase 0 and go straight to Phase 1.

Read the full file on GitHub · 149 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. 3d ago First seen · 149 lines · 42 tokens per session scan A b20a14978c9d

Subscribe to this mod's changes

plan is a command published in the GitHub repository HigorAlves/orc (6 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 2,826 once invoked, about $0.0002 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.