herdr-desktop

herdr-desktop is a skill for Claude Code, Codex from magic3007/dotfiles. It costs 57 tokens per session (1,987 once invoked), scanned A, original, MIT.

A workflow for using `hc` to start and manage background coding workers from an `omp` conversation. It checks which configured models the worker and reviewer roles actually use, collects their results, and shows them in Herdr.

In plain words
What is it for?
Use it to start `omp` workers, send them bounded coding tasks, wait for their results, verify their models, display the workers in Herdr, and clean them up.
Why use it?
It keeps the main conversation available while other agents implement, debug, test, or review work. It also prevents silently using an unexpected model or leaving background workers running.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to start omp workers, send them bounded coding tasks, wait for their results, verify their models, display the workers in Herdr, and clean them up.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magic3007/dotfiles/herdr-desktop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add magic3007/dotfiles --skill herdr-desktop
Clone the repo
git clone --depth 1 https://github.com/magic3007/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for herdr-desktop

README.md
[![agentmods](https://agentmods.dev/badge/skills/magic3007/dotfiles/herdr-desktop/github.svg)](https://agentmods.dev/skills/magic3007/dotfiles/herdr-desktop)
Your own site
<a href="https://agentmods.dev/skills/magic3007/dotfiles/herdr-desktop"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/herdr-desktop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for herdr-desktop

Your own site · 80×15
<a href="https://agentmods.dev/skills/magic3007/dotfiles/herdr-desktop"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/herdr-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01987
Opus 5.5 $0.00023 $0.00795
Sonnet 5.5 $0.00011 $0.00397
Haiku 4.5 $0.00006 $0.00199

Measured 27d ago against content hash 6c8ff861916d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

herdr-desktop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

omp/skills/herdr-desktop/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

herdr-desktop:用 hc 协调 omp 后台 worker

主对话留在当前 omp 会话。后台 worker 全部用 hc(herdr-core 0.1.16)管理。不要让用户去 Herdr 终端里操作。 所有命令已于 2026-11-02 在本机实测通过(worker t1j、t1k,主会话 t6)。下文的 t6 换成你主会话的 $HC_TERMINAL_ID。

硬约束

  • agent harness 只用 omp。不要安装或启动 Claude Code CLI、Codex CLI。

  • 模型按角色名启动,不在命令里写死 provider/model。角色定义在 ~/.omp/agent/config.yml 的 modelRoles,改模型只动那一处,本 skill 不用跟着改:

    角色 启动命令 用途
    worker omp --model worker 实现、调试、修测试
    reviewer omp --model reviewer 独立审查、第二意见

    角色名走 omp 的 modelRoles 解析(--model task、--model mafia-opus 同样能解析), 冒号后的档位写在角色值里,所以启动命令不带 --thinking。

  • 启动前先读角色实际指向哪个模型(第 0 步)。角色缺失或该模型不可用时停下告诉用户, 不要悄悄换 provider 或降档位。

0. 前置检查

which omp hc            # herdr-app 在本机不在 PATH 上;窗口在用户桌面,经 herdr-core connect 连入
hc server status        # 看 core/holder 存活;不要 stop/restart 用户的 core
omp config get modelRoles | python3 -c 'import json,sys; r=json.load(sys.stdin); print("worker  =",r.get("worker")); print("reviewer=",r.get("reviewer"))'
hc templates            # 当前为 {"templates":[]},无现成模板,直接起 omp

拿到角色指向的 provider/model 后,在 omp models list 对应 provider 段内确认它存在、 thinking 列包含角色里写的档位。omp models list 按 provider 分段输出,别的段同名不算。

冒烟确认角色真能出流量(也能暴露配额耗尽之类的静默失败):

omp -p --no-session --mode=json --model worker "reply ok" 2>&1 | grep -o '"provider":"[^"]*","model":"[^"]*"' | tail -1

回显的 provider/model 与角色一致才算通过;出现别的模型说明降级链被触发(配额、429 等), 停下告诉用户。

1. 放进 Herdr 侧边栏(同一 space)

无 herdr.space 标签的 worker 在 Herdr 里隐藏。取主会话所在 space:

SPACE=$(hc get "$HC_TERMINAL_ID" | python3 -c 'import json,sys; print(json.load(sys.stdin)["labels"].get("herdr.space",""))')

只给 herdr.space 不给 herdr.tab 时,Herdr 在该 space 新建一个 tab(实测 where 变成 frontcs2 / 2、/ 3)。Herdr 收编后 terminal 会带 keep:true,hc kill 仍然是终结。

2. 启动

hc run --bg --name impl-api --cwd /abs/project --label herdr.space=$SPACE \
  omp --model worker
hc run --bg --name review-1 --cwd /abs/project --label herdr.space=$SPACE \
  omp --model reviewer

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 123 lines · 57 tokens per session scan A 6c8ff861916d

Subscribe to this mod's changes

herdr-desktop is a skill published in the GitHub repository magic3007/dotfiles (11 stars, last pushed 5d ago), licensed MIT. It adds 57 tokens to every session and 1,987 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

herdr-desktop compared with skills from other repositories

herdr-desktop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
herdr-desktopmagic3007/dotfilesSkill115d agoMITA57Claude Code, Codex
assess-qualityurmzd/dotfilesSkill64d agoApache-2.0A120Claude Code
create-oss-skillurmzd/dotfilesSkill64d agoApache-2.0A63Claude Code
extend-oss-skills-to-claudeurmzd/dotfilesSkill64d agoApache-2.0A74Claude Code
scaffold-nodeurmzd/dotfilesSkill64d agoApache-2.0A119Claude Code
test-codeurmzd/dotfilesSkill64d agoApache-2.0A101Claude Code
scaffold-docsurmzd/dotfilesSkill64d agoApache-2.0A196Claude Code