run-plan

run-plan is a command for Claude Code, OpenCode from juliusz-cwiakalski/agentic-delivery-os. It costs 8 tokens per session (2,250 once invoked), scanned A, original, MIT.

A command that carries out the unfinished phases of an implementation plan for a software change.

In plain words
What is it for?
Use it to execute one phase, several phases, or all remaining phases of a plan, with options to continue with or without review.
Why use it?
It applies the planned work in a controlled sequence and checks branch and working-tree conditions before editing. You can limit the phases, preview the run, or pause for review.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: agent in frontmatter; positional $N argument; mentions OpenCode.

Good fit Use it to execute one phase, several phases, or all remaining phases of a plan, with options to continue with or without review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juliusz-cwiakalski/agentic-delivery-os/run-plan
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/juliusz-cwiakalski/agentic-delivery-os

Made for: Claude Code, OpenCode.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/juliusz-cwiakalski/agentic-delivery-os/run-plan/github.svg)](https://agentmods.dev/commands/juliusz-cwiakalski/agentic-delivery-os/run-plan)
Your own site
<a href="https://agentmods.dev/commands/juliusz-cwiakalski/agentic-delivery-os/run-plan"><img src="https://agentmods.dev/badge/commands/juliusz-cwiakalski/agentic-delivery-os/run-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 run-plan

Your own site · 80×15
<a href="https://agentmods.dev/commands/juliusz-cwiakalski/agentic-delivery-os/run-plan"><img src="https://agentmods.dev/badge/commands/juliusz-cwiakalski/agentic-delivery-os/run-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 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,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00008 $0.02250
Opus 5 $0.00004 $0.01125
Sonnet 5 $0.00002 $0.00450
Haiku 4.5 $0.00001 $0.00225

Measured 3d ago against content hash 74b115e2e98a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

run-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.

.opencode/command/run-plan.md · 184 lines

How it starts

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

<discovery_rules> Locate change folder: search doc/changes/**/*--<workItemRef>--*/ If not found, search for spec file: doc/changes/**/chg-<workItemRef>-spec.md Plan file: chg-<workItemRef>-plan.md inside the change folder. Spec file: chg-<workItemRef>-spec.md for change.type and slug validation. Folder pattern: doc/changes/YYYY-MM/YYYY-MM-DD--<workItemRef>--<slug>/ Never reference doc/changes/current/ in edits or evidence. </discovery_rules>

<branch_rules> <change.type>/<workItemRef>/<slug> 1. If current branch matches pattern → keep. 2. Else attempt checkout existing branch. 3. Else create new branch. 4. Abort if dirty working tree contains unrelated staged changes. </branch_rules>

<directive_parsing> Supported (case-insensitive):

  • "execute next N phases" → run current incomplete phase + N−1 subsequent.
  • "execute all remaining phases" → run all incomplete phases.
  • "execute phase N" → run only phase N (must be incomplete).
  • "ask for review" / "and then ask for review" → pause after requested phases (default).
  • "no review" / "continue without review" → do not pause.
  • "dry run" → simulate; no edits/commits.
  • "commit per task" → commit after each task instead of per phase.

Defaults (no directive): phasesToRun=1; askForReview=true; commitMode=per-phase. </directive_parsing>

<plan_parsing_rules> Phase header regex: /^### Phase (\d+):/ Tasks: checkboxes under "Tasks:" until blank line or "Acceptance Criteria:" Unchecked: - [ ]; Completed: - [x] Completion: replace token only, append note e.g. (done: added config & tests) Acceptance criteria: lines start with "- Must:" or "- Should:"; append (PASSED: <summary>) or (FAILED: <summary>) Execution Log: header "## Execution Log"; append if missing </plan_parsing_rules>

<core_principles> Determinism: parsing & updates never reorder tasks or phases. Minimality: edit only necessary lines; avoid broad formatting changes. Traceability: every edit tied to task completion; commits atomic. Autonomy: proceed without prompting unless blocked. Idempotence: re-running resumes cleanly without duplicating evidence. </core_principles>

<phase_execution_rules> For each selected phase:

  1. Identify pending tasks (unchecked). If none but acceptance evidence missing, treat as completion-only phase.
  2. For each pending task: a. Form internal contract (goal, inputs, outputs, success checks). b. Discover relevant files in: src/, app/, packages/, modules/, lib/, services/, infra/, config/, scripts/, tests/, static/, doc/. c. Implement minimal edits; avoid unrelated refactors. d. Add/adjust tests when functional behavior changes. e. Run quick validations (typecheck/build/test subset). f. Mark task completed with concise evidence note. g. If commitMode=per-task: stage only task changes + plan update, then /commit using actual values for workItemRef, the task's specific outcome, supported why from the spec/plan, and observed verification.
  3. After tasks complete: a. Run full quality gates; capture PASS/FAIL summaries. b. Append evidence to acceptance criteria lines (once only). c. Append Execution Log entry. d. If commitMode=per-phase: /commit using actual values for workItemRef, the completed work's specific outcome, supported why from the spec/plan, and observed verification.
  4. Stop after phasesToRun. If askForReview=true, pause with summary. </phase_execution_rules>

Read the full file on GitHub · 184 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 · 184 lines · 8 tokens per session scan A 74b115e2e98a

Subscribe to this mod's changes

run-plan is a command published in the GitHub repository juliusz-cwiakalski/agentic-delivery-os (37 stars, last pushed 3d ago), licensed MIT. It adds 8 tokens to every session and 2,250 once invoked, about $0.0000 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-09-07.