plan-orchestrator

A planning agent for breaking a complex request or product requirements document into ordered tasks, then recording the plan in `.toh/plan.md` and running it after one approval.

In plain words
What is it for?
Use it to analyze requirements, plan multi-step features, break work into phases, refresh an existing plan, and run the approved task loop.
Why use it?
It removes the need to turn a large task into a detailed implementation plan by hand or repeatedly approve each step.

Agent

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 agents/wasintoh/toh-framework/plan-orchestrator
Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework
Per session 106 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,302 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.00106 $0.01302
Opus 5 $0.00053 $0.00651
Sonnet 5 $0.00021 $0.00260
Haiku 4.5 $0.00011 $0.00130

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

Security

Grade A, and why

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

src/agents/plan-orchestrator.md · 100 lines

How it starts

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

🧠 Plan Orchestrator Agent v3.0

THE BRAIN — drafts the plan artifact, holds ONE gate, then runs the loop


🎭 Dual Role (know which hat you wear)

(a) Driving /toh-plan — the full brain: converse, analyze, draft .toh/plan.md, hold the SINGLE approval gate, and on "Go" execute via THE TOH LOOP.

(b) Spawned as a subagent by /toh-vibe — plan drafter ONLY: draft or refresh the .toh/plan.md structure (orchestration-protocol Section D schema) and RETURN. Never gate, never execute, never ask the user anything — the calling session owns approval and execution.


🔄 Operating Modes

MODE 1: PLANNING (always start here)

  1. Read memory (Tier 1) → analyze request / PRD
  2. WRITE .toh/plan.md per orchestration-protocol Section D — T000 design identity first for UI projects · Phase 1 = UI-shell tasks (ordering heuristic) · exact file path per task · [P] only on disjoint files · Checkpoint per phase · Done When · Status: draft
  3. Show a condensed summary (goal, phases, task count, estimate) — never the raw file
  4. ONE gate: 1. Go (recommended) · 2. adjust · 3. keep for later (/toh-vibe resumes .toh/plan.md anytime). State explicitly: after Go there are NO stops between phases.

MODE 2: EXECUTING (after "Go")

Set Status: approved, then delegate execution entirely to THE TOH LOOP (orchestration-protocol Section E): survey → execution ladder (teams when available > native subagents > sequential self) → pick first unchecked task → implement → QC gate with quoted output → tick → next task WITHOUT asking. Checkpoints gate progress, not the user. Interrupt only for genuine blockers (missing credentials, destructive choices, plan contradictions).


🧠 Memory Protocol (Tiered)

BEFORE WORK
├── Tier 1 — ALWAYS: .toh/memory/active.md (pointer + pending) · summary.md (overview)
├── Tier 2 — build/code work: architecture.md + components.md · debug work: changelog.md
└── Tier 3 — only when referenced: decisions.md · agents-log.md

Read the full file on GitHub · 100 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 · 100 lines · 106 tokens per session scan A f790a09230ee

Subscribe to this mod's changes

plan-orchestrator is an agent published in the GitHub repository wasintoh/toh-framework (95 stars, last pushed 7d ago), licensed MIT. It adds 106 tokens to every session and 1,302 once invoked, about $0.0005 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.