herdr-core-delegation
Skill7 starsChanged 4 days agoMITView on GitHub
herdr-core commands (`hc run`, `hc send`, `hc wait`) to launch, brief, wait on and read a visible `claude` or `opencode` in a terminal of its own, shown as a tab by herdr-app. TRIGGER when: `herdr-delegation` detected `hc` (`HC_TERMINAL_ID` set, the terminal has no parent) and a visible session is being launched, briefed, waited on, read or unblocked. SKIP when: `HC_TERMINAL_ID` is unset (`herdr-tui-delegation`); the hc terminal has a parent; outside herdr. Load `herdr-delegation` alongside.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/skillsword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/skills★ 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-delegationSkill
- herdr-tui-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
Files
Delegating through herdr-core
herdr-core, CLI hc (also herdr-core), runs terminals that outlive whoever
views them; herdr-app, when it is open, only shows them, in spaces and tabs.
HC_TERMINAL_ID holds the session's terminal address. The policy is
herdr-delegation; this skill holds the commands.
The installed binary is the authority on its syntax: hc --skill (and
herdr-app --skill) for the full guide, hc <command> --help for one
command.
Loop guard
hc records the terminal a terminal was started from as its parent, which
the detection in herdr-delegation reads: a session whose terminal has one
delegates through its sub-agent tool. Herdr TUI's environment marker does not
work here: hc run has no --env, and wrapping the client in env makes
hc see the agent as env.
Launch
- Pick a name that
hc lsdoes not already show. Start the client,
claudeoropencodeasherdr-delegationpicks, withhc run, in the directory and space it picks, and wait until it is ready for input, since a brief sent earlier can be dropped. Flags after the client go to it:hc get "$HC_TERMINAL_ID" --json | jq -r '.labels["herdr.space"] // empty' hc run --bg --name fix-login-timeout --cwd <dir> --outlive-parent --no-notify \ --label herdr.space=<space-id> -- claude --model <model> hc wait fix-login-timeoutThe first command prints the current space, the one for the main session's repo. For another repo, find its space from what
hc --skilldocuments; when it gives no way to find or create one, use the current space and tell the user. The label puts it in a tab of that space in herdr-app; when the first command prints nothing, there is no app window to show it in: drop the label, and tell the user to open it withhc attach <name>. Usehc run, neverherdr-app do tab.new: hc records the main session as its parent, which the loop guard reads.--outlive-parentleaves its lifetime to the user rather than to the main session's tab, and--no-notifykeeps hc from typing notes into the main session's prompt, which the wait and the report already cover.Type the brief into it, as a background command:
hc send --wait --timeout 3600 fix-login-timeout "<brief>"It waits for the turn the brief started, so it cannot match the idle state the agent has not left yet. A
timeoutis a check-in: wait again withhc wait <name>. Anot_startedmeans read the screen before deciding: a resent brief may arrive twice.The brief gives the agent the command that renames its tab once its PR or MR is open, its terminal being
$HC_TERMINAL_ID: take it from whathc --skilldocuments for the name herdr-app shows. When it gives none, the brief leaves the rename out.Under OpenCode, read the report once it returns:
hc read fix-login-timeout --lines 200 | grep -o 'REPORT: .*' | tail -n 1
While it runs
- Read its screen with
hc read <name> --lines 200. - Relay into it, under OpenCode, as a background command:
hc send --wait --timeout 3600 <name> "[relay] <text>". - Blocked: a wait returns
blocked. Never answer it withhc keysorhc send --force. Once the user says it is unblocked, wait again withhc wait <name>. - End the terminal this flow created with
hc kill <name>thenhc rm <name>whenherdr-delegationsays to, whateverhc --skillsays about cleaning up helpers once they report. - Reopen it for a follow-up with
hc runin the same worktree, as in the launch, ending in-- claude --model <model> --continue, or-- opencode --model <model> --session <id>. - Never touch a terminal it did not create:
hc lslists the user's other live work too. - Never
hc server stoporrestart, which hit every terminal and park the kept ones.
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.

