peer-inbox

peer-inbox is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 178 tokens per session (1,527 once invoked), scanned A, original, MIT.

A command wrapper for sending and receiving messages between separate Claude Code sessions running in different terminals. It supports requests such as reviews, parallel tasks, completion notices, and ordinary messages.

In plain words
What is it for?
Use it to ask another named session to review a pull request, handle a parallel task, report completion, send a message, or check its inbox. Each session must be identifiable by a configured name or its terminal folder.
Why use it?
It keeps work coordinated when several coding sessions operate at the same time. Messages can be sent, received, and marked as read without using an external chat service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Claude Code.

Good fit Use it to ask another named session to review a pull request, handle a parallel task, report completion, send a message, or check its inbox. Each session must be identifiable by a configured name or its terminal folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/peer-inbox
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 masa-san-jp/Agent-Aiko --skill peer-inbox
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

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 peer-inbox

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/peer-inbox/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/peer-inbox)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/peer-inbox"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/peer-inbox/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 peer-inbox

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/peer-inbox"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/peer-inbox.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,527 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.00178 $0.01527
Opus 5 $0.00089 $0.00763
Sonnet 5 $0.00036 $0.00305
Haiku 4.5 $0.00018 $0.00153

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

Security

Grade A, and why

peer-inbox 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 10d 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.

reference/skills/peer-inbox/SKILL.md · 104 lines

How it starts

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

/peer-inbox — 複数ターミナル間 Claude Code 非同期メッセージング

複数の Claude Code セッションが別ターミナルで並行稼働しているとき、互いに作業依頼・レビュー依頼・完了通知を送り合うための薄いラッパー。実装は {{ORG_REPO_PATH}}/Agent-team/tools/peer-inbox/peer-inbox.sh

識別子(PEER_NAME)の解決

各セッションの「自分の名前」は以下の順で自動解決される:

  1. 環境変数 PEER_NAME(明示設定)
  2. cwd basename がエージェント名({{TEAM_AGENTS}} のいずれか)→ そのまま採用
  3. cwd basename がパッケージ管理エージェント名(<persona>*)→ マッピング
  4. 解決失敗時はエラー(ユーザーに export PEER_NAME=<name> を促す)

自然文 → コマンドのマッピング

ユーザーの発話から intent と peer 名を抽出して以下のサブコマンドを叩く。実行時は 絶対パス を使う:

SCRIPT={{ORG_REPO_PATH}}/Agent-team/tools/peer-inbox/peer-inbox.sh

送信系

発話パターン 実行
<peer> にレビュー依頼」「<peer> にレビュー頼んで」「<peer> に PR <N> レビュー」 bash $SCRIPT review <peer> "<topic>"
<peer> に完了通知」「終わったって <peer> に伝えて」「<peer> に done」 bash $SCRIPT done <peer> "<what>"
<peer> に並行で <task> 頼んで」「並行作業 <peer> bash $SCRIPT parallel <peer> "<task>"
<peer><message> って送って」「<peer> に伝えて:<message> bash $SCRIPT send <peer> "<message>"

<topic> <what> <task> <message> はユーザーの発話から文脈に応じて構成する。明示されていない場合はユーザーに 1 行確認する。

受信系

発話パターン 実行
「メッセージ届いてる?」「受信箱見て」「inbox」「何か来てる?」「未読確認」 bash $SCRIPT check
「既読にして」「全部読んだ」「mark-read」 bash $SCRIPT mark-read
<N> 番だけ既読」 bash $SCRIPT mark-read <N>

状態確認

発話パターン 実行
「peer 一覧」「誰がいる?」「list」 bash $SCRIPT list
「自分の名前」「whoami」「私は誰?」 bash $SCRIPT whoami

実行手順

  1. 発話から intent(送信/受信/状態確認)を判定
  2. 送信系なら peer 名と message 部分を抽出
    • peer 名が曖昧なら bash $SCRIPT list で候補を見せて確認
  3. bash $SCRIPT <subcommand> を実行
  4. 結果を簡潔に報告:
    • 送信:「<peer> に送信完了」
    • 受信:未読件数と最初の数件を要約
    • 既読:何件既読化したか

メッセージ保管場所

$PEER_INBOX_ROOT/<peer>/inbox.jsonl(既定 ~/.peer-inbox/)に JSONL(1 行 1 メッセージ)で追記。既定はリポ外のため通常 .gitignore 不要(リポ配下に置く運用にした場合のみ、そのパスを gitignore する)。

1 行のエントリ形式:

{"ts": "2026-05-10T14:30:00+09:00", "from": "<sender>", "to": "<recipient>", "message": "レビュー依頼: ...", "read": false}

Read the full file on GitHub · 104 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. 10d ago First seen · 104 lines · 178 tokens per session scan A dab809356627

Subscribe to this mod's changes

peer-inbox is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 178 tokens to every session and 1,527 once invoked, about $0.0009 per session on Opus 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-08-31.

Related

Other skills, from other repositories