Skip to main content

Peer-to-peer Claude Code sessions over local network

Project description

ccpair

Peer-to-peer Claude Code sessions over your local network.

Two developers. Two Claude Code instances. One shared session — with humans always in the loop.

How it works

  • mDNS discovery — no config, just be on the same WiFi
  • Each Claude can propose tasks, share context, and request reviews via MCP tools
  • After every Claude response a 2-minute human gate opens — either human can type and take over
  • Stats (phase, countdown, exchange count) live in the statusline

Install

uv tool install ccpair
ccpair install               # wire up hooks, statusline, MCP, and skills

Restart Claude Code, then in any project:

/pair

Usage

Start a session (host):

ccpair host --name alice
# prints: Session code: ab3x9k

Join a session:

ccpair join ab3x9k --name bob

Or use /pair inside Claude Code — it handles both flows interactively.

Requirements

  • Python 3.12+
  • Same LAN (mDNS / port 52001)
  • Claude Code with statusline configured
  • jq in PATH (for hooks/statusline)

MCP tools

Tool Description
propose_task Hand off a scoped subtask to the peer agent
share_context Broadcast findings and file paths
request_review Ask peer to review a diff
unblock Reply to a stuck peer
await_peer Yield and wait for peer reply or human interject
read_inbox Get the full message after await_peer returns
human_gate Mandatory pause every N exchanges

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccpair-0.3.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccpair-0.3.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file ccpair-0.3.2.tar.gz.

File metadata

  • Download URL: ccpair-0.3.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ccpair-0.3.2.tar.gz
Algorithm Hash digest
SHA256 071fdfe160f0f101451c66bdef310d588b47bd6c60406f20424d4ce614815a4a
MD5 1aceac22d898b2e45f021e9c54b2cd10
BLAKE2b-256 f27792c880d4c730c4d91360698010393d05e2368739b4fb1568aa5fde58ed93

See more details on using hashes here.

File details

Details for the file ccpair-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: ccpair-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ccpair-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89e813958eb8de7b37d2136e22185995eff1d9165788e4b2e31b0821e8e7c571
MD5 fa2d369cb3c5fb7428e5f31b6e2b802d
BLAKE2b-256 7d484012dd8feb4eb8ad016dd4a3fe792e7a7004f1ff0e17d789170668c15af2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page