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
  • :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.2.tar.gz (221.5 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.2-py3-none-any.whl (243.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cccc_pair-0.3.2.tar.gz
  • Upload date:
  • Size: 221.5 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.2.tar.gz
Algorithm Hash digest
SHA256 8f9606d8fe79ba41b89ec2dcec2b93502900b136aff192a5d248155a1a549b56
MD5 4730558b7a41cf31122fe6a53938730a
BLAKE2b-256 57a809bb239a270e536f6ec26fa0edb17090908294d0164193f6a04e00efa792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cccc_pair-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 243.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48cb6c3b6ac4fa7120ed4cbf24d394eac076e493afd254bb499853a00343b07a
MD5 bb4998a62c59bf75e1a491c467dec682
BLAKE2b-256 bef9bdea64cad0847e38f7e5c3c85b44694b8c04975e5098e5ab54215bc9ab5d

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