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

uvx 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.0.tar.gz (10.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.2.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccpair-0.2.0.tar.gz
  • Upload date:
  • Size: 10.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.2.0.tar.gz
Algorithm Hash digest
SHA256 f795fb5f11c2f24fa6f17b9f2d98d98ec0a97c8de4d85cb56799b1bfffcab34b
MD5 59632f50f464bdaadbe149c856a12df9
BLAKE2b-256 fa4eaaf7347308f3d7a1e5f68dde4e996c870d88e5477d1c0f95cf7c1c595ed1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccpair-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7abab3a0d6e5cb561153d3b2517fbcb5969a387c6ae5bcdfde9cbd907860dc5c
MD5 cf34a80aa3517e744fea739a12f16c54
BLAKE2b-256 c82b06ad1e1c92628c74ab8093507cd4cb2d3ff0ab35d396557d1c3152471888

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