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.5.0.tar.gz (12.2 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.5.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ccpair-0.5.0.tar.gz
Algorithm Hash digest
SHA256 202549423dd80060817d60e458d392069c34f34cde0f42a5926b0f13f7454c56
MD5 d26f8aac4ea36aa79f6eab54c8f96a43
BLAKE2b-256 cb8cef792de597174c323100b860312a213f63839d6b8bb96b17cac6b7d667d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccpair-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2df03c93252e47cbfa67628660cfb58074c15a2726450fc51917e90cd3160d09
MD5 a76f54758544089ca4ca028af631891f
BLAKE2b-256 f49fd398340d6855473c6eabd7063c268011e56a292434edbb215f01c89ba30a

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