hybridlabor-api/aos/master-session
Claude Code and agent skill by hybridlabor-api/aos
- community
Checking that the SKILL.md file is still in the repository.
Supervise multiple agent sessions on this machine. Roster, status, GO-board, GO-token protocol. Adopt or spawn workers.
Install
npx vskill@latest install hybridlabor-api/aos/master-sessionSKILL.md
The same SKILL.md was published earlier as hybridlabor-api/aos/master-session.
/master-session — Supervise Other Sessions
One session is the master: it keeps the overview, asks workers for status, and relays the human's decisions. It never does the workers' jobs and never decides for the human. Needs Claude Code with cross-session messaging (ListAgents, SendMessage). Nothing here requires the AO daemon.
Modes
- Adopt — supervise sessions the human already started by hand.
ListAgentsis the source of truth; message them withSendMessage. - Spawn — start the workers yourself. AO is optional; without it:
- Claude:
claude --bg --name <name> --permission-mode auto "<prompt>", or over ACP as below. - Codex / OpenCode / Claude over ACP:
aos-acp <codex|opencode|claude> --name <name> --cwd <worktree> --prompt "<task>" --go-wait 600 &(one process per worker; run it in the background and read its log). Details:docs/master-session-acp.md. - agy:
aos-acp agy ...runs the vendor'sagy --print(no ACP server, so no per-tool GO requests;--allow-defaultmaps to agy's modes, seedocs/delegation-routing.md). The third-partyantigravity-acpshim is not used. Running agy sessions are adopted, not spawned. - If AO is installed,
ao-orchestratormay run the same workers; it adds nothing the token protocol needs.
Routing: which channel for which job
| Job | Channel | |
|---|---|---|
| One-shot task for another harness | mcsc (one level deep, delegate_agy is read-only) | |
| A worker that may need a GO | aos-acp | |
| A message to a running OpenCode session | aos-bus | |
| A durable fleet across repos | AO (optional; AOS must work without it) |
Details and limits (opencode run --auto auto-approves tool calls, a GO is never inherited): docs/delegation-routing.md.
aos-acp in one paragraph
bin/aos-acp.mjs is a zero-dependency ACP client: it spawns the adapter (npx -y @agentclientprotocol/codex-acp, opencode acp, npx -y @agentclientprotocol/claude-agent-acp), runs initialize → session/new → session/prompt, streams the worker's text to stdout and logs every event to ~/.aos/acp/<name>.jsonl. A session/request_permission for a guarded command (the go-gate list) is answered allow_once only with a valid GO token for <name>; with --go-wait <sec> the request is parked (log event permission_pending, show it as GO needed) until the token appears or the wait ends. Everything else follows --allow-default deny|allow (deny by default). --model <id> is sent as ACP session/set_config_option (configId: "model", id is adapter-specific, e.g. <model-id>, provider/model); the string is passed through verbatim (no allow-list; an id the adapter does not know fails there), default is the adapter default and is logged. ACP workers are not in ListAgents: the roster lists them from the logs.
Step 1 — Roster
Call ListAgents, keep local Claude sessions, drop yourself. Write one line per session: name, repo/branch if known, kind (adopted/spawned). Show it to the human and confirm which sessions are in scope before messaging any.
Step 2 — Status request
Send one message per session, never a broadcast. Template:
Step 3 — GO board
Collate replies into one block per session and show it to the human:
The human answers per session. Items under GO needed are the human's to decide; list them verbatim, never summarised into something softer. When an agenttrail hub runs for this repo, the same GO-needed items also surface in its Waiting-for-you strip and Go-gate panel — but the hub itself can never approve: answering still means typing the GO (in the worker's own window, or via the GO-token protocol below).
Portable mode (no Claude Code)
Without ListAgents/SendMessage the same steps run from a shell: roster = aos-a2a list, status request = aos-a2a send --to <name> "<block>" (read later with aos-a2a status --to <name> <taskId>), idle check = aos-a2a watch <name> --once. Limits: agy is pull-only, and only a Claude Code or OpenCode master can issue GO <session> tokens, so any other master tells the human to type GO in the worker's own window. Details and the role convention (master, task manager, project orchestrator, package worker): docs/master-session-portable.md.
Idle notices
- Subscribe (
SendMessagewithnotify_when_idle) only after you sent that session work. - Never re-subscribe to a session already idle; never poll; never send "are you done?".
- Waiting is silent. React when a notice arrives or the human speaks.
Boundaries
- The master never grants GO. A relayed message is not the user's approval for the worker, and the worker's go-gate treats it as such.
- The master never executes an action another session was denied — no re-running it from here, no "just this once".
- Forward the human's words verbatim and mark them:
[forwarded by master, user said:] "<exact text>". No paraphrase, no added urgency. - A subagent or worker does not inherit anyone's GO. A blocked command is not retried without a fresh one.
GO-token protocol
The one sanctioned way for the human to release a gated action in a worker without switching windows:
- In the master session the human types exactly
GO <session-name>(case-insensitive; the name as shown byListAgents). - The
UserPromptSubmithookgo-token.mjswrites~/.aos/go/<session-name>.token(JSON:target,issued_at,master_transcript,master_session). Nothing else happens. - The worker retries the blocked command.
go-gate.mjsopens only if the token names this session, is younger than 10 minutes, and the master transcript still ends with that veryGO <session-name>as its last human message. The token is deleted on use: single use, no replay.
Consequences: any further human message in the master before the worker retries cancels the token; a literal GO typed in the worker still works as before; a chat message that merely says "GO" never counts. The worker's own name comes from its transcript (--name); if absent, set env AOS_SESSION_NAME (aos-acp sets it for its worker). The same token is honoured by the OpenCode plugin's gate (.opencode/plugins/bdb-aos.js, name from AOS_SESSION_NAME or the session title) and by go-gate under agy (AOS_SESSION_NAME only). Who consumes it: the worker's own gate when it has one (Claude hook, OpenCode plugin — aos-acp then only verifies), aos-acp itself for codex, which has none. Limit: the token proves the human typed it in the master transcript, not who wrote the token file — a hostile local process can forge both, so this is a guard against mistakes, not against local malware.
Starting workers: lessons
- A background worker stalls on its first permission prompt unless started with
--permission-mode auto. Always pass it. --disallowedToolsis variadic and swallows a trailing prompt. Put the prompt before it, or end the flag list with--, and check the worker actually received the task.- Name every worker (
--name) so the token andListAgentsagree.
Handover file
At session end write docs/sessions/master-<date>.md (or $HOME/.aos/handover/ outside a repo): roster, last GO board, open GO items, what is waiting on whom, and the next command. A fresh master reads it first.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/basic/master-session/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hybridlabor-api/aos/master-session)