| name | ccb-launcher |
| description | Launch and manage CCB (Claude Code Bridge) multi-AI collaboration environment. Use when user wants to start CCB, check CCB status, launch WezTerm, configure CCB providers, or troubleshoot CCB environment issues. Handles WezTerm launching, CCB startup, provider configuration, and environment validation. |
CCB Launcher
Automated CCB (Claude Code Bridge) environment setup and launch management.
Overview
This skill handles the complete workflow for starting CCB multi-AI collaboration:
- Environment validation
- WezTerm launching
- CCB startup with configured providers
- Status monitoring and troubleshooting
When to Use
Trigger this skill when user:
- Asks to "start CCB" or "launch CCB"
- Wants to "open WezTerm"
- Needs to check CCB status
- Has CCB environment issues
- Wants to configure CCB providers
Quick Start
Start CCB (Complete Workflow)
ccb -v
open -a WezTerm
ccb
ccb codex gemini
Core Workflows
Workflow 1: Check CCB Status
ccb -v
cat ~/.ccb/ccb.config
which cask gask oask iask kask qask dskask dask
Workflow 2: Launch WezTerm
macOS:
open -a WezTerm
wezterm start
echo $TERM_PROGRAM
Detection:
if [ "$TERM_PROGRAM" = "WezTerm" ]; then
echo "✅ Running in WezTerm"
else
echo "❌ Not in WezTerm - Opening WezTerm..."
open -a WezTerm
fi
Workflow 3: Start CCB with Providers
Using ccb.config (Recommended):
ccb
Manual provider specification:
ccb codex gemini
ccb codex gemini opencode iflow kimi qwen deepseek droid claude
ccb codex gemini cmd
ccb -r
ccb -a
ccb -a -r codex
Workflow 4: Validate Environment
Pre-flight checks:
which wezterm
wezterm --version
which ccb
ccb -v
python3 --version
which cask gask oask iask kask qask dskask dask cping gping oping iping kping qping dskping dping
ls -la ~/.ccb/
cat ~/.ccb/ccb.config
Workflow 5: Troubleshoot Issues
Common issues and solutions:
Issue 1: "CCB must run inside tmux or WezTerm"
open -a WezTerm
Issue 2: Python version too old
python3 --version
brew install python@3.13
export PATH="/opt/homebrew/opt/python@3.13/libexec/bin:$PATH"
source ~/.zshrc
Issue 3: CCB commands not found
echo $PATH | tr ':' '\n' | grep .local/bin
export PATH="$HOME/.local/bin:$PATH"
source ~/.zshrc
Issue 4: Configuration not found
cat > ~/.ccb/ccb.config << 'EOF'
codex,gemini,opencode,iflow,kimi,qwen,deepseek,claude,cmd
EOF
mkdir -p .ccb_config
cat > .ccb_config/ccb.config << 'EOF'
codex,gemini,iflow,kimi,qwen,deepseek
EOF
Decision Tree
User wants to use CCB?
│
├─ Check: Is CCB installed?
│ ├─ No → Guide installation
│ └─ Yes → Continue
│
├─ Check: Running in WezTerm/tmux?
│ ├─ No → Launch WezTerm
│ │ open -a WezTerm
│ │ (Tell user to run CCB in new WezTerm window)
│ └─ Yes → Continue
│
├─ Check: Environment valid?
│ ├─ Python < 3.10 → Guide upgrade
│ ├─ Missing commands → Check PATH
│ └─ All good → Continue
│
├─ Check: Configuration exists?
│ ├─ No → Create ~/.ccb/ccb.config
│ └─ Yes → Continue
│
└─ Start CCB
├─ Use config: ccb
├─ Specific providers: ccb codex gemini
├─ Resume session: ccb -r
└─ Auto mode: ccb -a
Execution Steps
When user asks to start CCB, follow these steps:
Step 1: Validate Environment
ccb -v
python3 --version
echo $TERM_PROGRAM
Parse output to determine:
- ✅ CCB version
- ✅ Python version
- ✅ Current terminal
Step 2: Handle Terminal
If not in WezTerm:
open -a WezTerm
If in WezTerm:
echo "✅ Running in WezTerm"
Step 3: Check Configuration
if [ -f ~/.ccb/ccb.config ]; then
cat ~/.ccb/ccb.config
else
cat > ~/.ccb/ccb.config << 'EOF'
codex,gemini,opencode,claude,cmd
EOF
echo "✅ Created default CCB config"
fi
Step 4: Provide Launch Instructions
IMPORTANT: Cannot start CCB directly from this shell because:
- CCB requires WezTerm/tmux
- CCB creates split panes
- Must be run interactively by user
Instead, provide clear instructions:
cat << 'EOF'
🚀 Ready to start CCB!
Run this command in WezTerm:
ccb
Or with specific providers:
ccb codex gemini
Or resume previous session:
ccb -r
The terminal will split into multiple panes:
┌─────────┬─────────┬─────────┬─────────┐
│ Codex │ Gemini │ OpenCode│ DeepSeek│
├─────────┼─────────┼─────────┼─────────┤
│ iFlow │ Kimi │ Qwen │ Claude │
├─────────┴─────────┴─────────┴─────────┤
│ CCB-Cmd (bash) │
└───────────────────────────────────────┘
EOF
Step 5: Post-Launch Verification
After user starts CCB, verify:
ps aux | grep ccb | grep -v grep
cping
gping
oping
iping
kping
qping
dskping
dping
Common Use Cases
Use Case 1: First-time CCB Launch
User says: "Start CCB"
Actions:
- Check environment (
ccb -v, python3 --version)
- Launch WezTerm (
open -a WezTerm)
- Tell user: "✅ WezTerm launched. Run 'ccb' in the new window."
Use Case 2: Quick Start (Already in WezTerm)
User says: "Launch CCB with Codex and Gemini"
Actions:
- Verify in WezTerm (
echo $TERM_PROGRAM)
- Provide command:
ccb codex gemini
- Explain what will happen (split panes)
Use Case 3: Troubleshooting
User says: "CCB won't start"
Actions:
- Run diagnostics
- Identify issue (Python, terminal, PATH, config)
- Provide solution
- Verify fix
Use Case 4: Resume Session
User says: "Resume my CCB session"
Actions:
- Check if sessions exist (
ls ~/.ccb/sessions)
- Provide command:
ccb -r
- Explain session restoration
Reference Commands
CCB Commands
ccb
ccb -h
ccb -v
ccb -r
ccb -a
ccb update
ccb update cca
Environment Commands
open -a WezTerm
wezterm --version
ccb -v
python3 --version
which cask gask oask
Configuration
cat ~/.ccb/ccb.config
cat .ccb_config/ccb.config
ls ~/.ccb/sessions
Best Practices
-
Always validate environment first
- Check CCB, Python, WezTerm versions
- Verify commands are in PATH
-
Launch WezTerm before CCB
- CCB requires terminal multiplexer
- Cannot start CCB from non-WezTerm shell
-
Use configuration files
- Prefer
~/.ccb/ccb.config over manual flags
- Create project-specific configs when needed
-
Handle errors gracefully
- Provide clear error messages
- Suggest specific solutions
- Verify fixes work
-
Explain what's happening
- Tell user what command to run
- Explain expected behavior (split panes)
- Confirm successful launch
Error Handling
Common Errors
Error: "CCB must run inside tmux or WezTerm"
open -a WezTerm
Error: "Missing dependency: python (3.10+ required)"
brew install python@3.13
export PATH="/opt/homebrew/opt/python@3.13/libexec/bin:$PATH"
source ~/.zshrc
Error: "command not found: ccb"
export PATH="$HOME/.local/bin:$PATH"
source ~/.zshrc
Error: "No configuration found"
cat > ~/.ccb/ccb.config << 'EOF'
codex,gemini,opencode,iflow,kimi,qwen,deepseek,claude,cmd
EOF
Notes
- Cannot execute CCB directly: This skill prepares the environment but cannot start CCB itself (requires interactive WezTerm session)
- WezTerm is required: CCB needs terminal multiplexing for split panes
- Configuration is key: Proper config makes CCB launch seamless
- Session persistence: Use
-r flag to maintain AI context across restarts