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.2.1.tar.gz (10.3 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.2.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ccpair-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1491f0895a7451d8927d218795bb3e11d5fddfa5462de6a75bfe39cc35bc3a77
MD5 161b82d2b419c60e6ef0a0930a8386cc
BLAKE2b-256 384384be34ba63adfe03acacbae0bdb2978d34c763c06a724798701b627de10b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccpair-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16507eac17dd4f6780cc985fd4f93d677cb47a36e30f4512309c07dc9563af47
MD5 e547ae655f87839a429bdb9e8ff9181d
BLAKE2b-256 0f3595156f4bb3e6cc736dd5ce4ba25046bab853704e5d87cfca754664dc79f7

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