# claude-peers-mcp-inter-instance-messaging

claude-peers-mcp-inter-instance-messaging — a skill that sets up the claude-peers MCP server so Claude sessions on one machine discover each other and exchange messages through a local broker.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 228 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — warning: suggests running the agent with permission prompts turned off. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/skills/claude-peers-mcp-inter-instance-messaging

## What it does

The skill walks through installing the claude-peers MCP server, after which separate Claude sessions can see one another. A broker daemon holds state in SQLite and listens on `localhost:7899`. Each session starts its own MCP server, registers with the broker and checks for incoming mail once a second.

Four tools ship with it. `list_peers` takes a `scope` of `machine`, `directory` or `repo` and returns sessions with their working directory, git branch and a note on current work. `send_message` delivers text to a `targetPeerId`. `set_summary` publishes what a session is busy with. `check_messages` polls by hand, though you rarely need it because inbound notes arrive over the `claude/channel` protocol. Peers that stop answering get cleaned up.

Launch Claude with `--dangerously-load-development-channels server:claude-peers`. Drop that flag and the channel never opens, so nothing shows up on its own and you are left polling. The server runs on `bun`, which has to be present before the first start. Setting `OPENAI_API_KEY` turns on a startup summary written with `gpt-5.4-nano`; otherwise the session writes its own note via `set_summary`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill claude-peers-mcp-inter-instance-messaging -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/claude-peers-mcp-inter-instance-messaging/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill claude-peers-mcp-inter-instance-messaging -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill claude-peers-mcp-inter-instance-messaging -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/claude-peers-mcp-inter-instance-messaging
```

2. **Manually: put the files in place**
- File: `.github/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill claude-peers-mcp-inter-instance-messaging -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/claude-peers-mcp-inter-instance-messaging
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill claude-peers-mcp-inter-instance-messaging -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/claude-peers-mcp-inter-instance-messaging/SKILL.md

## When to use it
- locate other Claude sessions running on the same machine
- send a note to a sibling terminal without switching to it
- publish what a session is working on so peers can read it
- check whether a neighbour is already editing the same file
- inspect broker state and peer list from the command line

## Example prompts
- Show me every peer running on this machine
- Send peer `abc123` a note: are you editing `auth.ts` right now?
- Set my summary to: rolling out v2.1, do not push to `main`

## Similar
- [claude-peers-mcp](https://affpapa.org/en/nevibecode/skills/claude-peers-mcp.md) — skill · 1100 installs
- [agmsg](https://affpapa.org/en/nevibecode/skills/agmsg.md) — skill · ★ 1594 repo stars
- [inter-agent-comm-security-detection](https://affpapa.org/en/nevibecode/skills/inter-agent-comm-security-detection.md) — skill · ★ 7607 repo stars
- [slack-messaging](https://affpapa.org/en/nevibecode/skills/slack-messaging.md) — skill · 4100 installs
- [sent-messaging](https://affpapa.org/en/nevibecode/skills/sent-messaging.md) — skill · 2900 installs
- [service-digital-engagement-messaging-site-integrate](https://affpapa.org/en/nevibecode/skills/service-digital-engagement-messaging-site-integrate.md) — skill · 2400 installs

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
