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.4.0.tar.gz (12.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.4.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccpair-0.4.0.tar.gz
  • Upload date:
  • Size: 12.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.4.0.tar.gz
Algorithm Hash digest
SHA256 0b4da8070819a241d083a64f92963d0d4e2d6d3eb2a8189169aaa4c0f5626325
MD5 d79884a4753738b1b425409d85e0cf66
BLAKE2b-256 04040be2766e6b060e13bed5e4e3db8fcc70e31014cf15881305b328ef4986ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccpair-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f28b8d6116c48add5f3350bfa122493e18999de6759145f030a61c0777c13004
MD5 18e7a86dc12d2afe5def09c0053f8730
BLAKE2b-256 7f78c6188740880361b2b785c485f1956957df916c8e3527b0064995a5e48f1c

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