supervisor-orchestrator
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 27 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Claude Code skill: one supervisor session that tracks parallel orchestrators on Orca, collects their open questions, routes your decisions back and flags duplicated or blocked work.
supervisar
A Claude Code skill to manage, from a single session (the supervisor), the orchestrators
working in parallel on one project. It runs on Orca. The skill text and its
prompts are in Spanish.
Orca is a desktop app that runs coding agents in git worktrees and exposes their orchestration
(runs, messages, inbox, workers) through a CLI; the skill is only instructions that tell Claude
which orca commands to run.
- What it does
- How it works
- Installation
- Usage
- Common problems
- Why it works better on Orca
- Porting it to Herdr
What it does
For every idea it is easy to end up with four or five orchestrator chats open, each with its own
tasks, questions and pending decisions. The supervisor:
- summarizes the state: which orchestrators are alive, which questions are still open, what is
duplicated or blocked; - collects the questions that need your decision and sends your answer back to the orchestrator;
- tells you whether a new idea belongs to an existing intent or needs a new one;
- proposes actions and asks for your OK: it never launches, closes or redirects anything on its
own.
You can answer from the supervisor or from the orchestrator's tab: either way, the decision
reaches the other side.
How it works
There are three levels. Workers (Codex, Antigravity or other agents) implement and review.
Each orchestrator owns an intent and splits the work among its workers. The supervisor
coordinates the orchestrators of one project, which is a repo with all its worktrees.
The supervisor and the orchestrators are always Claude Code (tested with Opus in real use and
Haiku in the scenario tests). Workers and reviews were tested with Codex and Antigravity; other
CLIs (Cline, etc.) were not tested.
flowchart TB
U([You])
subgraph P["Project: one repo and its worktrees"]
S["Supervisor<br/>run:sup"]
OA["Orchestrator A<br/>run:orqA · intent/a"]
OB["Orchestrator B<br/>run:orqB · intent/b"]
WA1["Worker"]
WA2["Worker"]
WB1["Worker"]
I[("intent/<br/>ai-native-sdlc")]
end
U <-->|summary, questions, OK| S
U <-.->|you can also answer here| OA
OA -->|alta · pregunta · decisión · cierre| S
OB -->|alta · pregunta · decisión · cierre| S
S -->|reply| OA
OA -->|worker-start| WA1 & WA2
WA1 & WA2 -->|worker_done| OA
OB -->|worker-start| WB1
WB1 -->|worker_done| OB
S -.->|reads| I
OA & OB -.->|read| I
Arrows between agents are Orca messages or commands addressed to a run (run:<id>). The rules
that keep it light:
- Four messages, no progress reports. An orchestrator sends the supervisor only
alta
(sign-on) when it starts,pregunta(question) when it needs your decision,decisión
(decision) when you answered in its tab, andcierre(close) when it finishes. The supervisor
reads progress from Orca andintent/when it needs it, so its context fills up more slowly. - One supervisor per project. Its address lives in
.git/supervisar/run. Every worktree of
the repo shares that.git, and git does not track it. An orchestrator that starts in the repo
finds the supervisor on its own; in a repo without one, it works as usual. - One run per orchestrator. Its workers and reviews run inside that run, and a handoff carries
the whole run. - Done means tested. With a supervisor, each step of the accepted plan is an Orca task that
counts only once the orchestrator accepts its result, andcierresaysterminadoonly after a
fresh worker's final test passes on the integrated commit. The summary shows accepted and
blocked steps, and marks a closure "sin verificar" (unverified) when the run lacks that test. - No private notes. The supervisor rebuilds everything from Orca and
intent/. - Own branch per intent. With a supervisor, each orchestrator works on
feat/<slug>. The
supervisor opens approved orchestrators there, and an orchestrator started on the main worktree
asks before moving. - Push on questions and closures. For each
pregunta:orcierre:, the supervisor sends a
one-line push notification withorq-<slug>and the question or outcome. - Clean exit. An orchestrator removes a worker's own merged worktree when it accepts the
delivery; when it finishes, it stops any live workers, offers to remove the remaining merged
worktrees, and asks before closing its own tab. The summary lists leftover tabs and worktrees
under "Para cerrar"; one OK runs the batch after rechecking each tab, and any tab with a new or
unreadable alert stays open and asks for another OK. - Side-agent alerts are surfaced across summary, close and handoff. The "✦ Heads up" alerts of
Claude Code's "You should know" mod live only on screen and are cleared by any new turn. The
summary shows those visible in orchestrator tabs, read throughscripts/avisos, which passes
nothing else from the screen. Each tab is rechecked right before it closes (asking for another
OK if a new alert appeared), and a handoff reminds you to check them and carries the alerts you
discussed.
Two skills complete the scheme:
- handoff-clear does the handoffs. It opens the new tab
with the line "Supervisor: run<id>" and the session name (sup-<repo>ororq-<slug>) for
Remote Control, closes the old one once the new one has taken the run, and measures context.
Supervisar proposes a handoff at 30 % (supervisor) or 40 % (orchestrator); an orchestrator sends
that proposal as apregunta:with profile options first. - ai-native-sdlc defines
intent/, the durable state
of each project. The supervisor reads it for the summary and to classify new ideas.
Installation
Requirements: Claude Code, Orca, handoff-clear
installed at ~/.claude/skills/handoff-clear (supervisar uses its contexto script), and
projects in git repos. ai-native-sdlc is
recommended.
git clone https://github.com/Ranteck/supervisor-orchestrator.git ~/Proyectos/skills/supervisar
ln -s ~/Proyectos/skills/supervisar/skills/supervisar ~/.claude/skills/supervisar
To check it, the skill list of a new Claude Code session must show supervisar.
Usage
In an Orca tab inside the project, open Claude Code and type:
Sos el supervisor; cargá `supervisar`.The supervisor creates its run, saves it in
.git/supervisar/run, renames its tab tosup-<repo>(and gives/rename sup-<repo>in its first reply for Remote Control, while
handoffs start with that session name), and waits for messages.Ask the supervisor to open an approved orchestrator on
feat/<slug>, or open one as usual:Sos el orquestador del intent intent/<slug>/intent.md.Each one loads the skill, finds the supervisor, sends its
alta, renames its tab toorq-<slug>(starting with that Remote Control session name when opened by the supervisor or a
handoff, or giving/rename orq-<slug>if started by hand), and asks to move tofeat/<slug>
if it started on the main worktree.When an orchestrator needs a decision, the question shows up in the supervisor and in its tab.
Answer on either side.Ask the supervisor for "resumen" (summary) to see the state of the project.
Common problems
| Symptom | Cause | What to do |
|---|---|---|
An orchestrator does not send its alta |
It started with the "Trust this folder?" dialog of a new folder and did not load the skill | Trust the folder before launching it, or start it with "Supervisor: run <id>" in the prompt |
| The supervisor asks whether to replace another one | .git/supervisar/terminal names a tab that is still open |
If it is an old supervisor, accept; otherwise cancel and use the open one |
| The orchestrator says it continues without a supervisor | The saved run no longer exists (run_not_found), for example after resetting Orca |
Open a new supervisor: it creates another run and rewrites the file |
Why it works better on Orca
Orca's orchestration (tested with 1.4.257) already provides what the scheme needs, without a
custom event bus:
- A run is a stable address, not a tab. Any session can take it with
orca orchestration run-use, and messages torun:<id>reach whoever coordinates it at that
moment. - Messages wake up their recipient. Orca notifies inside the Claude Code session ("You have 1
orchestration message"), so nobody polls: your answer wakes the orchestrator, and a question
wakes the supervisor. - The inbox persists. Messages reach the recipient's Claude Code session even mid-turn, and
they stay in the run's inbox, so a new session that takes the run can reread them withorca orchestration inbox. Replies (reply) stay in the orchestrator's run. - Workers report to the run, not to the tab.
worker-startlaunches the worker and itsworker_donegoes back to the orchestrator's run. - Each message carries the tab that sent it. With
orca terminal listthe supervisor knows
whether an orchestrator's tab is still open.orca worktree ps(sessions in the worktrees Orca
knows about) andorca search(full-text search over agent sessions) fill in the rest.
The handoff is where this shows most: the new tab takes the run and receives whatever was pending,
even while a worker is still running.
sequenceDiagram
participant V as Old tab
participant R as run:orqA
participant N as New tab
participant W as Worker
V->>W: worker-start
V->>N: handoff-clear opens the tab with the prompt
N->>R: run-use
Note over V: run-current returns none, the tab closes
W->>R: worker_done
R-->>N: Orca wakes it up
Porting it to Herdr
Herdr also organizes agents in tabs and panes. The table compares what the
scheme uses from Orca with what the Herdr 0.9.5 CLI exposes (herdr --help, herdr agent,herdr notification). It was not tested on Herdr: it lists what would have to be built on top.
| The scheme needs | On Orca | On Herdr today | What would have to be added |
|---|---|---|---|
| An address that survives a handoff | run:<id>, taken with run-use |
Agents by name or pane id; the name is cleared when the agent exits | A registry of each role's name (for example in .git/supervisar/), handed to the new tab with herdr agent rename |
| Messages that wait | One inbox per run | agent prompt types into the pane and rejects a blocked agent; there is no queue |
One mailbox per recipient, for example files in .git/supervisar/inbox/ |
| Wake-up without polling | Notice inside the session | agent prompt wakes an idle agent |
A process that delivers the mailbox when the recipient turns idle (herdr agent wait --until idle) |
| Threaded replies | reply --id <msg> |
None | A message id and a reply-to recipient in the mailbox |
| Workers reporting to the orchestrator | worker-start and worker_done |
agent start and agent prompt --wait, which block the caller |
Workers write their result to the orchestrator's mailbox |
| Knowing whether an orchestrator is alive | Sender tab in terminal list |
agent list and agent get report idle, working, blocked or done |
Nothing: here Herdr gives more information than Orca |
| Seeing whether you answered in a tab | orca search |
agent read on each pane |
Read the panes or the Claude Code transcripts |
herdr notification show displays a desktop notification for you, not a message for another
agent.
License
MIT
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found