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.0.tar.gz (214.7 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.0-py3-none-any.whl (243.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cccc_pair-0.3.0.tar.gz
  • Upload date:
  • Size: 214.7 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.0.tar.gz
Algorithm Hash digest
SHA256 5fcc7b3abe0a32fa100dff2ca816a95036846e25a87a92d53a1507234be0ebd8
MD5 82d07a67625c0e87419d474192db2626
BLAKE2b-256 aa685d87d7cc41e577a74e7a4a353cb613016f4d252666b7ff2f7e4478c33e7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cccc_pair-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 243.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc725c0b52c7dd0ba6c222af51aea9c4bf102850043b8348e64b2e45d871b139
MD5 27eddbb194bd15338748da690252ee1f
BLAKE2b-256 5b5c24e7a62f66fefd82d090b9662653919e98d5cf194f8681217a37cee8b1f6

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