[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6FX778N1047QAJ39Y582H":3,"skill-same:01M6C6FX778N1047QAJ39Y582H":125},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":57,"linkOnly":58,"markdownContent":59,"markdownBody":60,"frontMatter":61,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":16,"ownerHtmlUrl":67,"ownerBlogUrl":68,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M6C6FX778N1047QAJ39Y582H","agent-orchestrator","外部 CLI 代理编排","Orchestrate external CLI agents (kimi, codex, agy, claude, grok, gizzi) through the Allternit Factory (gizzi agents \u002F orchestration \u002F workspace \u002F workflows). Use when the user asks to delegate, offload, or farm out implementation work to another CLI agent \u002F terminal session, or to run work outside this session to save tokens. Part of Allternit Agents \u002F Bot Agents — not a separate product.","通过 Allternit Factory（gizzi agents \u002F orchestration \u002F workspace \u002F workflows）编排外部 CLI 代理（kimi、codex、agy、claude、grok、gizzi）。当用户要求将实现工作委派、转移或分派给其他 CLI 代理\u002F终端会话，或在本会话之外运行工作以节省 token 时使用。属于 Allternit Agents \u002F Bot Agents 的一部分——并非独立产品。","Allternit\u002Fallternit-platform","Allternit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250397232?v=4","01M6C67T2SPVP033M7REAAHYHX","01M6C67T7CXM1DKVQY8DFAFRB2",1,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56],"agent orchestrator","orchestrator","factory","when","terminal session","farm","cli agents","tokens","offload","implementation","kimi","grok","use","session","bot","delegate","work","workspace","save","orchestrate","product","run","workflows","orchestration","codex","terminal","cli","2026-11-10 10:12:30",false,"---\nname: agent-orchestrator\ndescription: Orchestrate external CLI agents (kimi, codex, agy, claude, grok, gizzi) through the Allternit Factory (gizzi agents \u002F orchestration \u002F workspace \u002F workflows). Use when the user asks to delegate, offload, or farm out implementation work to another CLI agent \u002F terminal session, or to run work outside this session to save tokens. Part of Allternit Agents \u002F Bot Agents — not a separate product.\n---\n\n# CLI Agent Orchestrator (v4 — Allternit Factory)\n\nYou are the **orchestrator**: you own scoping, task specs, monitoring, review, and bug-fixing. The **executor** is an external CLI agent running as a **Terminal bot** in an Allternit Factory pane. You never do the bulk implementation yourself — but you always verify it.\n\nThe Factory is what Gizzi and Allternit Desktop both run. People and agents type `gizzi \u003Cpart> \u003Cverb>`. The engine underneath (`allternit-factory`) is never typed. Brain page: `Allternit Brain\u002FProducts\u002FFactory.md`. Dev docs: `allternit\u002Fsurfaces\u002Fdocs\u002Ffactory\u002F` (commands, determinism, migration). The older orchestration tools are merged into it, and their names are removed, not aliased.\n\n**Contract you can rely on** (every `gizzi` Factory verb):\n- `--json` prints one JSON document and nothing else. Mutations take `--dry-run` and print exactly what would change.\n- Exit codes: `0` ok · `1` refused by the Gate · `2` not found (also \"`\u003Cpart> \u003Cverb>` is not built yet\") · `3` transport broken or engine missing · `4` timeout · `5` needs a person · `64` usage · `70` internal.\n- On error with `--json`: `{\"error\":{\"code\",\"fact\",\"action\"}}`. Read `fact` and `action` and act on them. Never guess past a refusal.\n\n## Old names\n\nThe `ao-*` scripts and `allternit-rails` are gone (removed 2026-10-06, after the `gizzi` commands passed the end-to-end check on gizzi-code 2.2.1). If a note or task file still names one, use the Factory command:\n\n| Old | Factory |\n|---|---|\n| `ao-doctor` | `gizzi doctor`, `gizzi agents doctor`, `gizzi agents harness list` |\n| `ao-spawn [--worktree] \u003Cslug> \u003Crepo> \"\u003Ccmd>\"` | `git worktree add` + team file + `gizzi agents up \u003Cteam> --workdir \u003Cwt>` |\n| `ao-send \u003Cslug> \"…\"` | `gizzi orchestration send \u003Cbot@team> \"…\" [--queue]` |\n| `ao-watch \u003Cslug> \u003Csentinel>` | sentinel loop over `gizzi orchestration capture` + `gizzi agents ps --json` (Phase 4) |\n| `ao-status [slug] [lines]` | `gizzi agents ps`, `gizzi orchestration capture \u003Cbot@team> [lines]` |\n| `ao-kill \u003Cslug> [--rm-worktree]` | `gizzi agents down \u003Cteam> [--rm-worktree]` |\n| `ao recover` | `gizzi agents recover [--apply]` |\n| `ao drain` | `gizzi orchestration drain \u003Cbot@team> [--all]` |\n| `allternit-rails plan new` \u002F `wih pickup` | `gizzi workspace plan new` \u002F `gizzi workspace node claim` |\n| `allternit-rails peer list` \u002F `peer send` | `gizzi agents ps` \u002F `gizzi orchestration send` |\n| `~\u002F.agent-orchestrator\u002Fstate.json` | `~\u002F.allternit\u002Ffactory\u002Fregistry.json` (migrated once by the engine) |\n\nIf a `gizzi` Factory verb exits `3` (engine missing), install it: it ships with Allternit Desktop and `brew install allternit\u002Ftap\u002Fgizzi-code`, or set `$ALLTERNIT_FACTORY_BIN` to a dev build. There is no script fallback.\n\n## Gate 0 — Enter the DAG first\n\nOrchestrated work is multi-step and cross-session by definition (DAG-as-default rule). Before spawning anything, at the workspace root:\n\n```bash\ngizzi workspace plan new \"\u003Cscope>\" --dry-run   # check, then run without --dry-run\ngizzi workspace node add …                      # one node per phase, if the plan didn't make them\ngizzi workspace node claim \u003Cnode>               # the WIH pickup for the phase you're delegating\n```\n\nThe executor works against that `dag` \u002F node id. Handoffs, steering and sends reference it (`gizzi orchestration send … ` with the node in the task file). Skip only for provably ≤2-step work.\n\n## Phase 0 — Detect agents\n\n```bash\ngizzi doctor                  # Gizzi, the engine, harnesses, transport, install\ngizzi agents doctor           # panes, harnesses and the registry against reality\ngizzi agents harness list     # which harnesses the engine can drive here\n```\n\nExit `0` = usable. Exit `3` = the engine is missing or its transport is broken (follow the printed action). Trust these per-harness verdicts over any static table.\n\n## Phase 1 — Scope and plan (you, in this session)\n\nDo the analysis yourself, then write inside the executor's workdir:\n\n- `docs\u002F\u003CTOPIC>_MAP.md` — the full gap analysis.\n- `docs\u002F\u003CTOPIC>_PHASE_\u003CN>_TASK.md` — one phase only, with constraints, file paths, and a deliverable sentinel\u002Fnotes file.\n\nExecutors can't read outside their workspace, so inline what they need (`Allternit Brain\u002Fdelegation-runbook.md`).\n\n## Phase 2 — Spawn\n\nA spawned executor is a Terminal bot on a team. For a one-off delegation, a team of one is fine.\n\n```bash\n# 1. Worktree (refuse if the git root is $HOME)\ngit -C \u003Crepo> worktree add ..\u002F\u003Crepo-name>-\u003Cslug> -b factory\u002F\u003Cslug>\n\n# 2. Team file at the workspace root: .allternit\u002Fteams\u002F\u003Cteam>\u002Fteam.yaml\ncat > .allternit\u002Fteams\u002F\u003Cteam>\u002Fteam.yaml \u003C\u003C'YAML'\nname: \u003Cteam>\nbots:\n  - { bot: \u003Cslug>, role: build, binding: terminal, harness: claude }   # or codex \u002F kimi \u002F grok \u002F agy \u002F gizzi\nYAML\n\n# 3. Plan, then apply\ngizzi agents up \u003Cteam> --workdir ..\u002F\u003Crepo-name>-\u003Cslug> --dry-run --json   # TeamPlanStep[]: spawn \u002F bind \u002F skip \u002F stop\ngizzi agents up \u003Cteam> --workdir ..\u002F\u003Crepo-name>-\u003Cslug>\ngizzi agents ps --json                                                     # the bot, its pane, state\n```\n\nThe address is `\u003Cslug>@\u003Cteam>`. The pane exports `ALLTERNIT_FACTORY_BOT`, `ALLTERNIT_FACTORY_TEAM`, `ALLTERNIT_FACTORY_PANE_ID` (and `ALLTERNIT_FACTORY_BOT_ID` once bound), so the executor knows who it is (`gizzi agents whoami`). The engine delivers the bot's persona as guidance, its context pack and skills, the Allternit connector and the Gate hook at spawn. Add `model:` or `--preset` per `team.yaml` when the task needs a specific model.\n\nA spawn the Gate refuses exits `1` and says why. Fix the cause. Don't retry blindly.\n\n## Phase 3 — Send prompts\n\n```bash\ngizzi orchestration send \u003Cslug>@\u003Cteam> \"Read docs\u002F\u003CTASK_FILE> and execute it exactly.\" --json\n```\n\nRead the delivery in the reply:\n- `via: pane`, `state: verified` — it landed.\n- `via: pane_queue`, `state: queued` — the pane was busy or the paste couldn't be verified, so it's in the bot's mailbox. `detail` says why. Deliver it once the pane is idle with `gizzi orchestration drain \u003Cslug>@\u003Cteam>`.\n- `failed` — nothing landed. Read `detail` and fix it.\n\nUse `--queue` to queue on purpose. Use `--dry-run` to see the records a send would write. A repeated idempotency key returns the first delivery instead of sending twice. Every send is recorded in mail and as a `factory.delivery` ledger event (`gizzi orchestration mail list`, `GET \u002Fapi\u002Ffactory\u002Fdeliveries?agent=`).\n\n## Phase 4 — Monitor and steer\n\nCompletion is the **sentinel file's existence only**, never TUI activity (kimi shows no spinner). Watch in the foreground, bounded:\n\n```bash\ndeadline=$(( $(date +%s) + 3600 ))\nwhile [ ! -f \u003Cworkdir>\u002Fdocs\u002F\u003CNOTES>.sentinel ]; do\n  state=$(gizzi agents ps --json | jq -r '.agents[] | select(.address==\"\u003Cslug>@\u003Cteam>\") | .state')\n  case \"$state\" in offline|failed) echo \"PANE-DEAD\"; break;; esac        # was exit 3\n  [ \"$(date +%s)\" -ge \"$deadline\" ] && { echo \"TIMEOUT\"; break; }       # was exit 4\n  sleep 20\ndone\n```\n\n- Progress: `gizzi orchestration capture \u003Cslug>@\u003Cteam> 40`. Full log: `gizzi orchestration transcript \u003Cslug>@\u003Cteam>`.\n- `needs_you` state, or `gizzi orchestration attention list`, means the executor is waiting on a person or an approval.\n- To steer or answer questions, `gizzi orchestration send` into the same bot.\n- A person can watch live with `gizzi agents wall [team]` or `gizzi agents attach \u003Cslug>@\u003Cteam>` (interactive, so don't run it yourself).\n- For work that's already a DAG from a template, `gizzi workflows drive \u003Cdag> --once --dry-run`, then `--once`, drives READY nodes through the Gate instead of hand-sending.\n\n## Phase 5 — Review the work\n\nVerify the true footprint (`git -C \u003Cworktree> diff --stat`), scope, claims, and a cheap syntax gate. Never accept the notes file at face value. Fix small bugs yourself. Send bad implementations back with `gizzi orchestration send`. Proof for DAG work lives in the node: `gizzi workspace proof show`, `gizzi workspace judge show`.\n\n## Phase 6 — Iterate and clean up\n\nWhen all phases pass: merge\u002Fapply the worktree branch, close the node (`gizzi workspace node close \u003Cnode>`), then\n\n```bash\ngizzi agents down \u003Cteam> --dry-run\ngizzi agents down \u003Cteam> --rm-worktree     # keeps the branch\n```\n\nIf a session died mid-run: `gizzi agents recover` (dry run by default) shows a respawn plan with the harness's resume argv. `--apply` respawns.\n\n## Cross-session messaging\n\n```bash\ngizzi agents ps                                  # every bot of every binding: state, node, proof\ngizzi orchestration send \u003Cbot@team> \"\u003Cmessage>\"  # Terminal, Hosted or Vendor bot; the engine picks the delivery\ngizzi orchestration mail list | read \u003Cthread>    # the recorded threads\ngizzi orchestration feed --json                  # ledger events\n```\n\nFrom gizzi-code, the runtime's `allternit_list_agents` and `allternit_send_message` tools reach the same bots. Local pane sends never leave the machine.\n\n## Platform integration\n\nDesktop, ai.allternit.com and the phone read the same engine through allternit-api's `\u002Fapi\u002Ffactory` proxy: agents, capture, transcript, send, deliveries, the `\u002Fapi\u002Ffactory\u002Fevents` SSE stream, templates, runs, campaigns, nodes, and approvals (owned by allternit-api). A delegated executor shows up in Code mode's terminal wall and on the team strip as a Terminal bot.\n\n## Dispatch semantics\n\n- **One registry:** `~\u002F.allternit\u002Ffactory\u002Fregistry.json` (`$ALLTERNIT_FACTORY_HOME` moves it), migrated once from the old orchestrator registry. It's reconciled against live panes at engine start and on every `gizzi agents ps`: a gone pane reads `offline`, never running. Panes a person opened with an agent in them are adopted into the registry too.\n- **Queue, never drop:** a send to a busy or unverifiable pane goes to the bot's mailbox (`pane_queue` \u002F `queued`). `gizzi orchestration drain \u003Cbot@team> [--all]` delivers it, oldest first, through the same verified paste; a message is settled only once its delivery is verified.\n- **No silent fallback:** without the pane engine every spawn and send fails with exit `3`. There's no tmux path.\n- **Spawn logs** for engine spawns are in `~\u002F.allternit\u002Ffactory\u002Flogs\u002F`.\n\n## Pitfalls learned the hard way\n\n- kimi `-p` refuses `--yolo`\u002F`--auto` — run kimi as an interactive Terminal bot and send to it.\n- C-c kills a kimi TUI outright. The verified send clears with C-u on a mismatch, so don't paste by hand.\n- Busy-indicator polling gives false idles on kimi — sentinel files only.\n- Use worktrees to attribute changes when multiple agents share a repo. Never attribute working-tree changes to your executor without a worktree or mtime evidence.\n- Scope each phase so its review fits in a few file reads. A 2,000-line unreviewed diff is not \"done\".\n- macOS screen-recording filenames contain U+202F — use globs for user-provided recordings.\n- Don't drive Terminal.app with AppleScript (focus races injected prompts into the wrong window). If the user wants a visible window, have them run `gizzi agents attach \u003Cbot@team>` or `gizzi agents wall`.\n- A `best_effort` delivery (vendor or channel) is not proof the bot read it.\n\n## Provenance\n\nPatterns adopted from: awslabs\u002Fcli-agent-orchestrator (named sessions, status semantics, attach-to-observe), kingbootoshi\u002Fcodex-orchestrator (persistent transcript logs, completion notification chaining), primeline-ai\u002Fclaude-tmux-orchestration (verify-idle-before-send handshake), claude-squad\u002FCrystal (worktree-per-agent isolation). The pane engine is a fork of herdr (Apache-2.0).\n","# CLI Agent Orchestrator (v4 — Allternit Factory)\n\nYou are the **orchestrator**: you own scoping, task specs, monitoring, review, and bug-fixing. The **executor** is an external CLI agent running as a **Terminal bot** in an Allternit Factory pane. You never do the bulk implementation yourself — but you always verify it.\n\nThe Factory is what Gizzi and Allternit Desktop both run. People and agents type `gizzi \u003Cpart> \u003Cverb>`. The engine underneath (`allternit-factory`) is never typed. Brain page: `Allternit Brain\u002FProducts\u002FFactory.md`. Dev docs: `allternit\u002Fsurfaces\u002Fdocs\u002Ffactory\u002F` (commands, determinism, migration). The older orchestration tools are merged into it, and their names are removed, not aliased.\n\n**Contract you can rely on** (every `gizzi` Factory verb):\n- `--json` prints one JSON document and nothing else. Mutations take `--dry-run` and print exactly what would change.\n- Exit codes: `0` ok · `1` refused by the Gate · `2` not found (also \"`\u003Cpart> \u003Cverb>` is not built yet\") · `3` transport broken or engine missing · `4` timeout · `5` needs a person · `64` usage · `70` internal.\n- On error with `--json`: `{\"error\":{\"code\",\"fact\",\"action\"}}`. Read `fact` and `action` and act on them. Never guess past a refusal.\n\n## Old names\n\nThe `ao-*` scripts and `allternit-rails` are gone (removed 2026-10-06, after the `gizzi` commands passed the end-to-end check on gizzi-code 2.2.1). If a note or task file still names one, use the Factory command:\n\n| Old | Factory |\n|---|---|\n| `ao-doctor` | `gizzi doctor`, `gizzi agents doctor`, `gizzi agents harness list` |\n| `ao-spawn [--worktree] \u003Cslug> \u003Crepo> \"\u003Ccmd>\"` | `git worktree add` + team file + `gizzi agents up \u003Cteam> --workdir \u003Cwt>` |\n| `ao-send \u003Cslug> \"…\"` | `gizzi orchestration send \u003Cbot@team> \"…\" [--queue]` |\n| `ao-watch \u003Cslug> \u003Csentinel>` | sentinel loop over `gizzi orchestration capture` + `gizzi agents ps --json` (Phase 4) |\n| `ao-status [slug] [lines]` | `gizzi agents ps`, `gizzi orchestration capture \u003Cbot@team> [lines]` |\n| `ao-kill \u003Cslug> [--rm-worktree]` | `gizzi agents down \u003Cteam> [--rm-worktree]` |\n| `ao recover` | `gizzi agents recover [--apply]` |\n| `ao drain` | `gizzi orchestration drain \u003Cbot@team> [--all]` |\n| `allternit-rails plan new` \u002F `wih pickup` | `gizzi workspace plan new` \u002F `gizzi workspace node claim` |\n| `allternit-rails peer list` \u002F `peer send` | `gizzi agents ps` \u002F `gizzi orchestration send` |\n| `~\u002F.agent-orchestrator\u002Fstate.json` | `~\u002F.allternit\u002Ffactory\u002Fregistry.json` (migrated once by the engine) |\n\nIf a `gizzi` Factory verb exits `3` (engine missing), install it: it ships with Allternit Desktop and `brew install allternit\u002Ftap\u002Fgizzi-code`, or set `$ALLTERNIT_FACTORY_BIN` to a dev build. There is no script fallback.\n\n## Gate 0 — Enter the DAG first\n\nOrchestrated work is multi-step and cross-session by definition (DAG-as-default rule). Before spawning anything, at the workspace root:\n\n```bash\ngizzi workspace plan new \"\u003Cscope>\" --dry-run   # check, then run without --dry-run\ngizzi workspace node add …                      # one node per phase, if the plan didn't make them\ngizzi workspace node claim \u003Cnode>               # the WIH pickup for the phase you're delegating\n```\n\nThe executor works against that `dag` \u002F node id. Handoffs, steering and sends reference it (`gizzi orchestration send … ` with the node in the task file). Skip only for provably ≤2-step work.\n\n## Phase 0 — Detect agents\n\n```bash\ngizzi doctor                  # Gizzi, the engine, harnesses, transport, install\ngizzi agents doctor           # panes, harnesses and the registry against reality\ngizzi agents harness list     # which harnesses the engine can drive here\n```\n\nExit `0` = usable. Exit `3` = the engine is missing or its transport is broken (follow the printed action). Trust these per-harness verdicts over any static table.\n\n## Phase 1 — Scope and plan (you, in this session)\n\nDo the analysis yourself, then write inside the executor's workdir:\n\n- `docs\u002F\u003CTOPIC>_MAP.md` — the full gap analysis.\n- `docs\u002F\u003CTOPIC>_PHASE_\u003CN>_TASK.md` — one phase only, with constraints, file paths, and a deliverable sentinel\u002Fnotes file.\n\nExecutors can't read outside their workspace, so inline what they need (`Allternit Brain\u002Fdelegation-runbook.md`).\n\n## Phase 2 — Spawn\n\nA spawned executor is a Terminal bot on a team. For a one-off delegation, a team of one is fine.\n\n```bash\n# 1. Worktree (refuse if the git root is $HOME)\ngit -C \u003Crepo> worktree add ..\u002F\u003Crepo-name>-\u003Cslug> -b factory\u002F\u003Cslug>\n\n# 2. Team file at the workspace root: .allternit\u002Fteams\u002F\u003Cteam>\u002Fteam.yaml\ncat > .allternit\u002Fteams\u002F\u003Cteam>\u002Fteam.yaml \u003C\u003C'YAML'\nname: \u003Cteam>\nbots:\n  - { bot: \u003Cslug>, role: build, binding: terminal, harness: claude }   # or codex \u002F kimi \u002F grok \u002F agy \u002F gizzi\nYAML\n\n# 3. Plan, then apply\ngizzi agents up \u003Cteam> --workdir ..\u002F\u003Crepo-name>-\u003Cslug> --dry-run --json   # TeamPlanStep[]: spawn \u002F bind \u002F skip \u002F stop\ngizzi agents up \u003Cteam> --workdir ..\u002F\u003Crepo-name>-\u003Cslug>\ngizzi agents ps --json                                                     # the bot, its pane, state\n```\n\nThe address is `\u003Cslug>@\u003Cteam>`. The pane exports `ALLTERNIT_FACTORY_BOT`, `ALLTERNIT_FACTORY_TEAM`, `ALLTERNIT_FACTORY_PANE_ID` (and `ALLTERNIT_FACTORY_BOT_ID` once bound), so the executor knows who it is (`gizzi agents whoami`). The engine delivers the bot's persona as guidance, its context pack and skills, the Allternit connector and the Gate hook at spawn. Add `model:` or `--preset` per `team.yaml` when the task needs a specific model.\n\nA spawn the Gate refuses exits `1` and says why. Fix the cause. Don't retry blindly.\n\n## Phase 3 — Send prompts\n\n```bash\ngizzi orchestration send \u003Cslug>@\u003Cteam> \"Read docs\u002F\u003CTASK_FILE> and execute it exactly.\" --json\n```\n\nRead the delivery in the reply:\n- `via: pane`, `state: verified` — it landed.\n- `via: pane_queue`, `state: queued` — the pane was busy or the paste couldn't be verified, so it's in the bot's mailbox. `detail` says why. Deliver it once the pane is idle with `gizzi orchestration drain \u003Cslug>@\u003Cteam>`.\n- `failed` — nothing landed. Read `detail` and fix it.\n\nUse `--queue` to queue on purpose. Use `--dry-run` to see the records a send would write. A repeated idempotency key returns the first delivery instead of sending twice. Every send is recorded in mail and as a `factory.delivery` ledger event (`gizzi orchestration mail list`, `GET \u002Fapi\u002Ffactory\u002Fdeliveries?agent=`).\n\n## Phase 4 — Monitor and steer\n\nCompletion is the **sentinel file's existence only**, never TUI activity (kimi shows no spinner). Watch in the foreground, bounded:\n\n```bash\ndeadline=$(( $(date +%s) + 3600 ))\nwhile [ ! -f \u003Cworkdir>\u002Fdocs\u002F\u003CNOTES>.sentinel ]; do\n  state=$(gizzi agents ps --json | jq -r '.agents[] | select(.address==\"\u003Cslug>@\u003Cteam>\") | .state')\n  case \"$state\" in offline|failed) echo \"PANE-DEAD\"; break;; esac        # was exit 3\n  [ \"$(date +%s)\" -ge \"$deadline\" ] && { echo \"TIMEOUT\"; break; }       # was exit 4\n  sleep 20\ndone\n```\n\n- Progress: `gizzi orchestration capture \u003Cslug>@\u003Cteam> 40`. Full log: `gizzi orchestration transcript \u003Cslug>@\u003Cteam>`.\n- `needs_you` state, or `gizzi orchestration attention list`, means the executor is waiting on a person or an approval.\n- To steer or answer questions, `gizzi orchestration send` into the same bot.\n- A person can watch live with `gizzi agents wall [team]` or `gizzi agents attach \u003Cslug>@\u003Cteam>` (interactive, so don't run it yourself).\n- For work that's already a DAG from a template, `gizzi workflows drive \u003Cdag> --once --dry-run`, then `--once`, drives READY nodes through the Gate instead of hand-sending.\n\n## Phase 5 — Review the work\n\nVerify the true footprint (`git -C \u003Cworktree> diff --stat`), scope, claims, and a cheap syntax gate. Never accept the notes file at face value. Fix small bugs yourself. Send bad implementations back with `gizzi orchestration send`. Proof for DAG work lives in the node: `gizzi workspace proof show`, `gizzi workspace judge show`.\n\n## Phase 6 — Iterate and clean up\n\nWhen all phases pass: merge\u002Fapply the worktree branch, close the node (`gizzi workspace node close \u003Cnode>`), then\n\n```bash\ngizzi agents down \u003Cteam> --dry-run\ngizzi agents down \u003Cteam> --rm-worktree     # keeps the branch\n```\n\nIf a session died mid-run: `gizzi agents recover` (dry run by default) shows a respawn plan with the harness's resume argv. `--apply` respawns.\n\n## Cross-session messaging\n\n```bash\ngizzi agents ps                                  # every bot of every binding: state, node, proof\ngizzi orchestration send \u003Cbot@team> \"\u003Cmessage>\"  # Terminal, Hosted or Vendor bot; the engine picks the delivery\ngizzi orchestration mail list | read \u003Cthread>    # the recorded threads\ngizzi orchestration feed --json                  # ledger events\n```\n\nFrom gizzi-code, the runtime's `allternit_list_agents` and `allternit_send_message` tools reach the same bots. Local pane sends never leave the machine.\n\n## Platform integration\n\nDesktop, ai.allternit.com and the phone read the same engine through allternit-api's `\u002Fapi\u002Ffactory` proxy: agents, capture, transcript, send, deliveries, the `\u002Fapi\u002Ffactory\u002Fevents` SSE stream, templates, runs, campaigns, nodes, and approvals (owned by allternit-api). A delegated executor shows up in Code mode's terminal wall and on the team strip as a Terminal bot.\n\n## Dispatch semantics\n\n- **One registry:** `~\u002F.allternit\u002Ffactory\u002Fregistry.json` (`$ALLTERNIT_FACTORY_HOME` moves it), migrated once from the old orchestrator registry. It's reconciled against live panes at engine start and on every `gizzi agents ps`: a gone pane reads `offline`, never running. Panes a person opened with an agent in them are adopted into the registry too.\n- **Queue, never drop:** a send to a busy or unverifiable pane goes to the bot's mailbox (`pane_queue` \u002F `queued`). `gizzi orchestration drain \u003Cbot@team> [--all]` delivers it, oldest first, through the same verified paste; a message is settled only once its delivery is verified.\n- **No silent fallback:** without the pane engine every spawn and send fails with exit `3`. There's no tmux path.\n- **Spawn logs** for engine spawns are in `~\u002F.allternit\u002Ffactory\u002Flogs\u002F`.\n\n## Pitfalls learned the hard way\n\n- kimi `-p` refuses `--yolo`\u002F`--auto` — run kimi as an interactive Terminal bot and send to it.\n- C-c kills a kimi TUI outright. The verified send clears with C-u on a mismatch, so don't paste by hand.\n- Busy-indicator polling gives false idles on kimi — sentinel files only.\n- Use worktrees to attribute changes when multiple agents share a repo. Never attribute working-tree changes to your executor without a worktree or mtime evidence.\n- Scope each phase so its review fits in a few file reads. A 2,000-line unreviewed diff is not \"done\".\n- macOS screen-recording filenames contain U+202F — use globs for user-provided recordings.\n- Don't drive Terminal.app with AppleScript (focus races injected prompts into the wrong window). If the user wants a visible window, have them run `gizzi agents attach \u003Cbot@team>` or `gizzi agents wall`.\n- A `best_effort` delivery (vendor or channel) is not proof the bot read it.\n\n## Provenance\n\nPatterns adopted from: awslabs\u002Fcli-agent-orchestrator (named sessions, status semantics, attach-to-observe), kingbootoshi\u002Fcodex-orchestrator (persistent transcript logs, completion notification chaining), primeline-ai\u002Fclaude-tmux-orchestration (verify-idle-before-send handshake), claude-squad\u002FCrystal (worktree-per-agent isolation). The pane engine is a fork of herdr (Apache-2.0).\n",{"name":5,"description":7},"main","7db7c6f88fb96b6792195dacabdb088419b7a9fa","tools\u002Fagent-orchestrator",0,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform","https:\u002F\u002Fgithub.com\u002FAllternit","https:\u002F\u002Fallternit.com","Allternit builds AI agents that work on your computer, in the cloud, and from your phone. Home of Allternit Desktop and Gizzi Code.","2026-11-15 02:40:14",{"source":9,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add Allternit\u002Fallternit-platform --skill agent-orchestrator",{"tool":77,"command":78},"bunx","bunx skills add Allternit\u002Fallternit-platform --skill agent-orchestrator",{"tool":80,"command":81},"pnpm","pnpm dlx skills add Allternit\u002Fallternit-platform --skill agent-orchestrator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002FSKILL.md",true,[85,91,95,101,105,109,113,117,121],{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"gizzi-plugin\u002F.claude-plugin\u002Fhooks.json","REFERENCE","参考文档",2120,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fgizzi-plugin\u002F.claude-plugin\u002Fhooks.json",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"gizzi-plugin\u002F.claude-plugin\u002Fplugin.json",383,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fgizzi-plugin\u002F.claude-plugin\u002Fplugin.json",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"install.sh","SCRIPT","脚本",1083,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Finstall.sh",{"path":102,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":103,"sourceHtmlUrl":104},"scripts\u002Fsteer",1613,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer",{"path":106,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Fsteer-checkpoint",1339,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer-checkpoint",{"path":110,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fsteer-context",2570,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer-context",{"path":114,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fsteer-discover",4881,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer-discover",{"path":118,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fsteer-prompt",1121,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer-prompt",{"path":122,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Fsteer-verify",2411,"https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fagent-orchestrator\u002Fscripts\u002Fsteer-verify",[126,159,178,201,220,248],{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":132,"categories":133,"keywords":140,"publishedAt":57},"01M6C6GBWRCJNWQP5S16PKXB77","jev","Jev类型化判断推理","Ask typed System One judgments (noul \u002F choice \u002F score) against Allternit's LOCAL System One server instead of prompting a chat model to \"return JSON\". Use when classifying, routing, scoring, or screening something and code needs a probability it can branch on, or when the user runs \u002Fjev. Official TypeSafe Jev is an optional, explicit remote lane.","针对 Allternit 的本地 System One 服务器发起类型化的 System One 判断（noul \u002F choice \u002F score），而不是通过提示让聊天模型“返回 JSON”。用于分类、路由、评分或筛选场景：当代码需要一个可据以分支的概率值，或当用户运行 \u002Fjev 时使用。官方 TypeSafe Jev 是可选且显式的远程通道。","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fsystem-one-local\u002Fskills\u002Fjev\u002FSKILL.md",[134,137],{"categoryNo":135,"categoryName":136,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":138,"categoryName":139,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CFBYS6KNR8FXE26HTAY17Y","大模型应用开发",[128,141,142,143,144,145,146,147,148,149,150,151,152,42,153,154,155,156,157,158,33],"official","routing","code","server","lane","system","json","model","choice","branch","ask","user","scoring","chat","local","probability","remote","can",{"skillNo":160,"name":161,"nameZh":16,"description":162,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":57},"01M6C6G9CGB9MX47NSQ31QNNB7","jev-route","Route with local System One answers — map Choice + confidence to act \u002F confirm \u002F human lanes, or pick a model tier by Choice label. Also documents the separate `route-model` helper for OpenRouter's typesafe\u002Fjev-router (a chat-model router, NOT System One). Use for confidence routing, model-tier routing, or when the user runs \u002Fjev-route.","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fsystem-one-local\u002Fskills\u002Fjev-route\u002FSKILL.md",[],[128,166,167,168,142,146,148,169,149,170,152,42,171,172,154,173,155,174,175,176,177,33],"jev route","route","documents","pick","openrouter","router","model router","map","helper","with","for","model-tier",{"skillNo":179,"name":180,"nameZh":16,"description":181,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":57},"01M6C6G6JZE0RC50QWWE6HG320","jev-guardrail","Screen text or agent tool calls with a battery of local System One Noul hazards plus a Score, with policy in code — and the Claude Code PreToolUse guard (hooks\u002Fpretooluse-guard) that puts deterministic hard rules first and lets Jev only raise friction. Use for injection\u002Fsecret\u002Fdestructive-action screening or when the user runs \u002Fjev-guardrail.","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fsystem-one-local\u002Fskills\u002Fjev-guardrail\u002FSKILL.md",[],[128,185,186,187,143,188,189,190,146,191,192,193,152,42,194,195,196,197,155,198,199,176,200,33],"jev guardrail","guardrail","policy","injection","first","guard","tool","text","Rules","friction","only","hooks","deterministic","battery","calls","agent tool",{"skillNo":202,"name":203,"nameZh":16,"description":204,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":205,"categories":206,"keywords":207,"publishedAt":57},"01M6C6G426P7Q5J3F98HVYDCB2","jev-fanout","Ask every independent System One question over the same state in ONE POST \u002Fv1\u002Fsystemone to the local server (speculative fan-out). Use for parallel judgments, compound commands, one-call turn assessment, or when the user runs \u002Fjev-fanout. Do not fire one HTTP call per question.","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fsystem-one-local\u002Fskills\u002Fjev-fanout\u002FSKILL.md",[],[128,208,209,210,211,212,144,146,213,151,214,152,42,215,216,155,217,218,176,219,33],"fanout","jev fanout","http","assessment","state","parallel","question","do","call","post","v1","local server",{"skillNo":221,"name":222,"nameZh":16,"description":223,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":57},"01M6C6G13D7JK869Q3DHMQ9542","memory-drive","Read and write the user's Allternit Memory Drive, a git repo of markdown memories in the open Agent Memory Repo format. Use at the start of a session to load what the user's agents remember (MEMORY.md), when the user says \"remember this\", when you learn a durable fact about the user or their work, and before answering questions that depend on past sessions.","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Ftools\u002Fmemory-drive-plugin\u002Fskills\u002Fmemory-drive\u002FSKILL.md",[],[227,228,229,230,231,232,233,234,235,236,237,238,46,239,240,241,152,43,42,242,243,244,245,246,247,33],"memory","drive","memory drive","sessions","remember","learn","git","agent memory","start","open","markdown","format","repo","read","write","what the","memories","about","questions","you","load",{"skillNo":249,"name":250,"nameZh":251,"description":252,"descriptionZh":253,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":254,"categories":255,"keywords":262,"publishedAt":57},"01M6C6FT301NEFTT5RSJK874N7","webobsidian","WebObsidian 笔记管理","Read, write, search, and manage notes in a WebObsidian vault through its Agent REST API (\u002Fapi\u002Fv1). Use whenever the user asks to find, read, create, update, append to, or delete notes in their WebObsidian \u002F Obsidian vault, list tags, get backlinks, or run a vault search. Credentials (base URL + API key) are stored in ~\u002F.webobsidian\u002Fcredentials.json; if missing, ask the user for them and save them before making requests.","通过 WebObsidian 的 Agent REST API（\u002Fapi\u002Fv1）读取、写入、搜索和管理 WebObsidian 库（vault）中的笔记。当用户要求在 WebObsidian \u002F Obsidian 库中查找、读取、创建、更新、追加或删除笔记、列出标签、获取反向链接，或执行库搜索时使用。凭证（base URL + API key）存储在 ~\u002F.webobsidian\u002Fcredentials.json；如缺失，请先向用户索取并保存，再发起请求。","https:\u002F\u002Fgithub.com\u002FAllternit\u002Fallternit-platform\u002Fblob\u002Fmain\u002Fservices\u002Fvault-viewer\u002Fdocs\u002Fagent-skill\u002Fwebobsidian\u002FSKILL.md",[256,259],{"categoryNo":257,"categoryName":258,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":260,"categoryName":261,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",[250,263,264,265,266,51,267,268,269,270,271,272,48,273,147,274,151,240,241,275,276,42,277,278,279],"obsidian","notes","create","delete","update","search","REST","vault","credentials","api","obsidian vault","find","list","append","get","backlinks","URL"]