{"id":40178476,"url":"https://github.com/bfly123/claude_code_bridge","last_synced_at":"2026-01-21T11:02:15.892Z","repository":{"id":321562358,"uuid":"1083162948","full_name":"bfly123/claude_code_bridge","owner":"bfly123","description":"Real-time multi-AI collaboration: Claude, Codex \u0026 Gemini with persistent context, minimal token overhead","archived":false,"fork":false,"pushed_at":"2026-01-20T07:01:04.000Z","size":16702,"stargazers_count":727,"open_issues_count":10,"forks_count":68,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-20T09:26:54.932Z","etag":null,"topics":["ai-collaboration","ai-tools","claude-code","cli","codex","cross-platform","gemini","llm","multi-agent-systems","python","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfly123.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_4.0.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-25T13:23:08.000Z","updated_at":"2026-01-20T09:17:15.000Z","dependencies_parsed_at":"2025-10-30T10:26:24.599Z","dependency_job_id":"ea5a26b5-7e7c-4ccd-8b25-c6b8879ea2c6","html_url":"https://github.com/bfly123/claude_code_bridge","commit_stats":null,"previous_names":["bfly123/claude_codex_daemon","bfly123/claude_bridge"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/bfly123/claude_code_bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfly123%2Fclaude_code_bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfly123%2Fclaude_code_bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfly123%2Fclaude_code_bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfly123%2Fclaude_code_bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfly123","download_url":"https://codeload.github.com/bfly123/claude_code_bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfly123%2Fclaude_code_bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-collaboration","ai-tools","claude-code","cli","codex","cross-platform","gemini","llm","multi-agent-systems","python","terminal"],"created_at":"2026-01-19T18:01:27.160Z","updated_at":"2026-01-21T11:02:15.885Z","avatar_url":"https://github.com/bfly123.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n# Claude Code Bridge (ccb) v5.0.4\n\n**New Multi-Model Collaboration Tool via Split-Pane Terminal**\n**Claude \u0026 Codex \u0026 Gemini \u0026 OpenCode**\n**Ultra-low token real-time communication, unleashing full CLI power**\n\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Every_Interaction_Visible-096DD9?style=for-the-badge\" alt=\"Every Interaction Visible\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Every_Model_Controllable-CF1322?style=for-the-badge\" alt=\"Every Model Controllable\"\u003e\n\u003c/p\u003e\n\n[![Version](https://img.shields.io/badge/version-5.0.4-orange.svg)]()\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)\n[![CI](https://github.com/bfly123/claude_code_bridge/actions/workflows/test.yml/badge.svg)](https://github.com/bfly123/claude_code_bridge/actions/workflows/test.yml)\n[![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-lightgrey.svg)]()\n\n**English** | [Chinese](README_zh.md)\n\n![Showcase](assets/show.png)\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eDemo animations\u003c/b\u003e\u003c/summary\u003e\n\n\u003cimg src=\"assets/readme_previews/video2.gif\" alt=\"Any-terminal collaboration demo\" width=\"900\"\u003e\n\n\u003cimg src=\"assets/readme_previews/video1.gif\" alt=\"VS Code integration demo\" width=\"900\"\u003e\n\n\u003c/details\u003e\n\n\u003c/div\u003e\n\n---\n\n**Introduction:** Multi-model collaboration effectively avoids model bias, cognitive blind spots, and context limitations. However, MCP, Skills and other direct API approaches have many limitations. This project offers a new WYSIWYG solution.\n\n## ⚡ Why ccb?\n\n| Feature | Benefit |\n| :--- | :--- |\n| **🖥️ Visual \u0026 Controllable** | Multiple AI models in split-pane CLI. See everything, control everything. |\n| **🧠 Persistent Context** | Each AI maintains its own memory. Close and resume anytime (`-r` flag). |\n| **📉 Token Savings** | Sends lightweight prompts instead of full file history. |\n| **🪟 Native Workflow** | Integrates directly into **WezTerm** (recommended) or tmux. No complex servers required. |\n\n---\n\n\u003ch2 align=\"center\"\u003e🚀 What's New\u003c/h2\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003ev5.0.4\u003c/b\u003e - OpenCode -r 恢复判定修复\u003c/summary\u003e\n\n- **OpenCode**: Fixes `-r` resume failing after switching projects.\n- **/all-plan**: Multi-AI planning with Superpowers brainstorming and availability-aware dispatch.\n- **CCA Status Bar**: Reads role name from `.autoflow/roles.json` (supports `_meta.name`) with per-path caching.\n- **Installer**: Copies skill subdirectories (e.g., `references/`) for Claude/Codex installs.\n- **CLI**: Adds `ccb uninstall` / `ccb reinstall` with Claude config cleanup.\n- **Routing**: Tighter project/session resolution to avoid cross-project Claude sessions.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eDetails \u0026 usage\u003c/b\u003e\u003c/summary\u003e\n\nUsage:\n```\n/all-plan \u003crequirement\u003e\n```\n\nExample:\n```\n/all-plan Design a caching layer for the API with Redis\n```\n\nHighlights:\n- Socratic Ladder + Superpowers Lenses + Anti-pattern analysis.\n- Availability-gated dispatch (use only mounted CLIs).\n- Two-round reviewer refinement with merged design.\n\n\u003c/details\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003ev5.0.0\u003c/b\u003e - Any AI as primary driver\u003c/summary\u003e\n\n- **Claude Independence**: No need to start Claude first; Codex can act as the primary CLI.\n- **Unified Control**: Single entry point controls Claude/OpenCode/Gemini.\n- **Simplified Launch**: Dropped `ccb up`; use `ccb ...` or the default `ccb.config`.\n- **Flexible Mounting**: More flexible pane mounting and session binding.\n- **Default Config**: Auto-create `ccb.config` when missing.\n- **Daemon Autostart**: `caskd`/`laskd` auto-start in WezTerm/tmux when needed.\n- **Session Robustness**: PID liveness checks prevent stale sessions.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003ev4.0\u003c/b\u003e - tmux-first refactor\u003c/summary\u003e\n\n- **Full Refactor**: Cleaner structure, better stability, and easier extension.\n- **Terminal Backend Abstraction**: Unified terminal layer (`TmuxBackend` / `WeztermBackend`) with auto-detection and WSL path handling.\n- **Perfect tmux Experience**: Stable layouts + pane titles/borders + session-scoped theming.\n- **Works in Any Terminal**: If your terminal can run tmux, CCB can provide the full multi-model split experience (except native Windows; WezTerm recommended; otherwise just use tmux).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003ev3.0\u003c/b\u003e - Smart daemons\u003c/summary\u003e\n\n- **True Parallelism**: Submit multiple tasks to Codex, Gemini, or OpenCode simultaneously.\n- **Cross-AI Orchestration**: Claude and Codex can now drive OpenCode agents together.\n- **Bulletproof Stability**: Daemons auto-start on first request and stop after idle.\n- **Chained Execution**: Codex can delegate to OpenCode for multi-step workflows.\n- **Smart Interruption**: Gemini tasks handle interruption safely.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eDetails\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Parallel](https://img.shields.io/badge/Strategy-Parallel_Queue-blue?style=flat-square)\n![Stability](https://img.shields.io/badge/Daemon-Auto_Managed-green?style=flat-square)\n![Interruption](https://img.shields.io/badge/Gemini-Interruption_Aware-orange?style=flat-square)\n\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003e✨ Key Features\u003c/h3\u003e\n\n- **🔄 True Parallelism**: Submit multiple tasks to Codex, Gemini, or OpenCode simultaneously. The new daemons (`caskd`, `gaskd`, `oaskd`) automatically queue and execute them serially, ensuring no context pollution.\n- **🤝 Cross-AI Orchestration**: Claude and Codex can now simultaneously drive OpenCode agents. All requests are arbitrated by the unified daemon layer.\n- **🛡️ Bulletproof Stability**: Daemons are self-managing—they start automatically on the first request and shut down after 60s of idleness to save resources.\n- **⚡ Chained Execution**: Advanced workflows supported! Codex can autonomously call `oask` to delegate sub-tasks to OpenCode models.\n- **🛑 Smart Interruption**: Gemini tasks now support intelligent interruption detection, automatically handling stops and ensuring workflow continuity.\n\n\u003ch3 align=\"center\"\u003e🧩 Feature Support Matrix\u003c/h3\u003e\n\n| Feature | `caskd` (Codex) | `gaskd` (Gemini) | `oaskd` (OpenCode) |\n| :--- | :---: | :---: | :---: |\n| **Parallel Queue** | ✅ | ✅ | ✅ |\n| **Interruption Awareness** | ✅ | ✅ | - |\n| **Response Isolation** | ✅ | ✅ | ✅ |\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e📊 View Real-world Stress Test Results\u003c/strong\u003e\u003c/summary\u003e\n\n\u003cbr\u003e\n\n**Scenario 1: Claude \u0026 Codex Concurrent Access to OpenCode**\n*Both agents firing requests simultaneously, perfectly coordinated by the daemon.*\n\n| Source | Task | Result | Status |\n| :--- | :--- | :--- | :---: |\n| 🤖 Claude | `CLAUDE-A` | **CLAUDE-A** | 🟢 |\n| 🤖 Claude | `CLAUDE-B` | **CLAUDE-B** | 🟢 |\n| 💻 Codex | `CODEX-A` | **CODEX-A** | 🟢 |\n| 💻 Codex | `CODEX-B` | **CODEX-B** | 🟢 |\n\n**Scenario 2: Recursive/Chained Calls**\n*Codex autonomously driving OpenCode for a 5-step workflow.*\n\n| Request | Exit Code | Response |\n| :--- | :---: | :--- |\n| **ONE** | `0` | `CODEX-ONE` |\n| **TWO** | `0` | `CODEX-TWO` |\n| **THREE** | `0` | `CODEX-THREE` |\n| **FOUR** | `0` | `CODEX-FOUR` |\n| **FIVE** | `0` | `CODEX-FIVE` |\n\n\u003c/details\u003e\n\u003c/details\u003e\n\u003c/details\u003e\n\n---\n\n\u003ch3 align=\"center\"\u003e🧠 Introducing CCA (Claude Code Autoflow)\u003c/h3\u003e\n\nUnlock the full potential of `ccb` with **CCA** — an advanced workflow automation system built on top of this bridge.\n\n*   **Workflow Automation**: Intelligent task assignment and automated state management.\n*   **Seamless Integration**: Native support for the v3.0 daemon architecture.\n\n[👉 View Project on GitHub](https://github.com/bfly123/claude_code_autoflow)\n\n**Install via CCB:**\n```bash\nccb update cca\n```\n\n---\n\n## 🚀 Quick Start\n\n**Step 1:** Install [WezTerm](https://wezfurlong.org/wezterm/) (native `.exe` for Windows)\n\n**Step 2:** Choose installer based on your environment:\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003eLinux\u003c/b\u003e\u003c/summary\u003e\n\n```bash\ngit clone https://github.com/bfly123/claude_code_bridge.git\ncd claude_code_bridge\n./install.sh install\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003emacOS\u003c/b\u003e\u003c/summary\u003e\n\n```bash\ngit clone https://github.com/bfly123/claude_code_bridge.git\ncd claude_code_bridge\n./install.sh install\n```\n\n\u003e **Note:** If commands not found after install, see [macOS Troubleshooting](#-macos-installation-guide).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eWSL (Windows Subsystem for Linux)\u003c/b\u003e\u003c/summary\u003e\n\n\u003e Use this if your Claude/Codex/Gemini runs in WSL.\n\n\u003e **⚠️ WARNING:** Do NOT install or run ccb as root/administrator. Switch to a normal user first (`su - username` or create one with `adduser`).\n\n```bash\n# Run inside WSL terminal (as normal user, NOT root)\ngit clone https://github.com/bfly123/claude_code_bridge.git\ncd claude_code_bridge\n./install.sh install\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eWindows Native\u003c/b\u003e\u003c/summary\u003e\n\n\u003e Use this if your Claude/Codex/Gemini runs natively on Windows.\n\n```powershell\ngit clone https://github.com/bfly123/claude_code_bridge.git\ncd claude_code_bridge\npowershell -ExecutionPolicy Bypass -File .\\install.ps1 install\n```\n\n- The installer prefers `pwsh.exe` (PowerShell 7+) when available, otherwise `powershell.exe`.\n- If a WezTerm config exists, the installer will try to set `config.default_prog` to PowerShell (adds a `-- CCB_WEZTERM_*` block and will prompt before overriding an existing `default_prog`).\n\n\u003c/details\u003e\n\n### Run\n```bash\nccb                    # Start providers from ccb.config (default: all four)\nccb codex gemini       # Start both\nccb codex gemini opencode claude  # Start all four (spaces)\nccb codex,gemini,opencode,claude  # Start all four (commas)\nccb -r codex gemini     # Resume last session for Codex + Gemini\nccb -a codex gemini opencode  # Auto-approval mode with multiple providers\nccb -a -r codex gemini opencode claude  # Auto + resume for all providers\n\ntmux tip: CCB's tmux status/pane theming is enabled only while CCB is running.\n\nLayout rule: the last provider runs in the current pane. Extras are ordered as `[cmd?, reversed providers]`; the first extra goes to the top-right, then the left column fills top-to-bottom, then the right column fills top-to-bottom. Examples: 4 panes = left2/right2, 5 panes = left2/right3.\nNote: `ccb up` is removed; use `ccb ...` or configure `ccb.config`.\n```\n\n### Flags\n| Flag | Description | Example |\n| :--- | :--- | :--- |\n| `-r` | Resume previous session context | `ccb -r` |\n| `-a` | Auto-mode, skip permission prompts | `ccb -a` |\n| `-h` | Show help information | `ccb -h` |\n| `-v` | Show version and check for updates | `ccb -v` |\n\n### ccb.config\nDefault lookup order:\n- `.ccb_config/ccb.config` (project)\n- `~/.ccb/ccb.config` (global)\n\nSimple format (recommended):\n```text\ncodex,gemini,opencode,claude\n```\n\nEnable cmd pane (default title/command):\n```text\ncodex,gemini,opencode,claude,cmd\n```\n\nAdvanced JSON (optional, for flags or custom cmd pane):\n```json\n{\n  \"providers\": [\"codex\", \"gemini\", \"opencode\", \"claude\"],\n  \"cmd\": { \"enabled\": true, \"title\": \"CCB-Cmd\", \"start_cmd\": \"bash\" },\n  \"flags\": { \"auto\": false, \"resume\": false }\n}\n```\nCmd pane participates in the layout as the first extra pane and does not change which AI runs in the current pane.\n\n### Update\n```bash\nccb update              # Update ccb to the latest version\nccb update 4            # Update to the highest v4.x.x version\nccb update 4.1          # Update to the highest v4.1.x version\nccb update 4.1.2        # Update to specific version v4.1.2\nccb update cca          # Update CCA (Claude Code Autoflow) only\nccb uninstall           # Uninstall ccb and clean configs\nccb reinstall           # Clean then reinstall ccb\n```\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🪟 Windows Installation Guide (WSL vs Native)\u003c/b\u003e\u003c/summary\u003e\n\n\u003e **Key Point:** `ccb/cask/cping/cpend` must run in the **same environment** as `codex/gemini`. The most common issue is environment mismatch causing `cping` to fail.\n\nNote: The installers also install OS-specific `SKILL.md` variants for Claude/Codex skills:\n- Linux/macOS/WSL: bash heredoc templates (`SKILL.md.bash`)\n- Native Windows: PowerShell here-string templates (`SKILL.md.powershell`)\n\n### 1) Prerequisites: Install Native WezTerm\n\n- Install Windows native WezTerm (`.exe` from official site or via winget), not the Linux version inside WSL.\n- Reason: `ccb` in WezTerm mode relies on `wezterm cli` to manage panes.\n\n### 2) How to Identify Your Environment\n\nDetermine based on **how you installed/run Claude Code/Codex**:\n\n- **WSL Environment**\n  - You installed/run via WSL terminal (Ubuntu/Debian) using `bash` (e.g., `curl ... | bash`, `apt`, `pip`, `npm`)\n  - Paths look like: `/home/\u003cuser\u003e/...` and you may see `/mnt/c/...`\n  - Verify: `cat /proc/version | grep -i microsoft` has output, or `echo $WSL_DISTRO_NAME` is non-empty\n\n- **Native Windows Environment**\n  - You installed/run via Windows Terminal / WezTerm / PowerShell / CMD (e.g., `winget`, PowerShell scripts)\n  - Paths look like: `C:\\Users\\\u003cuser\u003e\\...`\n\n### 3) WSL Users: Configure WezTerm to Auto-Enter WSL\n\nEdit WezTerm config (`%USERPROFILE%\\.wezterm.lua`):\n\n```lua\nlocal wezterm = require 'wezterm'\nreturn {\n  default_domain = 'WSL:Ubuntu', -- Replace with your distro name\n}\n```\n\nCheck distro name with `wsl -l -v` in PowerShell.\n\n### 4) Troubleshooting: `cping` Not Working\n\n- **Most common:** Environment mismatch (ccb in WSL but codex in native Windows, or vice versa)\n- **Codex session not running:** Run `ccb codex` (or add codex to ccb.config) first\n- **WezTerm CLI not found:** Ensure `wezterm` is in PATH\n- **Terminal not refreshed:** Restart WezTerm after installation\n- **Text sent but not submitted (no Enter) on Windows WezTerm:** Set `CCB_WEZTERM_ENTER_METHOD=key` and ensure your WezTerm supports `wezterm cli send-key`\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🍎 macOS Installation Guide\u003c/b\u003e\u003c/summary\u003e\n\n### Command Not Found After Installation\n\nIf `ccb`, `cask`, `cping` commands are not found after running `./install.sh install`:\n\n**Cause:** The install directory (`~/.local/bin`) is not in your PATH.\n\n**Solution:**\n\n```bash\n# 1. Check if install directory exists\nls -la ~/.local/bin/\n\n# 2. Check if PATH includes the directory\necho $PATH | tr ':' '\\n' | grep local\n\n# 3. Check shell config (macOS defaults to zsh)\ncat ~/.zshrc | grep local\n\n# 4. If not configured, add manually\necho 'export PATH=\"$HOME/.local/bin:$PATH\"' \u003e\u003e ~/.zshrc\n\n# 5. Reload config\nsource ~/.zshrc\n```\n\n### WezTerm Not Detecting Commands\n\nIf WezTerm cannot find ccb commands but regular Terminal can:\n\n- WezTerm may use a different shell config\n- Add PATH to `~/.zprofile` as well:\n\n```bash\necho 'export PATH=\"$HOME/.local/bin:$PATH\"' \u003e\u003e ~/.zprofile\n```\n\nThen restart WezTerm completely (Cmd+Q, reopen).\n\n\u003c/details\u003e\n\n---\n\n## 🗣️ Usage\n\nOnce started, collaborate naturally. Claude will detect when to delegate tasks.\n\n**Common Scenarios:**\n\n- **Code Review:** *\"Have Codex review the changes in `main.py`.\"*\n- **Second Opinion:** *\"Ask Gemini for alternative implementation approaches.\"*\n- **Pair Programming:** *\"Codex writes the backend logic, I'll handle the frontend.\"*\n- **Architecture:** *\"Let Codex design the module structure first.\"*\n- **Info Exchange:** *\"Fetch 3 rounds of Codex conversation and summarize.\"*\n\n### 🎴 Fun \u0026 Creative: AI Poker Night!\n\n\u003e *\"Let Claude, Codex and Gemini play Dou Di Zhu! You deal the cards, everyone plays open hand!\"*\n\u003e\n\u003e 🃏 Claude (Landlord) vs 🎯 Codex + 💎 Gemini (Farmers)\n\n\u003e **Note:** Manual commands (like `cask`, `cping`) are usually invoked by Claude automatically. See Command Reference for details.\n\n---\n\n## 📝 Command Reference\n\n### Codex Commands\n\n| Command | Description |\n| :--- | :--- |\n| `/cask \u003cmsg\u003e` | Background mode: Submit task to Codex, free to continue other tasks (recommended) |\n| `cpend [N]` | Fetch Codex conversation history, N controls rounds (default 1) |\n| `cping` | Test Codex connectivity |\n\n### Gemini Commands\n\n| Command | Description |\n| :--- | :--- |\n| `/gask \u003cmsg\u003e` | Background mode: Submit task to Gemini |\n| `gpend [N]` | Fetch Gemini conversation history |\n| `gping` | Test Gemini connectivity |\n\n---\n\n## 🧩 Skills\n\n- **/all-plan**: Collaborative multi-AI design with Superpowers brainstorming.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e/all-plan details \u0026 usage\u003c/b\u003e\u003c/summary\u003e\n\nUsage:\n```\n/all-plan \u003crequirement\u003e\n```\n\nExample:\n```\n/all-plan Design a caching layer for the API with Redis\n```\n\nHow it works:\n1. **Requirement Refinement** - Socratic questioning to uncover hidden needs\n2. **Parallel Independent Design** - Each AI designs independently (no groupthink)\n3. **Comparative Analysis** - Merge insights, detect anti-patterns\n4. **Iterative Refinement** - Cross-AI review and critique\n5. **Final Output** - Actionable implementation plan\n\nKey features:\n- **Socratic Ladder**: 7 structured questions for deep requirement mining\n- **Superpowers Lenses**: Systematic alternative exploration (10x scale, remove dependency, invert flow)\n- **Anti-pattern Detection**: Proactive risk identification across all designs\n\nWhen to use:\n- Complex features requiring diverse perspectives\n- Architectural decisions with multiple valid approaches\n- High-stakes implementations needing thorough validation\n\n\u003c/details\u003e\n\n---\n\n## 🖥️ Editor Integration: Neovim + Multi-AI Review\n\n\u003cimg src=\"assets/nvim.png\" alt=\"Neovim integration with multi-AI code review\" width=\"900\"\u003e\n\n\u003e Combine with editors like **Neovim** for seamless code editing and multi-model review workflow. Edit in your favorite editor while AI assistants review and suggest improvements in real-time.\n\n---\n\n## 📋 Requirements\n\n- **Python 3.10+**\n- **Terminal:** [WezTerm](https://wezfurlong.org/wezterm/) (Highly Recommended) or tmux\n\n---\n\n## 🗑️ Uninstall\n\n```bash\nccb uninstall\nccb reinstall\n\n# Fallback:\n./install.sh uninstall\n```\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Windows fully supported** (WSL + Native via WezTerm)\n\n---\n\n**Join our community**\n\n📧 Email: bfly123@126.com\n💬 WeChat: seemseam-com\n\n\u003cimg src=\"assets/weixin.png\" alt=\"WeChat Group\" width=\"300\"\u003e\n\n\u003c/div\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eVersion History\u003c/b\u003e\u003c/summary\u003e\n\n### v5.0.4\n- **OpenCode**: 修复 `-r` 恢复在多项目切换后失效的问题\n\n### v5.0.3\n- **Daemons**: 全新的稳定守护进程设计\n\n### v5.0.1\n- **Skills**: New `/all-plan` with Superpowers brainstorming + availability gating; Codex `lping/lpend` added; `gask` keeps brief summaries with `CCB_DONE`.\n- **CCA Status Bar**: CCA label now reads role name from `.autoflow/roles.json` (supports `_meta.name`) and caches per path.\n- **Installer**: Copy skill subdirectories (e.g., `references/`) for Claude/Codex installs.\n- **CLI**: Added `ccb uninstall` / `ccb reinstall` with Claude config cleanup.\n- **Routing**: Tighter project/session resolution (prefer `.ccb_config` anchor; avoid cross-project Claude session mismatches).\n\n### v5.0.0\n- **Claude Independence**: No need to start Claude first; Codex (or any agent) can be the primary CLI\n- **Unified Control**: Single entry point controls Claude/OpenCode/Gemini equally\n- **Simplified Launch**: Removed `ccb up`; default `ccb.config` is auto-created when missing\n- **Flexible Mounting**: More flexible pane mounting and session binding\n- **Daemon Autostart**: `caskd`/`laskd` auto-start in WezTerm/tmux when needed\n- **Session Robustness**: PID liveness checks prevent stale sessions\n\n### v4.1.3\n- **Codex Config**: Automatically migrate deprecated `sandbox_mode = \"full-auto\"` to `\"danger-full-access\"` to fix Codex startup\n- **Stability**: Fixed race conditions where fast-exiting commands could close panes before `remain-on-exit` was set\n- **Tmux**: More robust pane detection (prefer stable `$TMUX_PANE` env var) and better fallback when split targets disappear\n\n### v4.1.2\n- **Performance**: Added caching for tmux status bar (git branch \u0026 ccb status) to reduce system load\n- **Strict Tmux**: Explicitly require `tmux` for auto-launch; removed error-prone auto-attach logic\n- **CLI**: Added `--print-version` flag for fast version checks\n\n### v4.1.1\n- **CLI Fix**: Improved flag preservation (e.g., `-a`) when relaunching `ccb` in tmux\n- **UX**: Better error messages when running in non-interactive sessions\n- **Install**: Force update skills to ensure latest versions are applied\n\n### v4.1.0\n- **Async Guardrail**: `cask/gask/oask` prints a post-submit guardrail reminder for Claude\n- **Sync Mode**: add `--sync` to suppress guardrail prompts for Codex callers\n- **Codex Skills**: update `oask/gask` skills to wait silently with `--sync`\n\n### v4.0.9\n- **Project_ID Simplification**: `ccb_project_id` uses current-directory `.ccb_config/` anchor (no ancestor traversal, no git dependency)\n- **Codex Skills Stability**: Codex `oask/gask` skills default to waiting (`--timeout -1`) to avoid sending the next task too early\n\n### v4.0.8\n- **Daemon Log Binding Refresh**: `caskd` daemon now periodically refreshes `.codex-session` log paths by parsing `start_cmd` and scanning latest logs\n- **Tmux Clipboard Enhancement**: Added `xsel` support and `update-environment` for better clipboard integration across GUI/remote sessions\n\n### v4.0.7\n- **Tmux Status Bar Redesign**: Dual-line status bar with modern dot indicators (●/○), git branch, CCA status, and CCB version display\n- **Session Freshness**: Always scan logs for latest session instead of using cached session file\n- **Simplified Auto Mode**: Removed CCA detection logic from `ccb -a`, now purely uses `--dangerously-skip-permissions`\n\n### v4.0.6\n- **Session Overrides**: `cping/gping/oping/cpend/opend` support `--session-file` / `CCB_SESSION_FILE` to bypass wrong `cwd`\n\n### v4.0.5\n- **Gemini Reliability**: Retry reading Gemini session JSON to avoid transient partial-write failures\n- **Claude Code Reliability**: `gpend` supports `--session-file` / `CCB_SESSION_FILE` to bypass wrong `cwd`\n\n### v4.0.4\n- **Fix**: Auto-repair duplicate `[projects.\\\"...\\\"]` entries in `~/.codex/config.toml` before starting Codex\n\n### v4.0.3\n- **Project Cleanliness**: Store session files under `.ccb_config/` (fallback to legacy root dotfiles)\n- **Claude Code Reliability**: `cask/gask/oask` support `--session-file` / `CCB_SESSION_FILE` to bypass wrong `cwd`\n- **Codex Config Safety**: Write auto-approval settings into a CCB-marked block to avoid config conflicts\n\n### v4.0.2\n- **CCA Detection**: Improved install directory inference for various layouts\n- **Clipboard Paste**: Cross-platform support (xclip/wl-paste/pbpaste) in tmux config\n- **Install UX**: Auto-reload tmux config after installation\n- **Stability**: Default TMUX_ENTER_DELAY set to 0.5s for better reliability\n\n### v4.0.1\n- **Tokyo Night Theme**: Switch tmux status bar and pane borders to Tokyo Night color palette\n\n### v4.0\n- **Full Refactor**: Rebuilt from the ground up with a cleaner architecture\n- **Perfect tmux Support**: First-class splits, pane labels, borders and statusline\n- **Works in Any Terminal**: Recommended to run everything in tmux (except native Windows)\n\n### v3.0.0\n- **Smart Daemons**: `caskd`/`gaskd`/`oaskd` with 60s idle timeout \u0026 parallel queue support\n- **Cross-AI Collaboration**: Support multiple agents (Claude/Codex) calling one agent (OpenCode) simultaneously\n- **Interruption Detection**: Gemini now supports intelligent interruption handling\n- **Chained Execution**: Codex can call `oask` to drive OpenCode\n- **Stability**: Robust queue management and lock files\n\n### v2.3.9\n- Fix oask session tracking bug - follow new session when OpenCode creates one\n\n### v2.3.8\n- Simplify CCA detection: check for `.autoflow` folder in current directory\n- Plan mode enabled for CCA projects regardless of `-a` flag\n\n### v2.3.7\n- Per-directory lock: different working directories can run cask/gask/oask independently\n\n### v2.3.6\n- Add non-blocking lock for cask/gask/oask to prevent concurrent requests\n- Unify oask with cask/gask logic (use _wait_for_complete_reply)\n\n### v2.3.5\n- Fix plan mode conflict with auto mode (--dangerously-skip-permissions)\n- Fix oask returning stale reply when OpenCode still processing\n\n### v2.3.4\n- Auto-enable plan mode when CCA (Claude Code Autoflow) is installed\n\n### v2.3.3\n- Simplify cping.md to match oping/gping style (~65% token reduction)\n\n### v2.3.2\n- Optimize skill files: extract common patterns to docs/async-ask-pattern.md (~60% token reduction)\n\n### v2.3.1\n- Fix race condition in gask/cask: pre-check for existing messages before wait loop\n\n\u003c/details\u003e\n","funding_links":[],"categories":["Command-line Tools","AI应用","Agent Orchestration","Multi-Agent Systems","\u003ca name=\"tools\"\u003e\u003c/a\u003eTools and session management","🤖 Multi-Agent Orchestration \u0026 Collaboration","Table of Contents"],"sub_categories":["Parallel Processing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfly123%2Fclaude_code_bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfly123%2Fclaude_code_bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfly123%2Fclaude_code_bridge/lists"}