alex-pezarro-portswigger/aw-session-registry/tree/main/skills/peer-messages
peer-messages
# aw-session-registry 同じリポジトリで作業するセッション同士が作業内容を知らせ合い、メッセージを送り合える [Agent Wrangler](https://github.com/alex-pezarro-portswigger/agent-wrangler) 拡張機能です。
この mod について
各セッションは自分のハンドルと作業内容をセッションレジストリに公開し、エージェントは次の MCP ツールを使えるようになります。
list_repo_sessions— リポジトリでほかに作業している人を確認するupdate_session_note— このセッションの作業内容を仲間に知らせるlist_remote_peer_sessions/send_remote_peer_message— 別のボードにいるセッションへメッセージを送る。同じボードのセッションには Agent Wrangler の組み込みsend_messageを使い、リモートツールはそれらへの送信を拒否します。
受信したリモートメッセージは 15 秒ごとに確認され、エージェントに表示される前にあなたの承認を待ちます。
- **Claude セッション:**付属の
peer-messagesMod(skills/peer-messages/、function hooks で構成された Claude Code プラグイン)がカードの受信トレイを管理します。各メッセージはプロンプトの上に表示され、Accept、Accept all、Dismiss、Dismiss all を選べます(ctrl+x tab で帯にフォーカスし、a、l、d、xのいずれかを押します)。2 つの「all」オプションは、その Claude セッションが終わるまで、送信元セッションからのすべてのメッセージに答えます。すでにキューに入っているものも、これから届くものも対象です。/peer-listと/peer-send <n|handle> <message>で、同じリポジトリの稼働中セッションを一覧表示したり、メッセージを送ったりできます。拡張機能は起動時(PEER_MESSAGES_INBOX=mod)に受信トレイを Mod に渡します。そのため、この拡張機能の更新前に起動した Claude カードには Mod がなく、メッセージはカードが再開されるまでレジストリに(最長 6 時間)待機します。Mods を読み込める Claude Code ビルドが必要です。 - **Codex セッション:**カード上で Allow once、Allow all from this session、Deny、Block を選ぶまでメッセージが待機します。
付属のフックは最初のプロンプトで仲間の作業内容を簡潔に知らせ、設定が済むまで最初の数回のプロンプトで自分のメモを設定するよう促します。フックは skills/session-registry/hooks/hooks.json にあり、Agent Wrangler が Claude プラグインとして読み込むため、Claude セッションでのみ実行され、Codex では実行されません。
インストール
設定 → 拡張機能 → インストール:
https://github.com/alex-pezarro-portswigger/aw-session-registry
インストール直後はオフになっています。オンにして、その行の歯車からレジストリ URL を設定します。
devcontainer では、Wrangler の設定が引き継がれないため、代わりに SESSION_REGISTRY_URL を設定します。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add alex-pezarro-portswigger/aw-session-registry claude plugin install peer-messages
原文 / README
aw-session-registry
An Agent Wrangler extension that lets sessions working in the same repo inform each other of what they are doing, and send messages to each other.
Each session publishes it's handle and what it's doing to the session registry, and agents get these MCP tools:
list_repo_sessions— see who else is working in the repoupdate_session_note— tell peers what this session is doinglist_remote_peer_sessions/send_remote_peer_message— message sessions on other boards. Sessions on your own board use Agent Wrangler's built-insend_message, and the remote tools refuse them.
Inbound remote messages are checked every 15 seconds and wait for you to approve them before the agent sees them:
- Claude sessions: the bundled
peer-messagesmod (skills/peer-messages/, a Claude Code plugin of function hooks) owns the card's inbox. Each message shows above the prompt with Accept, Accept all, Dismiss and Dismiss all (focus the band with ctrl+x tab, thena,l,dorx). The two "all" options answer every message from that sender's session, queued or still to come, for the rest of the Claude session./peer-listand/peer-send <n|handle> <message>list and message live sessions in the same repo. The extension hands the inbox over at launch (PEER_MESSAGES_INBOX=mod), so a Claude card launched before this extension was updated has no mod, and its messages wait in the registry (up to its 6-hour TTL) until the card is resumed. It needs a Claude Code build that loads mods. - Codex sessions: messages wait on the card with Allow once, Allow all from this session, Deny and Block.
A bundled hook gives the agent a brief of what its peers are doing on its first prompt, and
nudges it to set its note over the first few prompts until it does. The hooks live in
skills/session-registry/hooks/hooks.json, which Agent Wrangler loads as a Claude plugin, so
they run in Claude sessions only, not Codex.
Install
Settings → Extensions → Install:
https://github.com/alex-pezarro-portswigger/aw-session-registry
It installs switched off. Turn it on and set the registry URL from the cog on its row.
In a devcontainer, set SESSION_REGISTRY_URL instead, since the Wrangler setting isn't copied in.