master-session
Skill9 starsChanged 21 days agoApache-2.0View on GitHub
Supervise multiple agent sessions on this machine. Roster, status, GO-board, GO-token protocol. Adopt or spawn workers.
In this repository275 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/packs/eventtech/AGENTS.mdAGENTS.md
- .agents/packs/hardware/AGENTS.mdAGENTS.md
- .agents/packs/media/AGENTS.mdAGENTS.md
- skills/global_config/postgres-best-practices/AGENTS.mdAGENTS.md
- skills/global_config/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- global-rulesCursor rule
- bdb-agentsCursor rule
- fabricCursor rule
- advisorSkill
- ao-orchestratorSkill
- bdb-eventagency-skillSkill
- bdbhtmlmanueldocsSkill
- bdbmediastormSkill
- bdb-shipping-skillSkill
- fabric-graphSkill
- fabric-loopSkill
- fabric-multigraphSkill
- fabricSkill
- fabric-swarmSkill
- fabric-teamworkSkill
- godmode-3d-creationSkill
- godmode-engineeringSkill
- godmode-eventtechSkill
- godmode-hardware-pcbSkill
- godmode-media-creationSkill
- godmode-shippingSkill
- godmode-ui-uxSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- skill-createSkill
- bdb-aosSkill
- bdbrainstormSkill
- codebase-memorySkill
- github-repoSkill
- agentic-harness-patternsSkill
- agent-manager-skillSkill
- agent-memory-mcpSkill
- agent-pipelineSkill
- agent-tool-builderSkill
- agenttrailSkill
- ai-agent-developmentSkill
- ai-productSkill
- aos-a2aSkill
- aos-gatewaySkill
- aos-project-initSkill
- aos-setupSkill
- aos-storeSkill
- aos-updateSkill
- api-design-principlesSkill
- apify-lead-generationSkill
- apify-ultimate-scraperSkill
- api-patternsSkill
- archifySkill
- architect-reviewSkill
- ask-timSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If AO is installed, ao-orchestrator may run the same workers.
- Very specific: line 40
Call ListAgents, keep local Claude sessions, drop yourself.
- Distinctive: line 76
Never re-subscribe to a session already idle.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/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.
- Claude:
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:
Status request from the master session (reply in at most 10 lines):
1. Task, repo and branch.
2. Progress: done / in progress / not started.
3. Blockers.
4. Actions waiting on a GO (commands you were blocked from running).
5. Running subagents.Step 3 — GO board
Collate replies into one block per session and show it to the human:
[<session>] <task> — <repo>@<branch>
progress : <one line>
blockers : <none | list>
GO needed: <exact command(s), or none>
subagents: <n running | none>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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

