herdr-tui-worker
Skill4 starsChanged 5 days agoMITView on GitHub
Execute a bounded assignment as a Herdr TUI orchestration worker (`herdr` CLI / `HERDR_PANE_ID`). Use only when the assigning agent or user explicitly specifies the herdr-tui-worker skill; do not activate automatically.
- Commits and pushes
In this repository3 other files it gives its agents.
- herdr-orchestratorSkill
- herdr-tui-orchestratorSkill
- herdr-workerSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
When a pane address is needed and the Codex environment omitted it, look up the worker name from your handoff with herdr agent get …
- Very specific: line 18
Read the full handoff spec (under ${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/tasks/<worker-name>.md or the path in your …
- Very specific: line 19
Verify your working directory (git rev-parse --show-toplevel and git branch --show-current) matches your assigned centralized worktree …
- Very specific: line 20
Keep scratch files, logs, lockfiles, reports, and reference screenshots inside …
- Distinctive: line 24
Commit cleanly onto your assigned branch only.
- Very specific: line 26
Check if origin/<base> (e.g.
- Very specific: line 28
When a PR is requested, check gh auth status and gh pr list --head <branch> --state all:
- Very specific: line 29
If
ghis authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + … - Very specific: line 33
Do not spawn sub-agents (herdr workspace create, herdr tab create, herdr pane split, herdr agent start), focus-steal tabs/workspaces, or …
- Very specific: line 46
Write blocked --needs "<what would unblock you>" when you need a decision or dependency.
- Very specific: line 48
If the first inbox write fails, read the orchestrator target from status/roster.json and send a single BLOCKED notification with the write …
≈ “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
Herdr TUI Worker (herdr CLI)
Activate only when the assigning agent or user explicitly specifies herdr-tui-worker. Follow higher-priority host rules and the assignment; this skill grants no extra permissions.
When a pane address is needed and the Codex environment omitted it, look up the worker name from your handoff with herdr agent get <worker-name>. Verify the assigned worktree and recent handoff text with herdr pane read <pane_id> --lines 40 before using the address.
Worker Rules
- Stay strictly within your centralized worktree and assigned boundaries.
- Read the full handoff spec (under
${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/tasks/<worker-name>.mdor the path in your prompt), relevant repo docs/code, and any referenced screenshots under.../assets/before editing. - Verify your working directory (
git rev-parse --show-toplevelandgit branch --show-current) matches your assigned centralized worktree (${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/worktrees/<worker-name>) and branch (<type>/<topic>). Never write to or modify the user's main checkout, sibling worktrees under.../worktrees/, or writable symlinks pointing back into the main checkout. - Keep scratch files, logs, lockfiles, reports, and reference screenshots inside
${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/{logs,locks,reports,assets}/(or/tmp)—never copy reference screenshots or temp artifacts into your git worktree unless explicitly instructed. - Edit only your owned files inside your assigned worktree. Flag missing credentials, missing gitignored dependencies, or cross-boundary changes to the orchestrator instead of guessing.
- Read the full handoff spec (under
- Keep your branch isolated & always check remote git updates before pushing/PRs.
- Commit cleanly onto your assigned branch only. Never switch branches, merge into
mainor another worker's branch, push tomain, or commit secrets, caches, or weights. - Before any remote push or PR action, always run
git fetch originfirst:- Check if
origin/<base>(e.g.origin/main) advanced; if conflicts exist, merge/rebaseorigin/<base>cleanly inside your own worktree and re-run all verification checks before pushing. - Push your branch and verify
git ls-remote origin refs/heads/<branch>matchesHEAD. - When a PR is requested, check
gh auth statusandgh pr list --head <branch> --state all:- If
ghis authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + verification>", using a/tmp--body-filefor clean quoting, or update an existingOPENPR) and verify its URL andmergeablestate. - If
ghis missing/unauthenticated: Record the GitHub compare URL along with a ready-to-paste PR title and concise summary.
- If
- Check if
- Commit cleanly onto your assigned branch only. Never switch branches, merge into
- No unauthorized delegation or layout changes.
- Do not spawn sub-agents (
herdr workspace create,herdr tab create,herdr pane split,herdr agent start), focus-steal tabs/workspaces, or stopherdr serverunless explicitly instructed.
- Do not spawn sub-agents (
- Supervise long-running jobs in one blocking bash monitor (zero LLM polling).
- For multi-minute/hour builds, trainings, or cloud/GPU runs, never poll in repeated short
sleeptool calls. Detach the runner undernohup setsid(withflockif sharing a resource) and watch it in one blocking bash loop — follow long-running-monitor.md.
- For multi-minute/hour builds, trainings, or cloud/GPU runs, never poll in repeated short
- Record status in the inbox; do not prompt the orchestrator for progress.
- Your status lives in
<state-dir>/status/<worker-name>.jsonplus an append-only<worker-name>.log. Write it only with the inbox script named in your handoff (normally<skills-dir>/herdr-tui-orchestrator/scripts/herdr-tui-inbox.sh), run from inside your worktree so it records your HEAD:"$INBOX" write "$STATE_DIR" <worker-name> working --summary "jest running on abc123" --check build=pass --check jest=pending "$INBOX" write "$STATE_DIR" <worker-name> blocked --summary "SSO user sees zero workspaces" --needs "a workspace visible to the SSO user" "$INBOX" write "$STATE_DIR" <worker-name> complete --summary "build+jest pass; report written" --check jest=pass - Writing is free: nobody is woken by
workingupdates. Writeworkingwhen you start (and again on each follow-up), then after real milestones (build passed, check started or finished). Keep--summaryto one line. Put details in your report, not the status. - Write
blocked --needs "<what would unblock you>"when you need a decision or dependency; a watcher wakes the orchestrator for it. Record cross-worker dependencies the same way, naming the other worker. Use--pending "<item> (owner: <name>)"for work still outstanding, and ask the orchestrator to acknowledge reassignment before handing off an unfinished check. - Write
completelast: after your assigned checks, artifacts, commits, requested delivery, and final report (<state-dir>/reports/<worker-name>.md) are done. The script refusescompletewhile a check ispendingorfail, tracked files are uncommitted, or the report is missing or older than the current round; fix the cause or stayworking. Mark known baseline failures as--check <name>=baselineand explain them in the report. Distinguish worker-branch evidence from integrated-build evidence there. Do not keep working aftercomplete; if you must, writeworkingfirst. - If the first inbox write fails, read the orchestrator target from status/roster.json and send a single BLOCKED notification with the write error via
herdr agent prompt. If that also fails, surface both errors in your pane. A fallback report in /tmp alone cannot notify the parent. - Otherwise only prompt the orchestrator directly (
herdr agent prompt <orchestrator-target> "<worker-name> BLOCKED|COMPLETE — <one line>") when the handoff says no inbox exists. If the script is unavailable on your host, write the same JSON fields (worker, state, rev, worktree, checks, pending, needs, summary, seq, at, working_since) atomically (temp file +mv) and append a<state> [at=<epoch>]: <summary>line to the log. - Do not exit your agent session after reporting: Release any billable remote compute (
colab stop, cloud VMs) and lockfiles, then remain parked (idlein the assigned pane) so follow-up revisions keep your full context warm.
- Your status lives in
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.

