Skip to main content

Autonomous dual-AI orchestration runtime delivering evidence-first, small-step software execution with tmux-managed peers, governed handoffs, and IM bridge integration

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 at startup: a small roles wizard asks you to bind actors for PeerA, PeerB, and (optionally) Aux. Your choices are saved and reused next time; you can reconfigure on the next start.
  • Aux is ON when you pick an actor for Aux; otherwise Aux is OFF (no runtime on/off toggles).
  • 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 CLIs (one‑time)
  • Put your project brief/scope in PROJECT.md (repo root). CCCC will weave it into the runtime SYSTEM so both peers align.
  • Ensure the CLI commands for the actors you select are on PATH (e.g., claude, codex, gemini), or set env overrides like CLAUDE_I_CMD / CODEX_I_CMD if needed.
  • On first run, the roles wizard will ask you to choose actors for PeerA/PeerB (and optionally Aux). You can reconfigure on the next run with the same wizard.
  • Inspect current bindings anytime: cccc roles.

Aux (optional)

  • Aux runs as a one‑off helper when you ask for it; there are no runtime on/off toggles.
  • In tmux: run /c <prompt> or c: <prompt> to invoke Aux once.
  • In chat bridges: use /aux-cli "<prompt>" to invoke Aux once.
  • For a strategic review or external check, use /review to send a clear reminder bundle to both peers.

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.

Cadence

  • Every N handoffs (configurable), the orchestrator triggers a short self‑check to keep both peers aligned.
  • PeerB also receives a "POR update requested …" reminder: review POR.md and all active SUBPOR.md (Goal/Acceptance/Probe/Kill/Next), align POR Now/Next with each SUBPOR Next, close/rescope stale items, ensure evidence/risks/decisions have recent refs, and check for gaps (create a new SUBPOR after peer ACK if needed).

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.3.tar.gz (226.2 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.3-py3-none-any.whl (248.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cccc_pair-0.3.3.tar.gz
  • Upload date:
  • Size: 226.2 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.3.tar.gz
Algorithm Hash digest
SHA256 0d4c057740d44a2be3f21d752e1214c452faeca57580473d741162da21bc8281
MD5 c7a3fdbe1ed72a03e218c9c2cab96791
BLAKE2b-256 87f046ca5a30ed013f1b96e36560d39bbb5d48f53dbb668db9d649d067213421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cccc_pair-0.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee102c8ca0c63081ba7025964288dab6ce268f7f4c6e674dacc832932408c77d
MD5 1c2b29d8f151885dd5aae61ee6020fce
BLAKE2b-256 4ee8f87324050aa2137efe5328ec6845ed4e5566be43b2689b924fa1d5728b8d

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