How seemseam/claude_codex_bridge works
CCB is a multi-agent terminal workspace and cross-provider collaboration layer. The main workflow starts with a user launching the CLI, configuring a project and agents, creating visible terminal layouts, and coordinating provider sessions through shared messaging and queued delivery. A background daemon maintains project state, while the mobile gateway adds remote control, file transfer, and terminal access. The graph combines documented product capabilities with source-index-supported module relationships; several runtime paths are not excerpted, so those links are documented at the product level rather than inferred from folder names.
Main entry points: ccb.js CCB CLI · mobile_gateway/service.py Mobile gateway · dispatcher.py Job dispatcher · provider_execution/service.py Provider sessions
Components 20
Workspace setup
- CCB CLI
bin/ccb.js - Agent config
lib/agents/config_loader.py - Project context
lib/cli/context.py - Terminal layout
lib/agents/models_runtime/layout_runtime/nodes.py - Project namespace
lib/ccbd/services/project_namespace_runtime/backend.py
Agent runtime
- Provider sessions
lib/provider_execution/service.py - Native terminals
lib/terminal_runtime/tmux_backend_runtime/services.py
Collaboration
- Job dispatcher
lib/ccbd/services/dispatcher.py - Message queues
lib/mailbox_kernel/service.py - Completion
lib/completion/orchestration.py - Heartbeat
lib/heartbeat/engine.py
Daemon control
- CCB daemon
lib/ccbd/main.py - Control socket
lib/ccbd/socket_server.py - Project view
lib/ccbd/project_view/service.py
Mobile access
- Mobile gateway
lib/mobile_gateway/service.py - Mobile app
mobile/app/android/app/src/main/kotlin/io/ccb/mobile/ccb_mobile/BackgroundConnectionService.kt - Mobile relay
lib/mobile_gateway/relay_service.py
Other components
- User
- CLI agents
- Remote user
Connections 21
- User → CCB CLI: launches
README.md - CCB CLI → Project context: selects project
lib/cli/context.py - CCB CLI → Agent config: configures agents
README.md - Project context → Terminal layout: sets up workspace
README.md - Terminal layout → Project namespace: materializes layout
README.md - Project namespace → Native terminals: hosts sessions
lib/ccbd/services/project_namespace_runtime/backend.py - Provider sessions → CLI agents: runs providers
README.md - Provider sessions → Native terminals: uses native terminals
README.md - CCB CLI → Provider sessions: starts sessions
README.md - CCB CLI → Job dispatcher: submits work
README.md - Job dispatcher → Message queues: coordinates messages
README.md - Job dispatcher → Completion: finalizes work
README.md - Heartbeat → Job dispatcher: tracks progress
- CCB daemon → Control socket: serves control
README.md - Control socket → Project view: provides project state
README.md - CCB daemon → Project namespace: preserves project state
README.md - Remote user → Mobile app: controls remotely
README.md - Mobile app → Mobile gateway: connects to
README.md - Mobile gateway → Control socket: controls projects
lib/mobile_gateway/service.py - Mobile gateway → Mobile relay: bridges live output
README.md - Mobile gateway → CLI agents: transfers files
README.md