[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MD4R770FNV68N60Z9XWZWP":3,"skill-same:01M6MD4R770FNV68N60Z9XWZWP":75},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":48,"ownerDescription":50,"updatedAt":51,"install":52,"resources":64},"01M6MD4R770FNV68N60Z9XWZWP","herdr-orchestration",null,"Orchestrate Claude and Codex worker TUIs from a controller agent — one worker per named herdr tab, driven over the herdr socket CLI.","compozy\u002Fcompozy","compozy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F205107042?v=4","01M6JWVTXX4DX38AWZ7SPFEKEV","CompozyOS","01M6JWVV2P34GM1PDATVB2EV05",2871,"MIT","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fherdr-orchestration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"orchestration","herdr","herdr orchestration","cli","github","codex","orchestrate","https","controller","worker","driven","true","socket","codex worker","2026-11-10 10:12:30",false,"---\nname: herdr-orchestration\ndescription: Orchestrate Claude and Codex worker TUIs from a controller agent — one worker per named herdr tab, driven over the herdr socket CLI.\ndisable-model-invocation: true\nmetadata:\n  author: Pedro Nauck\n  github: https:\u002F\u002Fgithub.com\u002Fpedronauck\n  repository: https:\u002F\u002Fgithub.com\u002Fpedronauck\u002Fskills\n---\n\n# herdr Orchestration\n\nThe top-level agent is the **controller** (Codex, Claude, Fable, or another);\nit delegates to **worker** TUIs that gather evidence, draft bounded patches,\nrun tests, and report. The controller owns assignment, state, conflict\ncontrol, verification, integration, and the final user-facing answer. herdr is\nthe substrate: each worker TUI owns a named tab, and the socket CLI (`herdr …`)\ngives the controller placement, input, screen reads, and native agent-status\nwaits.\n\n## One worker, one named tab\n\nEvery worker gets its own tab, labeled at creation with `tab create --label`.\nThe tab bar is the controller's dashboard: a labeled tab says which model is\nrunning which slice, and stays readable no matter how many workers are live.\n\nTabs also cost no screen area. A split pane divides the caller's screen with\nevery worker, and on a laptop the third worker leaves every pane too narrow to\nread. Split a pane only when the user explicitly asks to watch a worker beside\nthe caller.\n\nTwo names per worker, both required at launch:\n\n- **tab label** — `\u003Cmodel>: \u003Cslice>`, e.g. `opus: fix loops`,\n  `codex: audit auth`. Free text; keep it short, tab bars truncate.\n- **agent name** — the slice as a slug, e.g. `fix-loops`. Must match\n  `[a-z][a-z0-9_-]{0,31}` and be unique among live agents. Every `agent …` verb\n  accepts it in place of a pane id.\n\n## Workers are TUIs — no headless runners\n\nA worker is an interactive TUI — `claude` or `codex` — started with\n`herdr agent start`, which validates the agent's identity and returns only once\nherdr sees it ready for input. herdr's agent-state integrations hook those\nTUIs, so `agent wait`, `agent list`, and blocked\u002Fdone detection exist only\nwhile a real TUI is on screen.\n\nHeadless runners — `claude -p`, `codex exec`, anything that\nstreams JSON events into a pane — never report state, so waits never fire and\nthe delegation dies silently. A worker tab filling with raw JSON event lines is\na broken delegation: interrupt it (`rtk herdr pane send-keys \u003Cpane_id> ctrl+c`)\nand relaunch through `agent start`.\n\n## Invariants\n\n- Scope every action to the caller workspace unless the user names another\n  target.\n- Resolve caller context from `HERDR_WORKSPACE_ID`, `HERDR_TAB_ID`, and\n  `HERDR_PANE_ID` (injected into every herdr pane) before any focused-window\n  fallback.\n- Address workers by ids parsed from command JSON — agent name for `agent …`\n  verbs, `w2:t3` \u002F `w2:p4` for tab and pane verbs — never by guessed position.\n- Pass `--no-focus` on every creating verb (`tab create`, `workspace create`,\n  `worktree create`, `pane split`); use focus verbs only when the user asks.\n- Retire every worker you launch when its assignment and planned integration\n  follow-ups are finished (see Retire workers).\n\n## Preflight\n\nInspect the daemon, integrations, and caller context:\n\n```bash\nrtk herdr status                 # server running + socket path\nrtk herdr integration status     # selected worker runtime must show `current`\nrtk herdr pane current --current # caller pane \u002F tab \u002F workspace ids\nrtk herdr agent list             # agents already running\n```\n\nCheck\u002Finstall only the integration for each selected runtime. Reuse this\npreflight in the same workspace while the daemon and integrations are unchanged;\na new packet alone does not require repeating it.\n\n## Launch workers\n\nUse each worker runtime's configured model unless the user requests an override. Launch is\ntwo commands: create the named tab, then start the TUI in that tab's root pane.\n\n```bash\n# 1. named tab — returns .result.tab.tab_id and .result.root_pane.pane_id\nrtk herdr tab create --workspace \"$HERDR_WORKSPACE_ID\" --cwd \"$PWD\" \\\n  --label \"opus: fix loops\" --no-focus\n\n# 2. worker TUI in that tab's root pane; native flags follow `--`\nrtk herdr agent start fix-loops --kind claude --pane \u003Croot_pane_id> -- \\\n  --dangerously-skip-permissions \"\u003Cpacket>\"\n\nrtk herdr agent start audit-auth --kind codex --pane \u003Croot_pane_id> -- \\\n  --yolo\n```\n\nCapture `tab_id`, `pane_id`, and the agent name in the registry — retiring and\nscreen reads need all three.\n\nClaude always launches with `--dangerously-skip-permissions` and Codex with\n`--yolo` — workers run unattended and must not stall on permission prompts.\nPlan-first runs add Claude's `--permission-mode plan`; the flags compose (see\nPlan-first delegation).\n\n`agent start` returns success only after herdr detects the agent ready, so a\nnon-zero exit is the launch failure — read the tab's root pane\n(`rtk herdr pane read \u003Cpane_id> --source visible`) before retrying. Confirm the\nlabel stuck with `rtk herdr tab list --workspace \"$HERDR_WORKSPACE_ID\"`; if the\ntab shows a default label, restore it:\n\n```bash\nrtk herdr tab rename \u003Ctab_id> \"opus: fix loops\"\n```\n\n## Sending prompts to running TUIs\n\nPrefer passing the initial packet as launch argv (shown above) — the session\nstarts working immediately and skips the TUI-ready race. Exception: Codex\nplan-first launches bare (see Plan-first delegation).\n\nFor any follow-up, use `agent prompt` — it submits text plus Enter atomically,\nhonoring the pane's live bracketed-paste mode, and `--wait` blocks until the\nworker settles:\n\n```bash\nrtk herdr agent prompt fix-loops \"\u003Cfollow-up prompt>\" --wait --timeout 300000\n```\n\nA trailing `\\n` in `pane send-text` does not submit — a TUI renders it as a\nsoft newline and the prompt sits unsubmitted. An unconfirmed send is not\ndelivered: if `--wait` returns `agent_prompt_stalled`, the worker never changed\nstate — read the screen and resend.\n\n## Plan-first delegation (opt-in)\n\nPlan-first runs only when the user activates it — an explicit ask (\"plan\nfirst\", \"plan mode\") or a `--plan-mode` flag on the invocation. The default\ndelegation is direct: launch and run hands-off. Investigation complexity alone\ndoes not add a planning approval step.\n\nOnce activated, the worker plans, the controller reviews and accepts, then it\nruns hands-off. The launch flags, shift+tab sequences, status checks, and\nacceptance menus are exact and differ per TUI. **Read\n[references\u002Fplan-mode.md](references\u002Fplan-mode.md) in full before launching a\nplan-first worker.**\n\n## Delegation packets\n\nSend each worker prompt as a standalone contract. Include:\n\n- repo path and exact objective\n- worker role and model\n- execution mode: direct (default) or plan-first (user-activated)\n- files, packages, or surfaces in scope\n- files and behaviors explicitly out of scope\n- claimed files or work slice, to avoid conflicts\n- dependencies and the current interface\u002Fcontract the worker can rely on\n- expected evidence needed for this claim: changed files, commands with results\n  and checked inputs, relevant artifacts, and remaining uncertainty\n- verification ownership: worker checks, controller integration checks, and\n  any final delivery checks owned by the enclosing workflow\n- stop conditions: unexpected code shape, repeated command failure, auth\u002Fmodel\n  blocker, or need for out-of-scope edits\n\nAssign coherent outcomes that can proceed independently. If a consumer depends\non an unsettled interface, resolve that interface first or keep producer and\nconsumer under one owner. File count alone is not a reason to split work.\nTell workers they share the codebase, must preserve others' changes, and must\nreport interface changes before dependent work proceeds. Reuse the same worker\nfor related integration fixes; send the changed contract and remaining work\ninstead of a fresh discovery assignment.\n\n## Worktree isolation\n\nWhen workers must edit overlapping files in parallel, give each an isolated\nworktree — herdr manages them natively, as its own labeled workspace:\n\n```bash\nrtk herdr worktree create --workspace \"$HERDR_WORKSPACE_ID\" \\\n  --branch \u003Cslug> --label \"\u003Cslug>\" --no-focus --json\n```\n\nCreate the worker's tab inside that workspace (`tab create --workspace\n\u003Cworktree_workspace_id>`) so its cwd is the isolated checkout.\n\n## Track workers\n\nOrchestrations are long-running — worker slices take minutes to hours, and a\nworker is never abandoned because a wait expired. Block on herdr's native agent\nstatus in **check-in intervals** of 3–5 minutes (sized to the slice — longer\nfor heavier slices) instead of polling screens:\n\n```bash\nrtk herdr agent wait fix-loops --until done --timeout 300000     # completion check-in\nrtk herdr agent wait fix-loops --until blocked --timeout 300000  # question or menu\nrtk herdr pane wait-output \u003Cpane_id> --match \"\u003Ctext>\" --timeout 300000\n```\n\nController reads never mark a tab seen, so an unfocused worker settles as\n`done`, not `idle` — wait on `done`. `--timeout` is the check-in interval,\nnever a deadline on the worker. On expiry, read the screen\n(`rtk herdr agent read fix-loops --source recent-unwrapped --lines 120`) and\nre-enter the wait — loop until the worker reaches a terminal state, asks a\nquestion, or a stop condition fires. When a reported status looks wrong, debug\ndetection with `rtk herdr agent explain \u003Cpane_id> --json`.\n\nMaintain a compact registry in the existing task notes or handoff: controller\nidentity; worker agent name, tab label, role, model; workspace\u002Ftab\u002Fpane ids;\nobjective sent and start time; status (starting, planning, plan-review,\nplan-accepted, running, blocked, reported, verified, retired); claimed files or\nwork slice; worker-reported commands and results; controller verification\nperformed; final disposition (accepted, rejected, superseded, or blocked).\n\nKeep the tab label current as a slice changes, and announce milestones without\nstealing focus:\n\n```bash\nrtk herdr tab rename \u003Ctab_id> \"opus: fix loops (verifying)\"\nrtk herdr notification show \"Workers done\" --body \"2\u002F2 verified\" --sound done\n```\n\n## Verify worker output\n\nTreat worker output as untrusted until verified. Monitor and verify without\nchanging focus:\n\n- Read worker tabs read-only (`agent read \u003Cname> --source recent-unwrapped\n  --lines 200`); ask a worker for a concise status summary when output is\n  unclear.\n- Re-open cited files locally to verify high-impact findings. For visual output,\n  open the delivered images and their named visual references side by side;\n  file counts, dimensions, and a worker's verdict do not establish visual fit.\n  Check one representative image before expanding an expensive generation batch.\n- Inspect command results, exit status, checked inputs, and evidence paths.\n  Reuse trustworthy worker evidence for unchanged inputs; rerun missing, stale,\n  contradictory, or unverifiable checks. The controller runs integration checks\n  the worker did not cover, plus any checks required by project policy. A worker\n  handoff alone does not invalidate evidence or require a second full suite.\n- Review the final diff before accepting any worker patch.\n- If a worker edits outside its claim, pause integration and decide: accept,\n  request user-approved cleanup, or supersede with controller edits.\n\nWhen `--lines` stops revealing more of a completed response, the TUI is on the\nterminal's alternate screen and those rows are gone. Ask the worker to write\nits full report as Markdown in a temp directory and reply with the path, then\nread the file.\n\n## Retire workers\n\nA delegation ends with the worker retired — tab closed. Keep a reported worker\navailable while reviewing or integrating its outcome when related follow-ups\nare expected. Retire it once the disposition is recorded and that work is done:\n\n```bash\nrtk herdr tab close \u003Ctab_id>\n```\n\nClosing the tab ends the TUI session and its scrollback, so record what the\nregistry needs first — report text, cited line refs, command output. Files,\ndiffs, and worktrees survive on disk.\n\nA worker stays open while mid-run, blocked, awaiting planned integration\nfollow-ups, while its screen is evidence for an unresolved failure, or when the user asks to inspect it —\nrecord the reason in the registry. The orchestration is complete only when\n`rtk herdr agent list` shows none of this controller's workers still running:\nevery worker retired, or its open tab justified in the registry.\n\n## Stop conditions\n\nStop and report instead of improvising when:\n\n- herdr rejects a valid workspace, tab, or pane ref, or `rtk herdr status`\n  shows no running server.\n- a worker TUI rejects the model alias, auth state, working directory, or a\n  startup flag — report the exact blocker, and get user approval before\n  downgrading a model or switching tools.\n- authentication blocks the TUI.\n- a worker's status stays `unknown` while output scrolls and\n  `agent explain` shows no matched rule — detection is broken or the pane is\n  running a headless process.\n- a plan-mode status line or acceptance menu cannot be confirmed via\n  `agent read` or `pane wait-output`, or a worker's plan stays out of scope\n  after a re-planning round.\n- workers need overlapping edits the controller cannot integrate safely.\n- a task needs focus-changing herdr verbs the user has not approved.\n","# herdr Orchestration\n\nThe top-level agent is the **controller** (Codex, Claude, Fable, or another);\nit delegates to **worker** TUIs that gather evidence, draft bounded patches,\nrun tests, and report. The controller owns assignment, state, conflict\ncontrol, verification, integration, and the final user-facing answer. herdr is\nthe substrate: each worker TUI owns a named tab, and the socket CLI (`herdr …`)\ngives the controller placement, input, screen reads, and native agent-status\nwaits.\n\n## One worker, one named tab\n\nEvery worker gets its own tab, labeled at creation with `tab create --label`.\nThe tab bar is the controller's dashboard: a labeled tab says which model is\nrunning which slice, and stays readable no matter how many workers are live.\n\nTabs also cost no screen area. A split pane divides the caller's screen with\nevery worker, and on a laptop the third worker leaves every pane too narrow to\nread. Split a pane only when the user explicitly asks to watch a worker beside\nthe caller.\n\nTwo names per worker, both required at launch:\n\n- **tab label** — `\u003Cmodel>: \u003Cslice>`, e.g. `opus: fix loops`,\n  `codex: audit auth`. Free text; keep it short, tab bars truncate.\n- **agent name** — the slice as a slug, e.g. `fix-loops`. Must match\n  `[a-z][a-z0-9_-]{0,31}` and be unique among live agents. Every `agent …` verb\n  accepts it in place of a pane id.\n\n## Workers are TUIs — no headless runners\n\nA worker is an interactive TUI — `claude` or `codex` — started with\n`herdr agent start`, which validates the agent's identity and returns only once\nherdr sees it ready for input. herdr's agent-state integrations hook those\nTUIs, so `agent wait`, `agent list`, and blocked\u002Fdone detection exist only\nwhile a real TUI is on screen.\n\nHeadless runners — `claude -p`, `codex exec`, anything that\nstreams JSON events into a pane — never report state, so waits never fire and\nthe delegation dies silently. A worker tab filling with raw JSON event lines is\na broken delegation: interrupt it (`rtk herdr pane send-keys \u003Cpane_id> ctrl+c`)\nand relaunch through `agent start`.\n\n## Invariants\n\n- Scope every action to the caller workspace unless the user names another\n  target.\n- Resolve caller context from `HERDR_WORKSPACE_ID`, `HERDR_TAB_ID`, and\n  `HERDR_PANE_ID` (injected into every herdr pane) before any focused-window\n  fallback.\n- Address workers by ids parsed from command JSON — agent name for `agent …`\n  verbs, `w2:t3` \u002F `w2:p4` for tab and pane verbs — never by guessed position.\n- Pass `--no-focus` on every creating verb (`tab create`, `workspace create`,\n  `worktree create`, `pane split`); use focus verbs only when the user asks.\n- Retire every worker you launch when its assignment and planned integration\n  follow-ups are finished (see Retire workers).\n\n## Preflight\n\nInspect the daemon, integrations, and caller context:\n\n```bash\nrtk herdr status                 # server running + socket path\nrtk herdr integration status     # selected worker runtime must show `current`\nrtk herdr pane current --current # caller pane \u002F tab \u002F workspace ids\nrtk herdr agent list             # agents already running\n```\n\nCheck\u002Finstall only the integration for each selected runtime. Reuse this\npreflight in the same workspace while the daemon and integrations are unchanged;\na new packet alone does not require repeating it.\n\n## Launch workers\n\nUse each worker runtime's configured model unless the user requests an override. Launch is\ntwo commands: create the named tab, then start the TUI in that tab's root pane.\n\n```bash\n# 1. named tab — returns .result.tab.tab_id and .result.root_pane.pane_id\nrtk herdr tab create --workspace \"$HERDR_WORKSPACE_ID\" --cwd \"$PWD\" \\\n  --label \"opus: fix loops\" --no-focus\n\n# 2. worker TUI in that tab's root pane; native flags follow `--`\nrtk herdr agent start fix-loops --kind claude --pane \u003Croot_pane_id> -- \\\n  --dangerously-skip-permissions \"\u003Cpacket>\"\n\nrtk herdr agent start audit-auth --kind codex --pane \u003Croot_pane_id> -- \\\n  --yolo\n```\n\nCapture `tab_id`, `pane_id`, and the agent name in the registry — retiring and\nscreen reads need all three.\n\nClaude always launches with `--dangerously-skip-permissions` and Codex with\n`--yolo` — workers run unattended and must not stall on permission prompts.\nPlan-first runs add Claude's `--permission-mode plan`; the flags compose (see\nPlan-first delegation).\n\n`agent start` returns success only after herdr detects the agent ready, so a\nnon-zero exit is the launch failure — read the tab's root pane\n(`rtk herdr pane read \u003Cpane_id> --source visible`) before retrying. Confirm the\nlabel stuck with `rtk herdr tab list --workspace \"$HERDR_WORKSPACE_ID\"`; if the\ntab shows a default label, restore it:\n\n```bash\nrtk herdr tab rename \u003Ctab_id> \"opus: fix loops\"\n```\n\n## Sending prompts to running TUIs\n\nPrefer passing the initial packet as launch argv (shown above) — the session\nstarts working immediately and skips the TUI-ready race. Exception: Codex\nplan-first launches bare (see Plan-first delegation).\n\nFor any follow-up, use `agent prompt` — it submits text plus Enter atomically,\nhonoring the pane's live bracketed-paste mode, and `--wait` blocks until the\nworker settles:\n\n```bash\nrtk herdr agent prompt fix-loops \"\u003Cfollow-up prompt>\" --wait --timeout 300000\n```\n\nA trailing `\\n` in `pane send-text` does not submit — a TUI renders it as a\nsoft newline and the prompt sits unsubmitted. An unconfirmed send is not\ndelivered: if `--wait` returns `agent_prompt_stalled`, the worker never changed\nstate — read the screen and resend.\n\n## Plan-first delegation (opt-in)\n\nPlan-first runs only when the user activates it — an explicit ask (\"plan\nfirst\", \"plan mode\") or a `--plan-mode` flag on the invocation. The default\ndelegation is direct: launch and run hands-off. Investigation complexity alone\ndoes not add a planning approval step.\n\nOnce activated, the worker plans, the controller reviews and accepts, then it\nruns hands-off. The launch flags, shift+tab sequences, status checks, and\nacceptance menus are exact and differ per TUI. **Read\n[references\u002Fplan-mode.md](references\u002Fplan-mode.md) in full before launching a\nplan-first worker.**\n\n## Delegation packets\n\nSend each worker prompt as a standalone contract. Include:\n\n- repo path and exact objective\n- worker role and model\n- execution mode: direct (default) or plan-first (user-activated)\n- files, packages, or surfaces in scope\n- files and behaviors explicitly out of scope\n- claimed files or work slice, to avoid conflicts\n- dependencies and the current interface\u002Fcontract the worker can rely on\n- expected evidence needed for this claim: changed files, commands with results\n  and checked inputs, relevant artifacts, and remaining uncertainty\n- verification ownership: worker checks, controller integration checks, and\n  any final delivery checks owned by the enclosing workflow\n- stop conditions: unexpected code shape, repeated command failure, auth\u002Fmodel\n  blocker, or need for out-of-scope edits\n\nAssign coherent outcomes that can proceed independently. If a consumer depends\non an unsettled interface, resolve that interface first or keep producer and\nconsumer under one owner. File count alone is not a reason to split work.\nTell workers they share the codebase, must preserve others' changes, and must\nreport interface changes before dependent work proceeds. Reuse the same worker\nfor related integration fixes; send the changed contract and remaining work\ninstead of a fresh discovery assignment.\n\n## Worktree isolation\n\nWhen workers must edit overlapping files in parallel, give each an isolated\nworktree — herdr manages them natively, as its own labeled workspace:\n\n```bash\nrtk herdr worktree create --workspace \"$HERDR_WORKSPACE_ID\" \\\n  --branch \u003Cslug> --label \"\u003Cslug>\" --no-focus --json\n```\n\nCreate the worker's tab inside that workspace (`tab create --workspace\n\u003Cworktree_workspace_id>`) so its cwd is the isolated checkout.\n\n## Track workers\n\nOrchestrations are long-running — worker slices take minutes to hours, and a\nworker is never abandoned because a wait expired. Block on herdr's native agent\nstatus in **check-in intervals** of 3–5 minutes (sized to the slice — longer\nfor heavier slices) instead of polling screens:\n\n```bash\nrtk herdr agent wait fix-loops --until done --timeout 300000     # completion check-in\nrtk herdr agent wait fix-loops --until blocked --timeout 300000  # question or menu\nrtk herdr pane wait-output \u003Cpane_id> --match \"\u003Ctext>\" --timeout 300000\n```\n\nController reads never mark a tab seen, so an unfocused worker settles as\n`done`, not `idle` — wait on `done`. `--timeout` is the check-in interval,\nnever a deadline on the worker. On expiry, read the screen\n(`rtk herdr agent read fix-loops --source recent-unwrapped --lines 120`) and\nre-enter the wait — loop until the worker reaches a terminal state, asks a\nquestion, or a stop condition fires. When a reported status looks wrong, debug\ndetection with `rtk herdr agent explain \u003Cpane_id> --json`.\n\nMaintain a compact registry in the existing task notes or handoff: controller\nidentity; worker agent name, tab label, role, model; workspace\u002Ftab\u002Fpane ids;\nobjective sent and start time; status (starting, planning, plan-review,\nplan-accepted, running, blocked, reported, verified, retired); claimed files or\nwork slice; worker-reported commands and results; controller verification\nperformed; final disposition (accepted, rejected, superseded, or blocked).\n\nKeep the tab label current as a slice changes, and announce milestones without\nstealing focus:\n\n```bash\nrtk herdr tab rename \u003Ctab_id> \"opus: fix loops (verifying)\"\nrtk herdr notification show \"Workers done\" --body \"2\u002F2 verified\" --sound done\n```\n\n## Verify worker output\n\nTreat worker output as untrusted until verified. Monitor and verify without\nchanging focus:\n\n- Read worker tabs read-only (`agent read \u003Cname> --source recent-unwrapped\n  --lines 200`); ask a worker for a concise status summary when output is\n  unclear.\n- Re-open cited files locally to verify high-impact findings. For visual output,\n  open the delivered images and their named visual references side by side;\n  file counts, dimensions, and a worker's verdict do not establish visual fit.\n  Check one representative image before expanding an expensive generation batch.\n- Inspect command results, exit status, checked inputs, and evidence paths.\n  Reuse trustworthy worker evidence for unchanged inputs; rerun missing, stale,\n  contradictory, or unverifiable checks. The controller runs integration checks\n  the worker did not cover, plus any checks required by project policy. A worker\n  handoff alone does not invalidate evidence or require a second full suite.\n- Review the final diff before accepting any worker patch.\n- If a worker edits outside its claim, pause integration and decide: accept,\n  request user-approved cleanup, or supersede with controller edits.\n\nWhen `--lines` stops revealing more of a completed response, the TUI is on the\nterminal's alternate screen and those rows are gone. Ask the worker to write\nits full report as Markdown in a temp directory and reply with the path, then\nread the file.\n\n## Retire workers\n\nA delegation ends with the worker retired — tab closed. Keep a reported worker\navailable while reviewing or integrating its outcome when related follow-ups\nare expected. Retire it once the disposition is recorded and that work is done:\n\n```bash\nrtk herdr tab close \u003Ctab_id>\n```\n\nClosing the tab ends the TUI session and its scrollback, so record what the\nregistry needs first — report text, cited line refs, command output. Files,\ndiffs, and worktrees survive on disk.\n\nA worker stays open while mid-run, blocked, awaiting planned integration\nfollow-ups, while its screen is evidence for an unresolved failure, or when the user asks to inspect it —\nrecord the reason in the registry. The orchestration is complete only when\n`rtk herdr agent list` shows none of this controller's workers still running:\nevery worker retired, or its open tab justified in the registry.\n\n## Stop conditions\n\nStop and report instead of improvising when:\n\n- herdr rejects a valid workspace, tab, or pane ref, or `rtk herdr status`\n  shows no running server.\n- a worker TUI rejects the model alias, auth state, working directory, or a\n  startup flag — report the exact blocker, and get user approval before\n  downgrading a model or switching tools.\n- authentication blocks the TUI.\n- a worker's status stays `unknown` while output scrolls and\n  `agent explain` shows no matched rule — detection is broken or the pane is\n  running a headless process.\n- a plan-mode status line or acceptance menu cannot be confirmed via\n  `agent read` or `pane wait-output`, or a worker's plan stays out of scope\n  after a re-planning round.\n- workers need overlapping edits the controller cannot integrate safely.\n- a task needs focus-changing herdr verbs the user has not approved.\n",{"name":5,"metadata":38,"description":7,"disable-model-invocation":42},{"author":39,"github":40,"repository":41},"Pedro Nauck","https:\u002F\u002Fgithub.com\u002Fpedronauck","https:\u002F\u002Fgithub.com\u002Fpedronauck\u002Fskills",true,"main","65613632bb94072e27fc5015d17387e28a870111",".agents\u002Fskills\u002Fherdr-orchestration",187,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy","https:\u002F\u002Fcompozy.com","https:\u002F\u002Fgithub.com\u002Fcompozy","An OS for AI agents","2026-11-15 03:55:11",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":42},[54,57,60],{"tool":55,"command":56},"npx","npx skills add compozy\u002Fcompozy --skill herdr-orchestration",{"tool":58,"command":59},"bunx","bunx skills add compozy\u002Fcompozy --skill herdr-orchestration",{"tool":61,"command":62},"pnpm","pnpm dlx skills add compozy\u002Fcompozy --skill herdr-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fherdr-orchestration\u002FSKILL.md",[65,71],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"agents\u002Fopenai.yaml","REFERENCE","参考文档",236,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fherdr-orchestration\u002Fagents\u002Fopenai.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fplan-mode.md",7958,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fherdr-orchestration\u002Freferences\u002Fplan-mode.md",[76,107,127,149,160,172],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":33},"01M6MD7W312X49RNEJRKKVKTTD","security-review","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"security","security review","review","injection","authentication","code review","issues","Bash","code","xss","audit","systematic","read","reporting","cryptography","owasp","systematic review","for","use","task","when","audit security",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":33},"01M6MD5K93G1GP8VA56V2FEPZV","lesson-learned","Extract evidence-backed engineering lessons from recent changes or incidents. Use for requested reflection, lesson updates, or retiring an obsolete workflow rule.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flesson-learned\u002FSKILL.md",[],[114,115,116,102,117,118,119,120,121,122,123,124,103,125,126],"learned","lesson learned","lesson","changes","evidence","incidents","workflow","engineering","updates","extract","rule","lessons","reflection",{"skillNo":128,"name":9,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":33},"01M6MDPNH3J60VRCGTPHVTHZR8","Operate CompozyOS. Use when working with CompozyOS sessions, agents, native tools, skills, tasks, Loops, Goals, Terminal, desktops and windows, automation, extensions, or configuration. Don't use for unrelated projects.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fskills\u002Fcompozy\u002FSKILL.md",[],[9,133,134,135,136,102,137,30,103,138,139,140,141,142,143,144,145,146,147,148,105],"sessions","windows","projects","operate","runtime","automation","tasks","extensions","with","loops","unrelated","goals","native","terminal","configuration","Tools",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":33},"01M6MDPHKNPQHJ1TF21E1HSFNF","remotion-upgrade","Upgrade Remotion, and related packages","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-upgrade\u002FSKILL.md",[],[156,157,158,159],"remotion upgrade","upgrade","Remotion","packages",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":33},"01M6MDPFT91ZWC7Z09MRNZPAJG","remotion-studio","Preview a Remotion video","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-studio\u002FSKILL.md",[],[167,168,158,169,170,171],"studio","remotion studio","Video","preview","remotion video",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":33},"01M6MDPD5XDZPYB5NAZGKMPXWC","remotion-saas","Build an app with Remotion","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-saas\u002FSKILL.md",[],[179,180,158,141,181,182],"saas","remotion saas","app","build"]