Skip to main content

Two‑AI orchestrator (tmux) for evidence‑first, small‑step collaboration

Project description

CCCC Pair - Multi-Peer Orchestrator for Evidence-First Delivery

Two always-on AI peers co-drive your repo as equals. They plan, build, critique, and converge by evidence - not by talk. You stay in control from tmux or your team chat.

:rocket: Not a chatbot UI. Not an IDE plugin. A production-minded orchestrator for long-running, real work.

Why CCCC (pain -> payoff)

Single-agent pain (you may recognize these):

  • :hourglass_flowing_sand: Stalls & restarts - context evaporates between runs; work drifts.
  • :speech_balloon: Low-signal threads - long monologues, little verification, no audit trail.
  • :triangular_flag_on_post: Decisions vanish - hard to see what changed and why.

CCCC payoff with two peers and repo-native anchors:

  • :handshake: Multi-peer synergy - one builds, the other challenges; better options appear; errors die faster.
  • :white_check_mark: Evidence-first loop - only tested/logged/committed results count as progress.
  • :memo: POR/SUBPOR anchors - one strategic board (POR) + per-task sheets (SUBPOR) keep everyone aligned without ceremony.
  • :bell: Low-noise cadence - built-in nudge/self-check trims chatter; the panel shows what matters, incl. "Next self-check" and "Next auto-compact".
  • :mag: Auditable decisions - recent choices & pivots are captured; you can review and roll forward confidently.

When to use CCCC

  • You want autonomous progress you can trust, with small, reversible steps.
  • You need collaboration you can observe in tmux/IM, not a black box.
  • Your project benefits from a living strategic board and lightweight task sheets living in the repo.
  • You care about repeatability: tests, stable logs, and commits as the final word.

How it works (60 seconds)

  • :link: One simple contract: peers write <TO_USER> / <TO_PEER> with a final fenced insight (who/kind/next/refs).
  • :file_folder: Two anchors in your repo under docs/por/:
    • POR.md (strategic board): North-star, deliverables, roadmap (Now/Next/Later), risk radar, recent decisions/pivots, maintenance log.
    • T######-slug/SUBPOR.md (per-task sheet): goal/scope, 3-5 acceptance checks, cheapest probe, kill criteria, implementation notes, REV log, next step.
  • :busts_in_silhouette: Optional Aux peer for big reviews or heavy lifting. Strategic notes sit in POR; tactical offloads sit in each SUBPOR.
  • :tv: tmux UI: two panes (PeerA/PeerB) and a compact status panel. You will always see the POR path and "Next: self-check | auto-compact (policy)".

Peers & Models (default choices, not a lock-in)

  • :large_blue_circle: Peer A = Claude Code (default). We pick it for strong reasoning, careful code edits, and robust long sessions.
  • :yellow_circle: Peer B = Codex CLI (default). We pick it for decisive implementation, fast iteration, and stable CLI behavior.
  • :sparkles: Optional Aux = Gemini CLI (on-demand). We use it when a burst of non-interactive work helps (broad reviews, heavy tests, bulk transforms). Rationale: Gemini's long interactive sessions can be less stable in some setups, but it shines at short, structured jobs - perfect for an Aux you summon and dismiss.

Notes

  • The two main peers collaborate as equals - both can think strategically and execute tactically. Aux is opt-in and task-oriented.
  • You can swap models: CCCC is vendor-agnostic; the orchestrator talks a simple mailbox contract.
  • Strategy lives in docs/por/POR.md; execution details live in task SUBPORs - the peers update these naturally while working.

What you get

  • Small, reversible changes that ship continuously.
  • A repo-native strategic board and per-task history you can actually read.
  • IM bridges (Telegram/Slack/Discord) that bring the work to where your team already is.

Requirements

  • Python >= 3.9
  • tmux (brew install tmux or sudo apt install tmux)
  • git

Recommended CLIs

  • :large_blue_circle: Peer A: Claude Code CLI
  • :yellow_circle: Peer B: Codex CLI
  • :sparkles: Aux (optional): Gemini CLI

Install

  • pipx (recommended)
    pipx install cccc-pair
    
  • or venv
    python3 -m venv v && . v/bin/activate && pip install cccc-pair
    

Quick Start (5 minutes)

  1. Initialize in your repo
cccc init
  1. Check environment
cccc doctor
  1. (Optional) Connect Telegram
cccc token set  # paste your bot token (stored under .cccc/settings, gitignored)
  1. Run orchestrator (tmux UI)
cccc run
  • tmux opens: left/right = PeerA/PeerB, bottom-right = status panel.
  • You can attach a bridge later with cccc bridge ... or set autostart in .cccc/settings.
  1. Prepare your two CLIs (one-time)
  • Ensure claude / codex are on PATH or set env vars (CLAUDE_I_CMD, CODEX_I_CMD).
  • Copy the content of PEERA.md / PEERB.md into files your CLIs use as system prompts (e.g., CLAUDE.md / AGENTS.md at repo root; gitignored).
  • Put your project brief/scope in PROJECT.md (repo root). CCCC will weave it into the runtime SYSTEM so both peers align.

Optional: enable the Aux (Gemini CLI)

  • Install Gemini CLI and make sure the command is available (e.g., gemini ...).
  • You can enable or disable Aux at runtime; it will be summoned only for on-demand reviews or heavy execution you choose to delegate.

A typical session (end-to-end, ~3 minutes)

  1. Explore (short)
  • In chat (or tmux), route an idea to both: both: add a short section to README about team chat tips.
  • One peer frames intent; the other asks one focused question.
  1. Decide (concise CLAIM)
  • Write a CLAIM in to_peer.md with acceptance & constraints; the other peer COUNTERs with a sharper place or safer rollout.
  1. Build (evidence-first)
  • Propose a small, verifiable change with a 1-2 line EVIDENCE note (tests OK / stable logs / commit refs).
  • Orchestrator logs outcomes to the ledger; the status panel updates.
  1. Team visibility
  • Telegram/Slack/Discord (optional) receive concise summaries; peers stay quiet unless blocked.

Folder layout (after cccc init)

.cccc/
  adapters/bridge_*.py            # chat bridges (optional)
  settings/                        # runtime profiles (tmux/bridges)
  mailbox/                         # to_user.md / to_peer.md; inbox/processed
  state/                           # ledger.jsonl, status/session (ephemeral)
  logs/                            # extra logs (ephemeral)
  orchestrator_tmux.py panel_status.py prompt_weaver.py ...

docs/
  por/
    POR.md                         # strategic board (North-star, deliverables, roadmap, risks, decisions)
    T000123-your-task/SUBPOR.md    # per-task sheet (goal/acceptance/probe/kill/impl/REV/next)

POR/SUBPOR anchors (in your repo)

  • docs/por/POR.md is the strategic board.
  • docs/por/T######-slug/SUBPOR.md is a per-task sheet.
  • Peers keep these brief and current as they work; you can read them any time.

FAQ (short)

  • Does CCCC lock me into a UI? No. tmux is default; IM bridges are optional and transport-agnostic.
  • Can I run only locally? Yes. Everything works without any bridge.
  • What about safety? Chats never change state. "Done" means tests/logs/commits. Irreversible changes are explicit and deliberate.

If you want to see a longer walkthrough or real-world examples, open an issue or start a discussion. We love shipping with teams who care about clarity, evidence, and taste.

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

cccc_pair-0.3.1.tar.gz (218.9 kB view details)

Uploaded Source

Built Distribution

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

cccc_pair-0.3.1-py3-none-any.whl (248.2 kB view details)

Uploaded Python 3

File details

Details for the file cccc_pair-0.3.1.tar.gz.

File metadata

  • Download URL: cccc_pair-0.3.1.tar.gz
  • Upload date:
  • Size: 218.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for cccc_pair-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e8bf202c33652a383ebc2ab2b712d8a4d9f12bac6abcde1a8725e7e8bcced000
MD5 8d11b7a006b966c9425ed92fe956ec8d
BLAKE2b-256 3ebfd7a8f1d9d40c31cafa40db4574ed4744af438d56036daf81156c257d901c

See more details on using hashes here.

File details

Details for the file cccc_pair-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cccc_pair-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 248.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for cccc_pair-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f9a3735c0204b071524ed329f05b7f61a0e08f3a85cefe483f968477d42d0b0
MD5 2577c67cd148061af5eb932bf3237414
BLAKE2b-256 78307e3cfa09dfeea74bc90b3b18a0ad81e79573d223c9c983ddea50f627771a

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