How jh3779/agent-handoff-bridge works
Agent Handoff Bridge coordinates task context across Claude Code, Codex, and Gemini: users select a workspace, create or continue a shared handoff packet, preview or execute a provider run, and retain run state for later handoffs. The product also offers terminal, desktop, and browser-based controllers, API-key provider access, workspace browsing and chat history, plus a separate remote task server. The README and sampled files establish the main CLI and Web UI dispatch paths; unsampled subsystem internals are represented without inferred connections.
Main entry points: handoff_bridge.py Bridge CLI · handoff_webui.py Web UI Server · webui_bridge_run.py Provider Dispatch · webui_api_key_mode.py API-Key Mode
Components 19
User Controllers
- Task Controller
handoff_control.py - Desktop Controller
handoff_desktop.py - Tauri Shell
src-tauri/src/lib.rs
Handoff Runtime
- Bridge CLI
handoff_bridge.py - Task Packet
.handoff/current.md - Run State
Web UI
- Web UI Server
handoff_webui.py - Web Client
webui/app.js - Workspace Access
webui_workspace.py - Chat History
webui_chat_storage.py - Provider Dispatch
webui_bridge_run.py - API-Key Mode
webui_api_key_mode.py - Provider Credentials
webui_credentials.py - Web UI Helpers
webui_common.py
Remote Access
- Remote Task Server
remote_handoff_server.py - Remote Submit Client
remote_handoff_submit.py
Providers
- Provider CLIs
- Provider APIs
Other components
- Operator
Connections 20
- Operator → Task Controller: issues task
README.md - Operator → Desktop Controller: selects workspace
README.md - Operator → Web Client: sends task
README.md - Task Controller → Bridge CLI: runs CLI
handoff_control.py - Desktop Controller → Bridge CLI: runs CLI
handoff_desktop.py - Tauri Shell → Web UI Server: wraps
- Web Client → Web UI Server: uses API
handoff_webui.py - Web UI Server → Workspace Access: validates paths
handoff_webui.py - Web UI Server → Provider Dispatch: dispatches run
handoff_webui.py - Web UI Server → Chat History: records history
webui_chat_storage.py - Web UI Server → Bridge CLI: scaffolds workspace
handoff_webui.py - Provider Dispatch → Bridge CLI: runs CLI
webui_bridge_run.py - Provider Dispatch → API-Key Mode: falls back
webui_bridge_run.py - API-Key Mode → Provider Credentials: reads keys
webui_api_key_mode.py - API-Key Mode → Provider APIs: calls API
webui_api_key_mode.py - Bridge CLI → Provider CLIs: runs provider
README.md - Bridge CLI → Task Packet: reads context
handoff_bridge.py - Bridge CLI → Run State: stores status
README.md - Operator → Remote Submit Client: submits task
- Remote Submit Client → Remote Task Server: sends request