/comitatus:herd-setup [--local | --project]from comitatus
Use when herdr or git commands trigger repeated permission prompts inside a herd, or when the user asks to allowlist, pre-approve, or stop being prompted for herdr verbs.
Ships in comitatus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill configures Claude Code's command allowlist for native herdr verbs. It changes settings only when the user runs it, and it never removes an existing rule.
Resolve ../../scripts/herd-setup.js relative to this SKILL.md and run it:
node <resolved-plugin-root>/scripts/herd-setup.js
| Scope | Flag | File |
|---|---|---|
| User (default) | none | ~/.claude/settings.json |
| Machine, gitignored | --local | ~/.claude/settings.local.json |
| Team-wide, committed | --project | .claude/settings.json |
Every scope gets the same rules, because no rule names a machine-specific path.
It adds:
agent list/get/read/explainpane list/get/current/read/wait-outputtab list, workspace list, worktree listherdr status, integration statusagent prompt, agent wait, agent rename.tab create/rename/focus/close, workspace create/close, worktree create/open/remove.git fetch, git remote, and read-only git status and git branch.It never adds:
herdr agent start. Arguments after -- reach the agent CLI unchanged and can include permission-bypass flags, so each launch stays a human approval.herdr pane run, herdr pane send-keys, herdr agent send-keys. These are raw shell and keystroke injection.git branch -D, git reset, git checkout, git push, git merge, git worktree remove. These are irreversible or change history.node, interpreter, or helper-script rule.Re-running is idempotent. It warns when a rule it adds is shadowed by an existing deny or ask entry.
Upgrading from comitatus 1.x: the old per-verb rules for the 1.x helper script (herd.js) stay in your settings, because the script never deletes rules. 2.0.0 no longer ships or updates the file they point to, though an old copy may still sit on disk. Remove the rules by hand.
Do not run the script for Codex. Codex runs commands in a sandbox that blocks the herdr socket, so a native call needs a request to run outside it (sandbox_permissions set to require_escalated; see Permissions in the herdr skill). Codex reads its rules from $CODEX_HOME/rules/default.rules, and an allow rule lets that request run without a prompt. Before suggesting a rule, check whether the existing rules already allow the command with codex execpolicy check --rules <file> -- <command>. Show the user these lines to add themselves; never edit the file for them.
prefix_rule(pattern=["herdr", "agent", "prompt"], decision="allow")
prefix_rule(pattern=["herdr", "agent", "list"], decision="allow")
prefix_rule(pattern=["herdr", "agent", "get"], decision="allow")
prefix_rule(pattern=["herdr", "agent", "read"], decision="allow")
prefix_rule(pattern=["herdr", "agent", "wait"], decision="allow")
Launching agents: an agent that launches others may also need ["herdr", "tab"], ["herdr", "worktree"] and ["herdr", "workspace"].
Old 1.x rules: rules that name a versioned .../comitatus/<version>/skills/herdr/scripts/herd.js path are obsolete, and the user can remove them by hand.
comitatus mail: a Codex agent that sends mail needs write access to the mail drop. Grant it per launch, with no config change:
codex -c 'sandbox_workspace_write.writable_roots=["<root>/mail"]'
<root> is $COMITATUS_HOME, or ~/.comitatus. The user may instead add the same writable_roots entry to their Codex config.
No message bodies: a rule saved with a message body inside it matches only that one message, so it is safe to delete.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/herdrUse when running inside herdr (HERDR_ENV=1) to manage its worktrees, workspaces, panes, coding agents, messages, or state, or to launch, brief, message, or coordinate a herd of agents./mailUse when you need to find another Claude or Codex agent running on this machine, or send it a message, inside herdr or not./teamsUse when asked to send, post, read or reply in a Microsoft Teams chat or meeting chat, including agent-to-agent messages across machines, or when the Microsoft 365 connector's `teams_send_chat_message` fails for lack of the `ChatMessage.Send` scope. Sends go through `pwsh` with `Microsoft.Graph.Authentication`; reads can use the connector. The user supplies the chat and the tenant ID.Other plugins' skills for the same job
npx claudepluginhub flexion/claude-domestique --plugin comitatus