/epic:orchestratefrom epic
Handles multi-agent orchestration: inbox reading, dependency resolution, message formatting, and handoffs. Provides status dashboard and intervention control via internal modes.
Ships in epic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CRITICAL: Run EPIC_PROJECT_DIR=$(epic-harness path) first. NEVER use .harness/ in the project directory.
Triggered automatically when an active multi-agent orchestration is detected.
EPIC_PROJECT_DIR=$(epic-harness path)$EPIC_PROJECT_DIR/orchestrator/run.json$EPIC_PROJECT_DIR/orchestrator/agents/{my_id}/inbox.jsonl$EPIC_PROJECT_DIR/orchestrator/control.jsongeneration in control.json to acknowledge$EPIC_PROJECT_DIR/orchestrator/run.json dependency graphstatus.json — if any dependency is not DONE, waitWhile working on the assigned task:
orchestrate hook automatically appends events to stream.jsonl on each tool callWhen task is complete:
orchestrate hook will evaluate dependencies and notify downstream agentsRead-only view of the current orchestration run. Displayed when user runs /status or asks about orchestration state.
$EPIC_PROJECT_DIR/orchestrator/run.json existsNo active orchestration. Run
/goor/orbitto start.
status is not "running", output:
Last orchestration ended with status: {status}. No active run.
status is "running", proceed to Step 2.Extract the agent list from run.json.agents. For each agent {id}:
$EPIC_PROJECT_DIR/orchestrator/agents/{id}/status.json (mark unknown if missing)$EPIC_PROJECT_DIR/orchestrator/agents/{id}/stream.jsonl (show "no events yet" if missing)started_at set, completed_at not set: elapsed = now - started_atcompleted_at - started_atXm Ys or Xh Ymrun.json.dependenciesOutput a formatted dashboard (keep total under 30 lines):
## Orchestration Dashboard
- **Run ID**: {run.id}
- **Status**: {run.status}
- **Elapsed**: {total_elapsed since run.started_at}
- **Agents**: {count where status=running} / {total} active
| Agent | Role | Status | Elapsed | Last Event |
|-------|------|--------|---------|------------|
| {id} | {role} | {status} | {elapsed} | {summary of last event} |
### Dependency Graph
{render with ASCII arrows, e.g.:}
builder ──→ reviewer ──→ integrator
builder ──→ tester
### Recent Events (last 5 across all agents)
- [{timestamp}] {agent_id}: {event_summary}
### User Interventions
{read control.json; show directives if any, else "none"}
Dependency graph rendering rules:
run.json.dependencies (format: {"agent_a": ["agent_b", "agent_c"]})──→ arrowsEvent summary formatting:
stream.jsonl with fields: timestamp, type, messagemessage to at most 60 charactersgit diff --stat
If changes exist, append:
### File Changes
- {count} files modified ({insertions} insertions, {deletions} deletions)
- Key changes: {list up to 5 file paths}
Note: This mode is read-only — never modify orchestration state.
Write control directives that the orchestrate hook reads on the next agent tool call. Triggered when user runs /intervene.
$EPIC_PROJECT_DIR/orchestrator/run.jsonresume, continue whenever run.json exists, whatever its status (resume is the documented way out of a pause or cancel block, also on aborted and complete runs). If run.json is missing, output: "No orchestration run to resume." and stop. For every other action, if status != "running", output: "No active orchestration to intervene in."Invocation format:
intervene pause {agent_id} — pause a specific agent (blocks next tool call)intervene pause all — pause all agentsintervene cancel {agent_id} — cancel a specific agentintervene cancel all — cancel entire orchestrationintervene redirect {agent_id} {new_instruction} — change what an agent is doingintervene resume {agent_id}: resume a paused or cancelled agentintervene resume all: lift every pause and cancel, including a cancelled runIf the user provides no arguments, ask which action and target they want.
Validate the agent_id against the agent list in run.json (skip this for all). If not found, output: "Agent '{agent_id}' not found in active orchestration. Available agents: {list}" and stop.
Read current generation from $EPIC_PROJECT_DIR/orchestrator/control.json (or 0 if file doesn't exist). Increment by 1.
Write to $EPIC_PROJECT_DIR/orchestrator/control.json:
{
"action": "pause|cancel|redirect|resume",
"target": "agent_id or 'all'",
"message": "optional user message",
"generation": <current_generation + 1>
}
For redirect, the message field contains the new instruction.
For pause/cancel, the message field is optional — use an empty string if none provided.
For resume, set action to "resume" and target to the agent_id or "all".
Additional actions by type:
$EPIC_PROJECT_DIR/orchestrator/run.json status to "aborted" and set its updated_at to the current UTC time as YYYY-MM-DDThh:mm:ssZ (with the Z)$EPIC_PROJECT_DIR/orchestrator/run.json updated_at to the current UTC time as YYYY-MM-DDThh:mm:ssZ (with the Z), so the pause holds for 2 hours from now even when the run has been idle$EPIC_PROJECT_DIR/orchestrator/inbox/{agent_id}.jsonl as a new line: {"type": "redirect", "instruction": "{new_instruction}", "at": "{ISO-8601}"}updated_at to the current UTC time as YYYY-MM-DDThh:mm:ssZ (with the Z)Output confirmation:
Intervention recorded: {action} {target}
The {target} agent will respond on its next tool call.
Use /status to monitor.
For pause and cancel, also output: "New spawns stay blocked until /intervene resume {target} or 2 hours without run activity."
Notes:
cancel all only lasts until the next subagent start there.When agents need to communicate (via SendMessage or future inbox/outbox):
{
"from": "agent_id",
"to": "agent_id",
"type": "handoff|question|blocked|result",
"body": "message content",
"timestamp": "ISO-8601"
}
| Excuse | Rebuttal | What to do instead |
|---|---|---|
| "I'll just work independently" | Orchestration exists to prevent conflicts and duplication | Check dependencies first, report status |
| "Progress reporting slows me down" | The hook does it automatically on every tool call | No manual action needed |
| "I'll read all agents' state" | Only read your own inbox and dependencies | Respect isolation boundaries |
| "I'll intervene directly in agent files" | Direct file edits bypass the generation protocol | Always write to control.json |
| "I'll skip the status check" | Stale state leads to incorrect interventions | Always read run.json first |
What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/agent-introspectionLoop-breaking self-diagnosis. Use when 3+ consecutive failures occur, circular retries persist, or context overwhelms the session./auditAudit phase. Parallel review: code quality + security + tests + runtime behavior probe. Read-only evaluator agents. Semantic dedup of cross-mode findings. Outputs PASS/WARN/FAIL per dimension. Validates spec coverage./commitConventional Commits 1.0 generator. Stages relevant files, infers type(scope): description, never uses --no-verify./contextWorking-state snapshot guidance. Restates task/files/decisions in one block so state survives context compaction. Compaction timing is the host's job.npx claudepluginhub epicsagas/epic-harness --plugin epicOther plugins' skills for the same job