herdr-tui-delegation
Skill7 starsChanged 5 days agoMITView on GitHub
Herdr TUI commands (`herdr pane`, `herdr workspace`, `herdr tab`, `herdr agent`) to find the target repo's workspace, then launch, brief, wait on and read a visible `claude` or `opencode` in a tab of its own. TRIGGER when: `herdr-delegation` detected `herdr` (`HERDR_ENV=1`, no `HC_TERMINAL_ID`) and a visible session is being launched, briefed, waited on, read or unblocked. SKIP when: `HC_TERMINAL_ID` is set (`herdr-core-delegation`); `DELEGATED_AGENT` is set; outside herdr. Load `herdr-delegation` alongside.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/claudeword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/claude★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- config-conventionsSkill
- contributing-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-pr-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- release-supply-chain-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- topic-splittingSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
When no workspace holds the repo, create one instead, which comes with its tab, then label that tab (.result.tab.tab_id) with the agent's …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Delegating through Herdr TUI
Herdr TUI is a terminal multiplexer whose server keeps workspaces, tabs and
panes alive, driven by herdr tab … and herdr agent …. The policy is
herdr-delegation; this skill holds the commands.
The installed binary is the authority on its syntax: herdr --skill for the
full guide, herdr tab <command> --help and herdr agent <command> --help
for one command.
Loop guard
A tab this flow opens carries DELEGATED_AGENT=1, which the detection
in herdr-delegation reads: the session in it delegates through its sub-agent
tool, never through another tab.
Launch
- Pick a name that
herdr agent listdoes not already show. Find the workspace of a repo other than the main session's,
dirbeing the directory the agent starts in. The first command lists the workspaces with a pane in that repo or its worktrees, the second those labelled with the repo's name:common() { git -C "$1" rev-parse --path-format=absolute --git-common-dir 2>/dev/null; } key=$(common "$dir"); repo=$(basename "$(dirname "$key")") herdr pane list | jq -r '.result.panes[] | [.workspace_id, .cwd] | @tsv' | while IFS=$'\t' read -r ws cwd; do [ "$(common "$cwd")" = "$key" ] && echo "$ws"; done | sort -u herdr workspace list | jq -r --arg l "$repo" '.result.workspaces[] | select(.label == $l) | .workspace_id'Without
--path-format=absolute, git prints.gitrelative to each pane, which matches every pane at the root of any repo.Open a tab in that workspace, or in
$HERDR_WORKSPACE_IDfor the main session's repo, labelled with the agent's name, with the marker set and the user's focus kept where it is:herdr tab create --workspace <workspace-id> --cwd "$dir" \ --label fix-login-timeout --env DELEGATED_AGENT=1 --no-focusWhen no workspace holds the repo, create one instead, which comes with its tab, then label that tab (
.result.tab.tab_id) with the agent's name:herdr workspace create --cwd "$dir" --label "$repo" \ --env DELEGATED_AGENT=1 --no-focus herdr tab rename <tab-id> fix-login-timeoutStart the client in the tab's pane (
.result.root_pane.pane_id, from either command),--kind claudeor--kind opencodeasherdr-delegationpicks. Flags after--go to the client:herdr agent start fix-login-timeout --kind claude --pane <pane-id> -- --model <model>Type the brief into it, as a background command:
herdr agent prompt fix-login-timeout "<brief>" --wait--waitmatches the first state observed after submission, so it cannot match the idle state the agent has not left yet.The brief gives the agent the command that renames its tab once its PR or MR is open. Herdr injects
HERDR_TAB_IDinto every pane it manages, so the agent names its own tab without being told its id:herdr tab rename "$HERDR_TAB_ID" "fix-login-timeout (#123)"Under OpenCode, read the report once it returns:
herdr agent read fix-login-timeout --source recent-unwrapped --lines 200 | grep -o 'REPORT: .*' | tail -n 1
While it runs
- Read its screen with
herdr agent read <name> --source recent-unwrapped. - Relay into it, under OpenCode, as a background command:
herdr agent prompt <name> "[relay] <text>" --wait. - Blocked:
agent startreturnsagent_not_ready, or a wait returnsblocked. Never answer it withherdr pane send-keysorsend-text. Once the user says it is unblocked, wait again withherdr agent wait <name>. - Close the tab this flow created with
herdr tab close <tab-id>whenherdr-delegationsays to. Never close a pane on its own, never touch a tab, pane or agent it did not create, and neverherdr server stop. - Reopen it for a follow-up with a new tab in the same worktree, as in
the launch,
--labelcarrying the PR number when it has one, and-- --model <model> --continuetoherdr agent start, or--session <id>in place of--continueunder OpenCode.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

