[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZVHH8FEJY73VMCVH218D3":3,"skill-same:01M6CZVHH8FEJY73VMCVH218D3":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6CZVHH8FEJY73VMCVH218D3","fleet-core",null,"Shared rules for the clausona fleet skills (superset-fleet, herdr-fleet, orca-fleet, tmux-fleet). Load it only when one of those skills tells you to; it is not a task on its own.","larcane97\u002Fclausona","larcane97","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F70624819?v=4","01M6CZVE1355X0DMYJ4GR53FQG","larcane","01M6CZVE63YNP5XYNY4W1NQ9YX",61,"MIT","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Ffleet-core\u002Fskills\u002Ffleet-core\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"fleet core","core","fleet","shared","only","Rules","task","herdr","superset","tmux","false","when","you","for","load","it","2026-11-10 10:12:30",false,"---\nname: fleet-core\ndescription: Shared rules for the clausona fleet skills (superset-fleet, herdr-fleet, orca-fleet, tmux-fleet). Load it only when one of those skills tells you to; it is not a task on its own.\nuser-invocable: false\n---\n\n# Fleet rules shared by every runner\n\nA fleet is one main session (Claude Code or Codex) that splits work into tasks and runs each task as\na worker: a separate Claude Code or Codex session in its own git worktree, on a clausona profile. A\nprofile is one account or one API endpoint, with its own sign-in and limits. Profiles of one tool\nshare plugins and settings. `csn` is short for `clausona`.\n\nThe runner skill that loaded this one (Superset, herdr, Orca or tmux) says how to create worktrees,\nstart workers, read them and remove them. This skill says everything else.\n\n**Shells.** Commands here are written for a POSIX shell. Claude Code runs them in Bash, on Windows\ntoo (Git Bash). Codex on Windows runs PowerShell: there, read `\"$(cat \u003Cfile>)\"` as\n`(Get-Content -Raw \u003Cfile>)`, `$(command -v clausona)` as `(Get-Command clausona).Source`, and\n`\u003Ccmd> \u003C\u002Fdev\u002Fnull` as `$null | \u003Ccmd>`. `~` is your home\ndirectory: `%USERPROFILE%` on Windows. The shell can be zsh, which does not split an unquoted\nvariable into words: loop over paths written out one by one, not over a variable holding several.\n\n**Hidden variables in Codex.** A Codex config can pass your commands only a few environment\nvariables: `[shell_environment_policy]` with `inherit = \"core\"` or `\"none\"`, usually in\n`~\u002F.codex\u002Fconfig.toml`. Then `CODEX_HOME`, and the variables a runner sets in its terminals such\nas herdr's `HERDR_*`, look unset even when they are set. When one you need is unset in Codex, look\nfor that setting. If it is there, tell the user: the fix is to start this Codex session again with\n`-c shell_environment_policy.inherit=all` added to its command, which changes that session only.\n\n## 1. Profiles and the main session\n\n`clausona list --json` lists the profiles.\n\n- Every profile has `name`, `tool` (`claude` or `codex`) and `configDir`.\n- A subscription profile has `quota.state`, `quota.session.usedPercent` (5H) and\n  `quota.weekly.usedPercent` (7D). A plan with no 5-hour limit (a verified Claude Ultra plan,\n  some Codex plans) has `quota.sessionLimit: false` and no `quota.session`: its 7D is its only\n  window. It can also have `quota.scoped`: the most used window of a\n  limit on one model, named in its `label`. Claude's are weekly; a Codex one can be its 5-hour\n  window, and `windowSeconds` says which.\n- An API profile has `kind: \"api\"` and `model` instead. These exist for Claude Code only.\n\nThe **main tool** is the tool you run in: `claude` in Claude Code, `codex` in Codex. The **main\nprofile** is the one whose `configDir` equals `$CLAUDE_CONFIG_DIR` (or `~\u002F.claude` when it is unset)\nin Claude Code, or `$CODEX_HOME` (or `~\u002F.codex`) in Codex. It coordinates and is never a worker.\n(`isActive` in the list is something else: the profile `clausona use` picked.) If Codex hides\n`CODEX_HOME` (Shells), you cannot tell which profile you run on: ask the user, unless they said.\n\n## 2. Settings\n\nRead `~\u002F.clausona\u002Ffleet.json`. If it does not exist, read `~\u002F.clausona\u002Fsuperset-fleet.json`, its\nolder name. The keys:\n\n- `workers`: the only profiles that may be workers, for example `[\"claude:work\", \"claude:glm\"]`.\n  It also bounds checkers (section 10) and hand-overs (section 9).\n- `routing`: the user's own rules, in words, for example `\"claude:glm never edits files under src\u002F\"`.\n- `maxUsage`: the usage threshold in section 3, in percent. The default is 90.\n- `retire`: `ask` (the default) or `auto` (section 11).\n- `permissions`: how workers run, per tool, for example\n  `{\"claude\": \"acceptEdits\", \"codex\": \"on-request\", \"codexSandbox\": \"workspace-write\"}`.\n  `claude` is a Claude Code permission mode. `codex` is the Codex approval policy passed to `-a`:\n  `on-request` or `never` (Codex rejects other values on its command line). `codexSandbox` is the\n  Codex sandbox: `workspace-write` (the default) or `danger-full-access`. Section 4 says what each\n  means for commits.\n\nWhen a `permissions` value you need is missing, use what a worker config or the profile's own\nsettings already set (Claude Code's `permissions.defaultMode`; Codex's `approval_policy` and\n`sandbox_mode` in its `config.toml`, only when they hold one of the values above), and say which\nmode the workers get. If nothing sets one, ask the user once, and save the answer to `fleet.json`\nwhen they agree.\n\nWhen the user asks to change a default (\"never use claude:personal for workers\", \"always retire\nfinished workers\"), update that key in `~\u002F.clausona\u002Ffleet.json` and keep its other keys. If only\n`superset-fleet.json` exists, first copy its keys into a new `fleet.json`, then change the key. Say\nwhich file you wrote.\n\n## 3. Choosing profiles\n\nWhat the user says in this conversation comes first, then the settings file, then these defaults:\n\n- **Same tool.** Workers use the main tool. A profile of the other tool is a worker only when the\n  user names it in this conversation, or `workers` lists it.\n- **Not the main profile** (section 1).\n- **Skip profiles near or past their limits.** Never use a subscription profile whose\n  `quota.state` is not `ok`, or whose 5H or 7D usage is at `maxUsage` or more. If its\n  `quota.scoped` is at `maxUsage` or more, do not run the model in its `label` there.\n- **Prefer headroom.** Pick the profile with the most room left, and spread the workers so no one\n  profile carries most of them.\n- **Send wide, mechanical work to API profiles**, with small, explicit briefs: the file, the\n  function, the change, and the command that checks it. Long exploratory briefs overflow their\n  context.\n- **Checkers (section 10) run on a third profile** of the main tool: neither the worker's nor the\n  main one.\n\nIf the user picks a profile these defaults would skip, such as one past its limits or the main\nprofile itself, use it and say what it risks.\n\n**Before starting**, show the coordinator table (section 6) with each task's profile. If neither the\nrequest nor the settings named a profile (in `workers` or `routing`), wait for the user's OK.\nOtherwise, or if the user said to start right away, start at once. A request names profiles when it\ngives a profile for any task, or says which accounts to use (\"use my Claude accounts for the\nrest\"); the tasks it leaves open take the defaults above, and you still start at once.\n\n## 4. Launch arguments\n\nA worker always starts as `clausona run \u003Cprofile> -- \u003Cargs>`. Never start a bare `claude` or\n`codex`. A runner may set `CLAUDE_CONFIG_DIR` or `CODEX_HOME` in its terminals (Orca does), and only\n`clausona run` puts the worker on the profile you chose. The command line holds the profile and\nflags only, never the brief.\n\n**Claude Code workers:**\n\n- `--permission-mode \u003Cpermissions.claude>`.\n- `--strict-mcp-config`, unless the task needs an MCP server. Without it, a worktree below a\n  `.mcp.json` stops at Claude Code's \"new MCP servers found\" question, and the servers' tool\n  definitions take up context.\n- `--model \u003Cid>` and `--effort \u003Clevel>` when the plan sets them. Profiles share `settings.json`, so\n  a worker without them runs the main session's default model.\n- API profiles also get `--tools=Bash,Read,Edit,Write,Grep,Glob`, to keep tool definitions out of a\n  small context window.\n\n**Codex workers:**\n\n- `-s \u003Cpermissions.codexSandbox> -a \u003Cpermissions.codex>`. In `workspace-write`, Codex keeps `.git`\n  read-only and has no network, so a worker must ask before it commits and again before it pushes:\n  with `on-request` the user approves each one (section 8), and with `never` both fail. A Codex worker commits and pushes on its own only in `danger-full-access`, which turns the\n  sandbox off; that is the user's call. When you ask the user for a Codex policy, say this.\n- `-c check_for_update_on_startup=false`. Otherwise Codex can open with an update question whose\n  highlighted answer runs a global `npm install`.\n- `-c 'mcp_servers={}'`, unless the task needs an MCP server: a worker would otherwise start every\n  server in the shared config.\n- `--disable hooks`, unless the runner skill says otherwise. With hooks on, Codex can stop at\n  \"Hooks need review\", and trusting hooks is the user's call, never a worker's.\n- `-m \u003Cmodel>` and `-c model_reasoning_effort=\u003Clevel>` when the plan sets them.\n\n**Folder trust.** Claude Code and Codex both ask once whether to trust a folder, and both key the\nanswer to the repository root, not the worktree: a worktree of a repo the profile already trusts\nstarts without asking. When a worker shows the question for the repository you are working in,\nanswer \"trust\" as the runner skill says. That is the repo the user asked you to work on.\n\n**First run.** A profile's first session can stop at one-time notices, such as an API-key profile's\n\"Detected a custom API key\" (the answer must be Yes) or a Claude in Chrome notice. Before a profile's\nfirst worker, ask the user to start it once by hand (`clausona run \u003Cprofile>`) and answer them. If a\nworker's screen shows such a notice, answer it yourself only when its highlighted default is the\nsafe choice; otherwise tell the user. A permission prompt is never such a notice.\n\n## 5. Briefs\n\nWrite every brief and follow-up to a file. Never paste one into a command line: the shell would\nrun any `$( )` or backticks in it. Start each one with a word, not `-`.\n\nFor herdr, Orca and tmux:\n\n- Write the brief to `\u003Cworktree>\u002F.fleet-brief.md`, and follow-ups to\n  `\u003Cworktree>\u002F.fleet-followup-\u003Cn>.md`.\n- Make sure the line `\u002F.fleet-*.md` is in the file `info\u002Fexclude` inside the directory that\n  `git -C \u003Cworktree> rev-parse --git-common-dir` prints, so these files are never committed and\n  `git status` stays clean.\n- Send the worker one line: `Read .fleet-brief.md in this folder and do what it says.` (or the\n  follow-up's file name).\n\nSuperset passes the brief file to its own commands (see superset-fleet).\n\nBesides the task, every brief says:\n\n- Work only in this worktree and branch. When done, commit and push the branch\n  (`git push -u origin HEAD`).\n- Do not start other agents: no subagents, no `claude -p`, no `codex exec`, no review skills, no\n  background agents.\n- End with the runner's DONE or BLOCKED line (section 6).\n\n## 6. The coordinator table and the worker protocol\n\nKeep a table with one row per task: task, profile, model, workspace, worktree, branch, worker\nhandle, and state (planned, running, waiting on the user, done, blocked, retired). Update it after\nevery event.\n\nFor herdr, Orca and tmux, a worker's last line is exactly one of:\n\n- `FLEET_WORKER_DONE: \u003Cone-line summary>`\n- `FLEET_WORKER_BLOCKED: \u003Cwhat it needs>`\n\nSuperset uses its own envelopes, from `superset:orchestrate` (Claude Code) or\n`superset-orchestrate` (Codex).\n\n## 7. Waiting\n\nNever end your turn while a worker runs and nothing waits on it: no one would wake you, and the user\nwould have to.\n\n- **In Claude Code**, run the runner's wait command for each unfinished worker as a background\n  task. You are woken when one returns.\n- **In Codex**, run one wait at a time in the foreground with a timeout of three minutes, handle\n  what it returns, and wait again.\n\nThe runner skill says how to send and wait so that a wait never returns at once on a worker that\nhas not started its turn yet. Wait on a worker again only after you sent it something (a brief, a\nfollow-up, or keys), or after a wait timed out while it was still working. A worker that has\nalready stopped makes most waits return at once, so waiting on it again without either only loops.\n\nIn Codex, start every worker before you wait on any: one foreground wait at a time would otherwise\nstart the workers one after another. The runner skill gives the Codex forms.\n\nWhen a worker waits for the user (a permission prompt, or a question you passed on), use the\nrunner's \"until it works again\" wait if it has one. Otherwise, read that worker's screen whenever\nanother wait returns, or when the user says they answered. If no other worker runs, end your turn\nand ask the user to tell you when they have answered.\n\nDo not write your own loop that searches screens for a phrase. The phrase may be in the brief too,\nin another language, or missing.\n\n## 8. Reading an event\n\nWhen a wait returns, find the worker's last reply, in this order: the runner's record of it, which\nthe runner skill names; then, for a Claude Code worker, the script below; then the worker's screen\n(the runner skill says how). The screen alone misses finished workers:\n\n- Claude Code in full-screen mode keeps no scrollback, so a read returns only what the screen\n  shows. A reply taller than that never shows whole.\n- A Claude Code worker that sits idle compacts its conversation (\"Compacted while idle\"), and its\n  reply is gone from the screen. A worker you come back to late may show no DONE line although it\n  finished long ago.\n\nWhen the runner keeps no record of a Claude Code worker's reply, or the record has no DONE or\nBLOCKED line, run\n`node \u003Cbase>\u002Fscripts\u002Flast-reply.mjs --worktree \u003Cworktree> --config-dir \u003Cprofile configDir>`.\n`\u003Cbase>` is this skill's base directory, the folder that holds this file. The configDir is the\nworker's profile's, from `clausona list --json`. The script prints the worker's last reply from\nClaude Code's own record of the session, which outlives the screen, and `at`, when the worker wrote\nit. A reply from before you last sent the worker something does not answer that. With\n`\"reply\": null`, `why` says what the script found instead: nothing since the last prompt, a turn\nstill going, or only an earlier task's session in a worktree of the same path. It reads Claude Code\nsessions only: for a Codex worker, read the screen.\n\nThen, from the reply or the screen:\n\n- A DONE or BLOCKED line: update the table. For DONE, go to section 10.\n- A question: answer it from what you know, or ask the user.\n- A permission prompt: never answer it yourself. Tell the user which worker waits, and for what.\n- A usage-limit or rate-limit stop that will not clear soon: section 9.\n- The folder-trust question: section 4.\n\n## 9. When an account runs out\n\n1. Pick another profile by section 3.\n2. Start it in the same worktree (the runner skill says how). Give it the brief plus this\n   paragraph: \"A previous worker on another account stopped at its limit before finishing. Check\n   `git status` and `git log` in this worktree, then continue the task.\" For herdr, Orca and tmux,\n   write that to `.fleet-brief.md` again and send the one line.\n3. Close the old worker. Relabel the task for the new profile, in the same `\u003Ctask> · \u003Cprofile>`\n   form, so the sidebar or status bar names the account that now runs it. The runner skill says\n   how.\n4. Record the new handle in the table, and wait on it from now on.\n\n## 10. Judging a worker done\n\nA DONE line is a claim. Before marking a task completed, in its worktree:\n\n- `git log --oneline \u003Cbase>..HEAD` shows the work.\n- `git status --porcelain` prints nothing.\n- `git rev-list --count \"@{u}..HEAD\"` prints 0: the branch is pushed (keep the quotes: PowerShell\n  reads a bare `@{` as the start of a hash table). It fails when the branch has no upstream, that\n  is, when it was never pushed.\n- Read the diff against what the brief asked.\n- Run the brief's check commands yourself.\n- For risky changes, also run a blind checker on a third profile of the main tool, from the\n  worktree. Write its prompt to a file: the brief's acceptance criteria, and a request for a\n  verdict on each. Then run:\n  - Claude Code: `clausona run \u003Cprofile> -- -p \"$(cat \u003Cfile>)\" --model \u003Cmodel> --tools=Bash,Read,Grep,Glob --output-format json`\n  - Codex: `clausona run \u003Cprofile> -- exec -s read-only \"$(cat \u003Cfile>)\" \u003C\u002Fdev\u002Fnull`. Keep stdin\n    closed: `codex exec` otherwise waits for more input and never starts.\n\nIf something is missing, send the worker a follow-up that names each unmet criterion. In the\nreport, keep what you checked apart from what the worker claimed.\n\n## 11. Retiring workers\n\nRetiring removes a worker's worktree and its runner workspace. A worker is retirable only when all\nthree hold:\n\n1. Its task was judged complete (section 10).\n2. Its branch has an upstream, and no commits ahead of it.\n3. `git status --porcelain` in its worktree prints nothing.\n\nCheck 2 and 3 right before removing. Condition 2 is what keeps the work: some runners delete the\nlocal branch together with the worktree (Orca does), and then only the pushed branch remains. Remove\nonly with the command the runner skill names, never with `--force` or any other option that removes\na worktree holding changes. After removing, confirm the worktree directory is gone.\n\nThe retire mode is the first of these that applies:\n\n1. What the user said in this conversation, such as \"retire them when they're done\" or \"keep the\n   workers\".\n2. `retire` in the settings.\n3. The default, `ask`.\n\n- **`ask`**: at the end, list the retirable workers and retire the ones the user approves.\n- **`auto`**: say at the start that finished workers will be retired, then retire each one as soon\n  as it is retirable.\n\nA worker that is not retirable is never retired; report why.\n\n## 12. Final report\n\nOne line per task:\n\n- profile and model;\n- workspace and branch;\n- verdict: checked, or only claimed;\n- retired or kept, and why.\n","# Fleet rules shared by every runner\n\nA fleet is one main session (Claude Code or Codex) that splits work into tasks and runs each task as\na worker: a separate Claude Code or Codex session in its own git worktree, on a clausona profile. A\nprofile is one account or one API endpoint, with its own sign-in and limits. Profiles of one tool\nshare plugins and settings. `csn` is short for `clausona`.\n\nThe runner skill that loaded this one (Superset, herdr, Orca or tmux) says how to create worktrees,\nstart workers, read them and remove them. This skill says everything else.\n\n**Shells.** Commands here are written for a POSIX shell. Claude Code runs them in Bash, on Windows\ntoo (Git Bash). Codex on Windows runs PowerShell: there, read `\"$(cat \u003Cfile>)\"` as\n`(Get-Content -Raw \u003Cfile>)`, `$(command -v clausona)` as `(Get-Command clausona).Source`, and\n`\u003Ccmd> \u003C\u002Fdev\u002Fnull` as `$null | \u003Ccmd>`. `~` is your home\ndirectory: `%USERPROFILE%` on Windows. The shell can be zsh, which does not split an unquoted\nvariable into words: loop over paths written out one by one, not over a variable holding several.\n\n**Hidden variables in Codex.** A Codex config can pass your commands only a few environment\nvariables: `[shell_environment_policy]` with `inherit = \"core\"` or `\"none\"`, usually in\n`~\u002F.codex\u002Fconfig.toml`. Then `CODEX_HOME`, and the variables a runner sets in its terminals such\nas herdr's `HERDR_*`, look unset even when they are set. When one you need is unset in Codex, look\nfor that setting. If it is there, tell the user: the fix is to start this Codex session again with\n`-c shell_environment_policy.inherit=all` added to its command, which changes that session only.\n\n## 1. Profiles and the main session\n\n`clausona list --json` lists the profiles.\n\n- Every profile has `name`, `tool` (`claude` or `codex`) and `configDir`.\n- A subscription profile has `quota.state`, `quota.session.usedPercent` (5H) and\n  `quota.weekly.usedPercent` (7D). A plan with no 5-hour limit (a verified Claude Ultra plan,\n  some Codex plans) has `quota.sessionLimit: false` and no `quota.session`: its 7D is its only\n  window. It can also have `quota.scoped`: the most used window of a\n  limit on one model, named in its `label`. Claude's are weekly; a Codex one can be its 5-hour\n  window, and `windowSeconds` says which.\n- An API profile has `kind: \"api\"` and `model` instead. These exist for Claude Code only.\n\nThe **main tool** is the tool you run in: `claude` in Claude Code, `codex` in Codex. The **main\nprofile** is the one whose `configDir` equals `$CLAUDE_CONFIG_DIR` (or `~\u002F.claude` when it is unset)\nin Claude Code, or `$CODEX_HOME` (or `~\u002F.codex`) in Codex. It coordinates and is never a worker.\n(`isActive` in the list is something else: the profile `clausona use` picked.) If Codex hides\n`CODEX_HOME` (Shells), you cannot tell which profile you run on: ask the user, unless they said.\n\n## 2. Settings\n\nRead `~\u002F.clausona\u002Ffleet.json`. If it does not exist, read `~\u002F.clausona\u002Fsuperset-fleet.json`, its\nolder name. The keys:\n\n- `workers`: the only profiles that may be workers, for example `[\"claude:work\", \"claude:glm\"]`.\n  It also bounds checkers (section 10) and hand-overs (section 9).\n- `routing`: the user's own rules, in words, for example `\"claude:glm never edits files under src\u002F\"`.\n- `maxUsage`: the usage threshold in section 3, in percent. The default is 90.\n- `retire`: `ask` (the default) or `auto` (section 11).\n- `permissions`: how workers run, per tool, for example\n  `{\"claude\": \"acceptEdits\", \"codex\": \"on-request\", \"codexSandbox\": \"workspace-write\"}`.\n  `claude` is a Claude Code permission mode. `codex` is the Codex approval policy passed to `-a`:\n  `on-request` or `never` (Codex rejects other values on its command line). `codexSandbox` is the\n  Codex sandbox: `workspace-write` (the default) or `danger-full-access`. Section 4 says what each\n  means for commits.\n\nWhen a `permissions` value you need is missing, use what a worker config or the profile's own\nsettings already set (Claude Code's `permissions.defaultMode`; Codex's `approval_policy` and\n`sandbox_mode` in its `config.toml`, only when they hold one of the values above), and say which\nmode the workers get. If nothing sets one, ask the user once, and save the answer to `fleet.json`\nwhen they agree.\n\nWhen the user asks to change a default (\"never use claude:personal for workers\", \"always retire\nfinished workers\"), update that key in `~\u002F.clausona\u002Ffleet.json` and keep its other keys. If only\n`superset-fleet.json` exists, first copy its keys into a new `fleet.json`, then change the key. Say\nwhich file you wrote.\n\n## 3. Choosing profiles\n\nWhat the user says in this conversation comes first, then the settings file, then these defaults:\n\n- **Same tool.** Workers use the main tool. A profile of the other tool is a worker only when the\n  user names it in this conversation, or `workers` lists it.\n- **Not the main profile** (section 1).\n- **Skip profiles near or past their limits.** Never use a subscription profile whose\n  `quota.state` is not `ok`, or whose 5H or 7D usage is at `maxUsage` or more. If its\n  `quota.scoped` is at `maxUsage` or more, do not run the model in its `label` there.\n- **Prefer headroom.** Pick the profile with the most room left, and spread the workers so no one\n  profile carries most of them.\n- **Send wide, mechanical work to API profiles**, with small, explicit briefs: the file, the\n  function, the change, and the command that checks it. Long exploratory briefs overflow their\n  context.\n- **Checkers (section 10) run on a third profile** of the main tool: neither the worker's nor the\n  main one.\n\nIf the user picks a profile these defaults would skip, such as one past its limits or the main\nprofile itself, use it and say what it risks.\n\n**Before starting**, show the coordinator table (section 6) with each task's profile. If neither the\nrequest nor the settings named a profile (in `workers` or `routing`), wait for the user's OK.\nOtherwise, or if the user said to start right away, start at once. A request names profiles when it\ngives a profile for any task, or says which accounts to use (\"use my Claude accounts for the\nrest\"); the tasks it leaves open take the defaults above, and you still start at once.\n\n## 4. Launch arguments\n\nA worker always starts as `clausona run \u003Cprofile> -- \u003Cargs>`. Never start a bare `claude` or\n`codex`. A runner may set `CLAUDE_CONFIG_DIR` or `CODEX_HOME` in its terminals (Orca does), and only\n`clausona run` puts the worker on the profile you chose. The command line holds the profile and\nflags only, never the brief.\n\n**Claude Code workers:**\n\n- `--permission-mode \u003Cpermissions.claude>`.\n- `--strict-mcp-config`, unless the task needs an MCP server. Without it, a worktree below a\n  `.mcp.json` stops at Claude Code's \"new MCP servers found\" question, and the servers' tool\n  definitions take up context.\n- `--model \u003Cid>` and `--effort \u003Clevel>` when the plan sets them. Profiles share `settings.json`, so\n  a worker without them runs the main session's default model.\n- API profiles also get `--tools=Bash,Read,Edit,Write,Grep,Glob`, to keep tool definitions out of a\n  small context window.\n\n**Codex workers:**\n\n- `-s \u003Cpermissions.codexSandbox> -a \u003Cpermissions.codex>`. In `workspace-write`, Codex keeps `.git`\n  read-only and has no network, so a worker must ask before it commits and again before it pushes:\n  with `on-request` the user approves each one (section 8), and with `never` both fail. A Codex worker commits and pushes on its own only in `danger-full-access`, which turns the\n  sandbox off; that is the user's call. When you ask the user for a Codex policy, say this.\n- `-c check_for_update_on_startup=false`. Otherwise Codex can open with an update question whose\n  highlighted answer runs a global `npm install`.\n- `-c 'mcp_servers={}'`, unless the task needs an MCP server: a worker would otherwise start every\n  server in the shared config.\n- `--disable hooks`, unless the runner skill says otherwise. With hooks on, Codex can stop at\n  \"Hooks need review\", and trusting hooks is the user's call, never a worker's.\n- `-m \u003Cmodel>` and `-c model_reasoning_effort=\u003Clevel>` when the plan sets them.\n\n**Folder trust.** Claude Code and Codex both ask once whether to trust a folder, and both key the\nanswer to the repository root, not the worktree: a worktree of a repo the profile already trusts\nstarts without asking. When a worker shows the question for the repository you are working in,\nanswer \"trust\" as the runner skill says. That is the repo the user asked you to work on.\n\n**First run.** A profile's first session can stop at one-time notices, such as an API-key profile's\n\"Detected a custom API key\" (the answer must be Yes) or a Claude in Chrome notice. Before a profile's\nfirst worker, ask the user to start it once by hand (`clausona run \u003Cprofile>`) and answer them. If a\nworker's screen shows such a notice, answer it yourself only when its highlighted default is the\nsafe choice; otherwise tell the user. A permission prompt is never such a notice.\n\n## 5. Briefs\n\nWrite every brief and follow-up to a file. Never paste one into a command line: the shell would\nrun any `$( )` or backticks in it. Start each one with a word, not `-`.\n\nFor herdr, Orca and tmux:\n\n- Write the brief to `\u003Cworktree>\u002F.fleet-brief.md`, and follow-ups to\n  `\u003Cworktree>\u002F.fleet-followup-\u003Cn>.md`.\n- Make sure the line `\u002F.fleet-*.md` is in the file `info\u002Fexclude` inside the directory that\n  `git -C \u003Cworktree> rev-parse --git-common-dir` prints, so these files are never committed and\n  `git status` stays clean.\n- Send the worker one line: `Read .fleet-brief.md in this folder and do what it says.` (or the\n  follow-up's file name).\n\nSuperset passes the brief file to its own commands (see superset-fleet).\n\nBesides the task, every brief says:\n\n- Work only in this worktree and branch. When done, commit and push the branch\n  (`git push -u origin HEAD`).\n- Do not start other agents: no subagents, no `claude -p`, no `codex exec`, no review skills, no\n  background agents.\n- End with the runner's DONE or BLOCKED line (section 6).\n\n## 6. The coordinator table and the worker protocol\n\nKeep a table with one row per task: task, profile, model, workspace, worktree, branch, worker\nhandle, and state (planned, running, waiting on the user, done, blocked, retired). Update it after\nevery event.\n\nFor herdr, Orca and tmux, a worker's last line is exactly one of:\n\n- `FLEET_WORKER_DONE: \u003Cone-line summary>`\n- `FLEET_WORKER_BLOCKED: \u003Cwhat it needs>`\n\nSuperset uses its own envelopes, from `superset:orchestrate` (Claude Code) or\n`superset-orchestrate` (Codex).\n\n## 7. Waiting\n\nNever end your turn while a worker runs and nothing waits on it: no one would wake you, and the user\nwould have to.\n\n- **In Claude Code**, run the runner's wait command for each unfinished worker as a background\n  task. You are woken when one returns.\n- **In Codex**, run one wait at a time in the foreground with a timeout of three minutes, handle\n  what it returns, and wait again.\n\nThe runner skill says how to send and wait so that a wait never returns at once on a worker that\nhas not started its turn yet. Wait on a worker again only after you sent it something (a brief, a\nfollow-up, or keys), or after a wait timed out while it was still working. A worker that has\nalready stopped makes most waits return at once, so waiting on it again without either only loops.\n\nIn Codex, start every worker before you wait on any: one foreground wait at a time would otherwise\nstart the workers one after another. The runner skill gives the Codex forms.\n\nWhen a worker waits for the user (a permission prompt, or a question you passed on), use the\nrunner's \"until it works again\" wait if it has one. Otherwise, read that worker's screen whenever\nanother wait returns, or when the user says they answered. If no other worker runs, end your turn\nand ask the user to tell you when they have answered.\n\nDo not write your own loop that searches screens for a phrase. The phrase may be in the brief too,\nin another language, or missing.\n\n## 8. Reading an event\n\nWhen a wait returns, find the worker's last reply, in this order: the runner's record of it, which\nthe runner skill names; then, for a Claude Code worker, the script below; then the worker's screen\n(the runner skill says how). The screen alone misses finished workers:\n\n- Claude Code in full-screen mode keeps no scrollback, so a read returns only what the screen\n  shows. A reply taller than that never shows whole.\n- A Claude Code worker that sits idle compacts its conversation (\"Compacted while idle\"), and its\n  reply is gone from the screen. A worker you come back to late may show no DONE line although it\n  finished long ago.\n\nWhen the runner keeps no record of a Claude Code worker's reply, or the record has no DONE or\nBLOCKED line, run\n`node \u003Cbase>\u002Fscripts\u002Flast-reply.mjs --worktree \u003Cworktree> --config-dir \u003Cprofile configDir>`.\n`\u003Cbase>` is this skill's base directory, the folder that holds this file. The configDir is the\nworker's profile's, from `clausona list --json`. The script prints the worker's last reply from\nClaude Code's own record of the session, which outlives the screen, and `at`, when the worker wrote\nit. A reply from before you last sent the worker something does not answer that. With\n`\"reply\": null`, `why` says what the script found instead: nothing since the last prompt, a turn\nstill going, or only an earlier task's session in a worktree of the same path. It reads Claude Code\nsessions only: for a Codex worker, read the screen.\n\nThen, from the reply or the screen:\n\n- A DONE or BLOCKED line: update the table. For DONE, go to section 10.\n- A question: answer it from what you know, or ask the user.\n- A permission prompt: never answer it yourself. Tell the user which worker waits, and for what.\n- A usage-limit or rate-limit stop that will not clear soon: section 9.\n- The folder-trust question: section 4.\n\n## 9. When an account runs out\n\n1. Pick another profile by section 3.\n2. Start it in the same worktree (the runner skill says how). Give it the brief plus this\n   paragraph: \"A previous worker on another account stopped at its limit before finishing. Check\n   `git status` and `git log` in this worktree, then continue the task.\" For herdr, Orca and tmux,\n   write that to `.fleet-brief.md` again and send the one line.\n3. Close the old worker. Relabel the task for the new profile, in the same `\u003Ctask> · \u003Cprofile>`\n   form, so the sidebar or status bar names the account that now runs it. The runner skill says\n   how.\n4. Record the new handle in the table, and wait on it from now on.\n\n## 10. Judging a worker done\n\nA DONE line is a claim. Before marking a task completed, in its worktree:\n\n- `git log --oneline \u003Cbase>..HEAD` shows the work.\n- `git status --porcelain` prints nothing.\n- `git rev-list --count \"@{u}..HEAD\"` prints 0: the branch is pushed (keep the quotes: PowerShell\n  reads a bare `@{` as the start of a hash table). It fails when the branch has no upstream, that\n  is, when it was never pushed.\n- Read the diff against what the brief asked.\n- Run the brief's check commands yourself.\n- For risky changes, also run a blind checker on a third profile of the main tool, from the\n  worktree. Write its prompt to a file: the brief's acceptance criteria, and a request for a\n  verdict on each. Then run:\n  - Claude Code: `clausona run \u003Cprofile> -- -p \"$(cat \u003Cfile>)\" --model \u003Cmodel> --tools=Bash,Read,Grep,Glob --output-format json`\n  - Codex: `clausona run \u003Cprofile> -- exec -s read-only \"$(cat \u003Cfile>)\" \u003C\u002Fdev\u002Fnull`. Keep stdin\n    closed: `codex exec` otherwise waits for more input and never starts.\n\nIf something is missing, send the worker a follow-up that names each unmet criterion. In the\nreport, keep what you checked apart from what the worker claimed.\n\n## 11. Retiring workers\n\nRetiring removes a worker's worktree and its runner workspace. A worker is retirable only when all\nthree hold:\n\n1. Its task was judged complete (section 10).\n2. Its branch has an upstream, and no commits ahead of it.\n3. `git status --porcelain` in its worktree prints nothing.\n\nCheck 2 and 3 right before removing. Condition 2 is what keeps the work: some runners delete the\nlocal branch together with the worktree (Orca does), and then only the pushed branch remains. Remove\nonly with the command the runner skill names, never with `--force` or any other option that removes\na worktree holding changes. After removing, confirm the worktree directory is gone.\n\nThe retire mode is the first of these that applies:\n\n1. What the user said in this conversation, such as \"retire them when they're done\" or \"keep the\n   workers\".\n2. `retire` in the settings.\n3. The default, `ask`.\n\n- **`ask`**: at the end, list the retirable workers and retire the ones the user approves.\n- **`auto`**: say at the start that finished workers will be retired, then retire each one as soon\n  as it is retirable.\n\nA worker that is not retirable is never retired; report why.\n\n## 12. Final report\n\nOne line per task:\n\n- profile and model;\n- workspace and branch;\n- verdict: checked, or only claimed;\n- retired or kept, and why.\n",{"name":5,"description":7,"user-invocable":36},"main","d904bd0415be77f3006e0a913b39bea3aad8a999","plugins\u002Ffleet-core\u002Fskills\u002Ffleet-core",11,"https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona","https:\u002F\u002Flarcane97.github.io\u002Fclausona\u002F","https:\u002F\u002Fgithub.com\u002Flarcane97","https:\u002F\u002Flarcane.tistory.com","Software engineer building AI products, shared platforms, and large-scale data systems.","2026-11-12 04:04:35",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add larcane97\u002Fclausona --skill fleet-core",{"tool":56,"command":57},"bunx","bunx skills add larcane97\u002Fclausona --skill fleet-core",{"tool":59,"command":60},"pnpm","pnpm dlx skills add larcane97\u002Fclausona --skill fleet-core","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Ffleet-core\u002Fskills\u002Ffleet-core\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Flast-reply.mjs","SCRIPT","脚本",8407,"https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Ffleet-core\u002Fskills\u002Ffleet-core\u002Fscripts\u002Flast-reply.mjs",[71,102,115,137,148],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":35},"01M6CZW4Q7A95ZE1A1RG2YR79J","tmux-fleet","Run several coding agents in parallel in tmux windows, each under its own clausona profile (another Claude Code or Codex account, or an API model such as GLM or DeepSeek), then watch them, check their work and retire them. Use when the user works in tmux, on their own machine or over SSH, and wants work spread across accounts or models, when one account's limits would slow a fan-out, or says \"split this across my accounts in tmux\", \"run these on DeepSeek in tmux windows\".","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Ftmux-fleet\u002Fskills\u002Ftmux-fleet\u002FSKILL.md",[],[78,28,21,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,30,97,98,99,100,101],"tmux fleet","parallel","windows","model","use","code","deepseek","api","across","check","work","codex","coding agents","models","run","ssh","coding","user","watch","limits","my","as","glm","machine",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":35},"01M6CZW16QA0X0FEYXV1EAEXR5","superset-fleet","Run several coding agents in parallel in Superset workspaces, each under its own clausona profile (another Claude Code or Codex account, or an API model such as GLM or DeepSeek), then watch them, check their work and retire them. Use when the user wants work spread across accounts or models in Superset, when one account's limits would slow a fan-out, or says \"split this across my accounts\", \"run these on GLM in Superset\", \"my account is near its limit, keep the workers going\". Builds on superset:orchestrate.","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperset-fleet\u002Fskills\u002Fsuperset-fleet\u002FSKILL.md",[],[109,27,21,79,110,81,111,82,112,83,84,85,86,87,88,89,90,91,92,94,95,113,30,97,98,96,99,114],"superset fleet","orchestrate","workspaces","workers","near","limit",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":35},"01M6CZVXG1VAK0EH8GJ7NYYG9G","routing","Run Claude Code or Codex on whichever clausona account has quota left, using clausona routes, and create, change or explain those routes, and the dir rules and defaults that pick one for a plain `clausona run claude`, for the user. Use when the user says \"run this on an account with room\", \"spread these across my accounts\", \"make a route of my work accounts\", \"use my work accounts in this repo\", \"why did it pick that account\", \"wait until an account frees up\", when a run stops on a usage limit (of the plan or of one model, such as Opus), when writing a script or cron job that runs on a route, or when starting several workers that should not all land on one account.","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Frouting\u002Fskills\u002Frouting\u002FSKILL.md",[],[117,81,122,123,124,125,126,82,24,112,83,127,86,128,129,88,130,131,89,92,30,132,98,133,134,135,136],"repo","pick","up","writing","quota","explain","route","create","plan","change","why","wait","land","opus","make",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":35},"01M6CZVSP0Q04QHHNHES1YR6QQ","orca-fleet","Run several coding agents in parallel in Orca worktrees, each under its own clausona profile (another Claude Code or Codex account, or an API model such as GLM or DeepSeek), then watch them, check their work and retire them. Use when the user works in Orca and wants work spread across accounts or models, when one account's limits would slow a fan-out, or says \"split this across my accounts in Orca\", \"run these on DeepSeek in Orca\".","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Forca-fleet\u002Fskills\u002Forca-fleet\u002FSKILL.md",[],[144,21,79,81,82,83,84,85,86,87,88,89,90,91,92,145,94,95,96,146,30,97,98,99,100,147],"orca fleet","worktrees","profile","split",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":35},"01M6CZVNTDVVW52RQKFQWF54CA","herdr-fleet","Run several coding agents in parallel in herdr panes, each under its own clausona profile (another Claude Code or Codex account, or an API model such as GLM or DeepSeek), then watch them, check their work and retire them. Use when the user works in herdr and wants work spread across accounts or models, when one account's limits would slow a fan-out, or says \"split this across my accounts in herdr\", \"run these on DeepSeek in herdr\".","https:\u002F\u002Fgithub.com\u002Flarcane97\u002Fclausona\u002Fblob\u002Fmain\u002Fplugins\u002Fherdr-fleet\u002Fskills\u002Fherdr-fleet\u002FSKILL.md",[],[155,26,21,79,81,156,82,83,84,85,86,87,88,89,90,91,92,94,95,96,146,30,97,98,99,100,147],"herdr fleet","panes"]