agent-send

agent-send is a skill for Claude Code from shimo4228/claude-harness. It costs 58 tokens per session (1,824 once invoked), scanned A, original, MIT.

A command-line helper for sending a prompt to another coding-agent session running in a Herdr pane. It can confirm that the prompt reached the session and can wait for the other agent to finish.

In plain words
What is it for?
Use it to send a task or prompt to an agent by name, pane ID, or display name, then inspect delivery and completion status.
Why use it?
It reduces uncertainty when handing work to another session, including whether the message was delivered or whether the other agent is still working.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it to send a task or prompt to an agent by name, pane ID, or display name, then inspect delivery and completion status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/agent-send
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 shimo4228/claude-harness --skill agent-send
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

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 agent-send

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/agent-send/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/agent-send)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/agent-send"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/agent-send/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 agent-send

Your own site · 80×15
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/agent-send"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/agent-send.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,824 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.00058 $0.01824
Opus 5.5 $0.00023 $0.00730
Sonnet 5.5 $0.00012 $0.00365
Haiku 4.5 $0.00006 $0.00182

Measured 1mo ago against content hash 32a6d742b607, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-send 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (agent-send.sh, test-agent-send.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/agent-send/SKILL.md · 88 lines

How it starts

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

agent-send

Herdr pane で動く agent(Claude Code / Codex など)へ指示を送り、届いたかと終わったかを 1 行と exit code で返す。script は ${CLAUDE_SKILL_DIR}/agent-send.sh。

Herdr は turn を追跡せず、agent の状態を画面から検出する。そのため herdr agent prompt --wait (--until なし)は turn の完了まで待ち、長い作業では timeout になる。届いたかどうかは 分からない。agent-send は、届いたかを「turn の開始を観測した」で判定し、完了は別のコマンドで待つ。

送る

${CLAUDE_SKILL_DIR}/agent-send.sh prompt <target> --file packet.md   # または --text "…"
  • <target> は agent 名・pane ID・表示名(spawn-session の tab label、例 AAP/release)の どれでもよい。内部で pane ID に固定する
  • 相手が working なら終わるまで待ってから送る(既定 10 分、--busy-timeout MS)。作業中に送った 指示は queue に入って同じ turn に吸収され、届いたことを証明できない
  • 本文は 1 回しか送らない。失敗しても再送しない — timeout や stalled は「届いていない」の 証拠にならず、再送は二重送信になる
  • 例外は --retry-unseen(spawn.sh が最初の指示に付ける)。起動直後の未 focus の pane では、指示が 成功を装わずに消えることがある(herdr #4537。2026-10-10 に 0.9.3 の macOS で 2 回中 1 回)。宛先が Claude Code で transcript がまだ無い(一度もメッセージを処理していない)ときに限り、1 回だけ送り直す
stdout の result= exit 意味と次の手
landed(via=working / seq / status / transcript) 0 届いた。完了を待つなら下の wait
accepted via=command 0 /effort などの slash command。turn は起きない
typed 2 本文が入力欄に残り、Enter が入っていない。画面(stderr)を読み、人間の書きかけでなければ herdr agent send-keys <pane> enter を自分で判断する
no_evidence 2 届いた証拠が無い。画面を読んでから決める。再送する前に transcript か画面で本文の有無を見る
not_found 2 宛先が無い。herdr agent list で名前と cwd を確かめる
blocked 3 承認か質問の dialog で止まっている。画面を読み、人間に渡す
busy 4 期限内に作業が終わらなかった。送っていない
preflight 失敗(herdr_unreachable / server_down / incompatible / server_too_old) 5 Herdr に届かない・止まっている・版ずれ。stderr の理由を人間に渡す

Enter を自動で押さないのは、blocked の検出が dialog の描画から 0.3 秒ほど遅れ、承認を押しうる ため(herdr #4764)。

終わりを待つ

${CLAUDE_SKILL_DIR}/agent-send.sh wait <target> --timeout 3600000 \
  --done-if 'git -C <worktree> log -1 --format=%s | grep -q "<task>"'

Bash tool の run_in_background: true で起動する。 終わると通知が届くので、その間に画面を 読みに行かない。

  • 完了は、settled(idle か done)が続けて観測されること(Claude は 2 回、他は 3 回。間隔 30 秒)と、 --done-if の command が真であること
  • 状態の読み方
    • Claude: claude agents --json の status(Claude Code 自身の報告。背景 subagent の実行中、 Herdr の done 中も busy を返した — 2026-10-10 実測)
    • それ以外: Herdr の画面検出
  • 画面検出には偽の idle がある(背景 subagent の実行中など)。成果物で判定できるときは --done-if を付ける
    • build の完了: commit が branch に現れた
    • 画像生成の完了: 出力ファイルがある
    • 背景 process の終了: ! pgrep -f '<pattern>'
  • exit 0 done: 成果物を読む / 3 blocked: 画面を読み、人間に渡す / 4 timeout: 画面と成果物を 見て、延長か打ち切りを決める

Read the full file on GitHub · 88 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 88 lines · 58 tokens per session scan A 32a6d742b607

Subscribe to this mod's changes

agent-send is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 58 tokens to every session and 1,824 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-10-11.

Related

agent-send compared with skills from other repositories

agent-send next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-sendshimo4228/claude-harnessSkill47d agoMITA58Claude Code
agent-adoption-triageshimo4228/agent-adoption-triageSkill21mo agoMITA143Claude Code
git-commitadongwanai/learn-workbuddySkill5631mo agoMITA0Claude Code, Codex
pi-triagesky-valley/piSkill94yesterdayMITA57Claude Code
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
zodanivar/zod-skillSkill24yesterdayMITA217Claude Code, Codex
trailhead-chartToRvaLDz/trailheadSkill37yesterdayMITA138Claude Code