# claude-peers-mcp

Enables parallel Claude Code sessions on one computer to locate each other and pass data in real time using a local message broker.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1000 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/claude-peers-mcp/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/claude-peers-mcp

## What it does

This skill coordinates separate Claude Code sessions running side by side. It relies on a background daemon listening on `localhost:7899` and storing state in `~/.claude-peers.db`. Every session starts an stdio MCP process, pings the broker every second, and receives updates through Claude channels.

The toolset includes `list_peers`, `send_message`, `set_summary`, and `check_messages`. Agents can discover other instances across the entire machine or inside a specific git repository. Passing an `OPENAI_API_KEY` environment variable lets `gpt-4o-mini` summarize what each session is doing based on git state and recent files.

Push delivery breaks under API key authentication because development channels require a direct claude.ai login. You also need the Bun runtime and Claude Code version 2.1.80 or newer.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill claude-peers-mcp -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/trending-skills/tree/HEAD/skills/claude-peers-mcp/SKILL.md

## When to use it
- coordinate tasks between frontend and backend terminal sessions
- pass context directly to another Claude Code instance by ID
- list running AI coding sessions inside the current git repo
- dispatch instructions into a running session using the CLI helper

## Example prompts
- List all active Claude Code peers running on this machine
- Send a message to peer abc123 asking which endpoints it expects
- Check for any unread messages from other local sessions

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 139 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
