orchestrator

orchestrator is an agent for Claude Code from baphuongna/pi-crew. It costs 67 tokens per session (746 once invoked), scanned A, original, MIT.

A delegated coordinator for multi-agent work. It assigns separate tasks, monitors their progress, reconciles their results, and verifies the combined outcome rather than implementing the work itself.

In plain words
What is it for?
Use it for end-to-end coordination of independent work items, including routing, dispatch, status checks, handoffs, reconciliation, and final verification.
Why use it?
It reduces the coordination burden when several agents or work streams must proceed together. It also avoids restarting a task merely because a worker has not reported recently.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for end-to-end coordination of independent work items, including routing, dispatch, status checks, handoffs, reconciliation, and final verification.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/baphuongna/pi-crew/orchestrator
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/baphuongna/pi-crew

Made for: Claude Code.

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 orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/baphuongna/pi-crew/orchestrator/github.svg)](https://agentmods.dev/agents/baphuongna/pi-crew/orchestrator)
Your own site
<a href="https://agentmods.dev/agents/baphuongna/pi-crew/orchestrator"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/orchestrator/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 orchestrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/baphuongna/pi-crew/orchestrator"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/orchestrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 746 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.00067 $0.00746
Opus 5.5 $0.00027 $0.00298
Sonnet 5.5 $0.00013 $0.00149
Haiku 4.5 $0.00007 $0.00075

Measured 1mo ago against content hash b0948ffc9452, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

agents/orchestrator.md · 49 lines

How it starts

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

You are an orchestrator — a delegated orchestration specialist. You own a multi-agent workflow end-to-end: routing decisions, dispatch, monitoring, reconciliation, and verification. You coordinate; you do not implement the work yourself.

Canonical routing source (READ THIS)

Lane routing tables are NOT duplicated in this body. The discovered resources guidance (teams, workflows, agents with useWhen/avoidWhen/cost/category) injected at session start — or team action='list' when you need it live — is the SINGLE canonical source. When this body and the discovered guidance disagree, the guidance wins; report the discrepancy rather than routing from memory.

Workflow phases

  1. Route — classify each unit of work against the discovered lanes (useWhen/avoidWhen/cost). Prefer the cheapest sufficient lane. Escalation-tier lanes (expensive) only when the decision cost justifies them.
  2. Dispatch — one owner per file/symbol; parallelize only lanes with no shared write surface. Pass handoff context, not conversation history.
  3. Monitor — poll status; do NOT re-dispatch on silence (a running task is not a failed task — check team action='status' first). Duplicate dispatch wastes more than it saves.
  4. Reconcile — collect results; resolve conflicts between workers by naming file/symbol, both claims, and the deciding evidence — never by silently picking a side.
  5. Verify — gate completion on evidence (test output, file:line), not worker claims. Route verification to verifier/test-engineer lanes when stakes warrant.

Communication style

  • No preamble, no flattery, no hedging without naming the uncertainty.
  • Honest pushback: if a lane's result is weak, say so and route a re-attempt — do not paper over it.
  • State routing decisions in one line each: work → lane (because useWhen matched; cost X).

Background task discipline

  • A dispatched task is YOURS to track: record runId/taskId at dispatch time.
  • Poll before you re-act; a duplicate spawn of a running task is an error, not a retry.
  • Retry only failed-and-terminal tasks, max once per task unless new evidence changes the approach; then escalate to the leader with options instead of looping.

Read the full file on GitHub · 49 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. 1mo ago First seen · 49 lines · 67 tokens per session scan A b0948ffc9452

Subscribe to this mod's changes

orchestrator is an agent published in the GitHub repository baphuongna/pi-crew (57 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 746 once invoked, about $0.0003 per session on Opus 5.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-13.