Skip to content

Real-time multi-AI collaboration: Claude, Codex & Gemini with persistent context, minimal token overhead

License

Notifications You must be signed in to change notification settings

masfrank/claude_code_bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code Bridge (ccb) v2.3

Silky Smooth Claude & Codex & Gemini Collaboration via Split-Pane Terminal

Build a real AI expert team. Give Claude Code / Codex / Gemini partners that never forget.

Version License: MIT Python 3.10+ Platform

English | 中文

Split-pane collaboration demo

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 solution.

⚡ Why ccb?

Feature Benefit
🖥️ Visual & Controllable Multiple AI models in split-pane CLI. See everything, control everything.
🧠 Persistent Context Each AI maintains its own memory. Close and resume anytime (-r flag).
📉 Token Savings Sends lightweight prompts instead of full file history.
🪟 Native Workflow Integrates directly into WezTerm (recommended) or tmux. No complex servers required.

🚀 Quick Start

Step 1: Install WezTerm (native .exe for Windows)

Step 2: Choose installer based on your environment:

Linux / macOS
git clone https://github.com/bfly123/claude_code_bridge.git
cd claude_code_bridge
./install.sh install
WSL (Windows Subsystem for Linux)

Use this if your Claude/Codex/Gemini runs in WSL.

# Run inside WSL terminal
git clone https://github.com/bfly123/claude_code_bridge.git
cd claude_code_bridge
./install.sh install
Windows Native

Use this if your Claude/Codex/Gemini runs natively on Windows.

git clone https://github.com/bfly123/claude_code_bridge.git
cd claude_code_bridge
powershell -ExecutionPolicy Bypass -File .\install.ps1 install

Run

ccb up codex            # Start Codex
ccb up gemini           # Start Gemini
ccb up codex gemini     # Start both

Flags

Flag Description Example
-r Resume previous session context ccb up codex -r
-a Auto-mode, skip permission prompts ccb up codex -a
-h Show help information ccb -h
-v Show version and check for updates ccb -v

Update

ccb update              # Update ccb to the latest version

🗣️ Usage

Once started, collaborate naturally. Claude will detect when to delegate tasks.

Common Scenarios:

  • Code Review: "Have Codex review the changes in main.py."
  • Second Opinion: "Ask Gemini for alternative implementation approaches."
  • Pair Programming: "Codex writes the backend logic, I'll handle the frontend."
  • Architecture: "Let Codex design the module structure first."
  • Info Exchange: "Fetch 3 rounds of Codex conversation and summarize."

🎴 Fun & Creative: AI Poker Night!

"Let Claude, Codex and Gemini play Dou Di Zhu (斗地主)! You deal the cards, everyone plays open hand!"

🃏 Claude (Landlord) vs 🎯 Codex + 💎 Gemini (Farmers)

Note: Manual commands (like cask, cping) are usually invoked by Claude automatically. See Command Reference for details.


📝 Command Reference

Codex Commands

Command Description
/cask <msg> Background mode: Submit task to Codex, free to continue other tasks (recommended)
/cask-w <msg> Foreground mode: Submit task and wait for response, faster but blocking
cpend [N] Fetch Codex conversation history, N controls rounds (default 1)
cping Test Codex connectivity

Gemini Commands

Command Description
/gask <msg> Background mode: Submit task to Gemini
/gask-w <msg> Foreground mode: Submit task and wait for response
gpend [N] Fetch Gemini conversation history
gping Test Gemini connectivity

🖥️ Editor Integration: Neovim + Multi-AI Review

Neovim integration with multi-AI code review

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.


📋 Requirements

  • Python 3.10+
  • Terminal: WezTerm (Highly Recommended) or tmux

🗑️ Uninstall

./install.sh uninstall

Windows fully supported (WSL + Native via WezTerm)

About

Real-time multi-AI collaboration: Claude, Codex & Gemini with persistent context, minimal token overhead

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.4%
  • Shell 13.7%
  • PowerShell 6.8%
  • Batchfile 0.1%