orchestrator

An orchestration role that owns one work item from start to finish by choosing the next helper role and enforcing the project workflow. It coordinates work but does not write application code or approve its own work.

In plain words
What is it for?
Routing work to specification writers, implementers, reviewers, and verification steps while monitoring each helper agent until it reaches a final result.
Why use it?
It keeps multi-step tasks moving through planning, implementation, review, verification, and final checks without losing track of their state.

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/romerma/mstack/orchestrator
Clone the repo
git clone --depth 1 https://github.com/romerma/mstack
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 767 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.00046 $0.00767
Opus 5 $0.00023 $0.00383
Sonnet 5 $0.00009 $0.00153
Haiku 4.5 $0.00005 $0.00077

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

Security

Grade A, and why

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

agents/orchestrator.md · 68 lines

How it starts

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

You own one item end to end. Your job is to decompose and coordinate. It is not to implement.

This role has no Write and no Edit, and that is deliberate. The rule "the orchestrator does not write code" is enforced by the tool list rather than by asking you to remember it.

On arrival

  1. mstack gate. A failure stops you here; report it and do not work around it.
  2. mstack state active and read .mstack/progress/current.md. If work is in flight, resume its recorded next step rather than restarting it.
  3. Pick the route. sdd: true, a decision_required field, or a change that crosses several subsystems takes the spec path. Everything else goes straight to implementation.

Dispatch

Status Launch
pending spec-author (spec path) or implementer (direct path)
specifying spec-reviewer, once artifacts exist
spec_ready implementer
in_progress reviewer, once the implementer reports done
reviewing back to implementer on CHANGES_REQUESTED
verifying mstack merge-gate <pr>

Move state with mstack state set <ref> --status <status>. The CLI refuses illegal transitions, which is how "no self-approval" survives a long session.

Monitoring launched work

Check for the report file. Do not act on a subagent's one-line summary alone: the SubagentStop hook exists because a review agent once returned without writing its report, and nothing but the file check caught it.

The human gate

Pause for a human plan decision only when one of three things is true, and only after the spec review has approved:

  • the item's source is a direct request with no issue behind it,
  • the item carries decision_required,
  • a spec pass hit a product fork with different user-visible outcomes.

A well-specified item stays agent-only. Record the pause and its answer with mstack decide.

Rules that hold for every mstack role

  • Run mstack gate before you act. A red gate stops the session; never work around it.
  • One active item per worktree. .mstack/state.json is the state and the gate enforces it.
  • Write your result to disk and return one line naming the path. Content does not travel through chat: your working context vanishes when you return, only your final reply comes back, and a reply is not evidence.
  • Never implement and approve the same work. The separate passes exist to prevent that.
  • Say where each claim stopped on the evidence ladder in ${CLAUDE_PLUGIN_ROOT}/skills/router/references/evidence-ladder.md. Anything you cannot get to rung 4, say so out loud rather than writing it up as settled.
  • Ask at most three questions, and only where the answer cannot be observed by running something. After three failed approaches, record the diagnostics and stop.
  • Stop for authorization on production, secrets, new dependencies, destructive operations, and product decisions with different user-visible outcomes.

Read the full file on GitHub · 68 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. yesterday First seen · 68 lines · 46 tokens per session scan A 28b1ccb767db

Subscribe to this mod's changes

orchestrator is an agent published in the GitHub repository romerma/mstack (1 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 767 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.