Agent Squad Bridge
Integrates with Google Antigravity/Gemini CLI, providing tools like ask_gemini and ask_agent to run headless non-interactive Gemini sessions for security reviews, edge-case analysis, and research.
Integrates with OpenAI's GPT/Codex via the OpenAI API, providing tools like ask_codex and ask_agent for algorithmic optimization and specialist invocations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent Squad Bridgeask Claude to review my latest diff and open a review ticket"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ Agent Squad Bridge
Bidirectional Multi-Agent MCP Collaboration Runtime & Discussion Space Web UI
Orchestrating Claude Code, Google Antigravity (Gemini), GPT / Codex, and OpenCode on your local machine with isolated Git worktrees, turn-budget safeguards, and real-time collaboration.
🌟 Overview
Inspired by the architectures of Claude Squad, gemini-mcp, agent-mcp, and Vibe Kanban, Agent Squad Bridge transforms individual AI coding CLIs into a synchronized engineering team.
Instead of running disjointed chat windows or letting autonomous agents blindly overwrite the same files, Agent Squad Bridge provides:
Local MCP Collaboration Server: Exposes cross-agent communication tools (
ask_agent,send_agent_message,request_review,create_agent_worktree, etc.).Turn-Budget & Recursion Safeguards: Prevents recursive ping-pong loops (e.g. Claude ➔ Gemini ➔ Claude ➔ Gemini) by tracking call depth and decrementing remaining turn budgets.
Isolated Git Worktrees: Automatically assigns separate branches (
agent/claude/*,agent/gemini/*, etc.) in isolated directories (.worktrees/) so parallel coding never causes merge collisions.Interactive Discussion Space & Kanban Web UI: A clean, modern local web dashboard (
agent-team ui) to inspect cross-agent discussions, track tasks on a Kanban board, view code review diffs, and intervene as a human-in-the-loop.
YOUR WORKSTATION
┌────────────────────────────────────────────────────────────────────────┐
│ WEB DASHBOARD (agent-team ui - http://localhost:8765) │
│ ┌──────────────────────────────────────────────────────────────────┐ │
│ │ Project Selector | Discussion Space (Chat) | Task Kanban | Review │ │
│ └──────────────────────────────────┬───────────────────────────────┘ │
│ │ REST API │
│ ▼ │
│ ┌──────────────────────────────────┐ │
│ │ Local Agent Bridge & MCP │ │
│ │ (FastMCP / Starlette) │ │
│ └────────────────┬─────────────────┘ │
│ │ │
│ ┌───────────────┬───────────┴───────────┬───────────────┐ │
│ ▼ ▼ ▼ ▼ │
│ Claude Code Antigravity / Gemini GPT / Codex OpenCode │
│ (Architecture) (Review/Research) (Algorithm) (Executor) │
│ │ │ │ │ │
│ └───────────────┼───────────────────────┴───────────────┘ │
│ ▼ │
│ Shared Multi-Project Store │
│ (messages, tasks, DAG, reviews) │
│ │ │
│ ▼ │
│ Isolated Git Worktrees per Agent / Branch │
│ (.worktrees/claude-*, .worktrees/gemini-*, ...) │
└────────────────────────────────────────────────────────────────────────┘Related MCP server: Rutherford MCP Server
🚀 Quick Start Tutorial
1. Prerequisites
Python: 3.11+ (recommended with
uv)Git: Installed and available in PATH
Claude Code: Installed via npm (
npm install -g @anthropic-ai/claude-code)Gemini CLI / Antigravity: Installed via npm (
npm install -g @google/gemini-cli)OpenAI API Key (Optional): Set
OPENAI_API_KEYfor live GPT / Codex invocations. Override the balancedgpt-5.6-terradefault withAGENT_BRIDGE_OPENAI_MODEL.OpenCode (Optional): Install the
opencodeCLI or setOPENCODE_BINto its executable
2. Installation & Setup
Clone the repository and sync dependencies:
git clone https://github.com/kagtgi/claude-antigravity-bridge.git
cd claude-antigravity-bridge
# Sync virtualenv using uv
uv sync3. Register MCP Servers
Run the automated registration command:
agent-team registerThis automatically configures the bridge into:
Google Antigravity / Gemini:
~/.gemini/config/mcp_config.jsonClaude Code: Registered via
claude mcp add agent-bridge
Verify registration:
agent-team check
claude mcp listYou should see:
agent-bridge: ... - √ Connected4. Launch the Discussion Space Web UI
Start the interactive web dashboard:
agent-team uiThis automatically opens http://localhost:8765 in your default browser.
Web Dashboard Highlights:
📁 Project Selector: Filter discussions and tasks by workspace.
💬 Discussion Space: Chronological timeline of inter-agent messages, thoughts, and reviews with color-coded badges:
🟣 Claude (Purple)
🔵 Gemini (Cyan)
🟢 Codex (Emerald)
🟠 OpenCode (Amber)
👤 User (Indigo)
📋 Task Kanban Board: Visual columns for
Pending,In Progress,Review Needed, andCompleted.🔍 Code Reviews: Review ticket inspector displaying branch diffs and feedback verdicts.
✈️ Human Intervention Bar: Send guidance or new tasks to all agents or a specific agent at any time.
🛠️ Multi-Agent Collaboration Workflow
Here is a typical production workflow where Claude builds, Gemini conducts security reviews, and Codex handles algorithmic optimization:
Step 1: Prompt Claude Code
Start Claude Code in your project directory:
claudeInstruct Claude:
"Implement user authentication in
auth.ts. Once implemented, callask_geminito perform a rigorous security and edge-case review of your changes. If Gemini finds any vulnerabilities, address them before finishing."
Step 2: Automated Cross-Agent Review
Claude implements
auth.tsin branchagent/claude/auth-feature.Claude calls the bridge tool
ask_gemini:{ "prompt": "Review auth.ts for token rotation vulnerabilities and CSRF race conditions." }The bridge executes Gemini non-interactively in headless mode with turn-budget protection.
Gemini's analysis returns directly into Claude's context stream:
"Found 2 vulnerabilities: 1. Refresh token reuse window; 2. Missing SameSite flag on cookie."
Claude patches both issues and runs the test suite.
Claude calls
submit_resultto mark the task completed.
📦 MCP Tools Reference
The bridge registers the following 15 tools with both Claude Code and Antigravity:
Tool | Parameters | Description |
|
| Unified router dispatching to |
|
| Headless non-interactive Claude Code call ( |
|
| Headless non-interactive Gemini/Antigravity call ( |
|
| GPT / Codex specialist invocation via OpenAI API. |
|
| Autonomous OpenCode harness executor. |
|
| Post structured note to another agent or broadcast to |
|
| Fetch unread messages for an agent and mark them read. |
|
| Create formal review ticket with diff generation. |
|
| Record review feedback and an approval, change request, or comment verdict. |
|
| Check operational readiness of all agents or a specific agent. |
|
| Mark task completed with summary and commit SHA. |
|
| Query specific task or list all tasks for a project. |
|
| Update task progress in the shared state store. |
|
| Create isolated Git worktree ( |
| (none) | List all registered workspaces and activity metrics. |
💻 CLI Commands (agent-team)
# Run system diagnostics and verify agent paths
agent-team check
# Register MCP server with Claude Code and Antigravity
agent-team register
# Launch Discussion Space & Kanban Web Dashboard
agent-team ui [--port 8765] [--no-browser]
# Check active tasks, messages, and reviews
agent-team status [--project <project_id>]
# Query any agent directly from the terminal
agent-team ask claude "Summarize architectural best practices"
agent-team ask gemini "Review security considerations for JWTs"
# Post a message into the discussion space
agent-team send --to gemini -s "Review Request" -m "Please inspect auth module"
# Create a task on the Kanban board
agent-team task --title "Implement OAuth2 Flow" --assignee claude --status in_progress🛡️ Built-in Safeguards
Turn-Budget & Recursion Ceiling:
Monitored through
AGENT_BRIDGE_DEPTHandAGENT_BRIDGE_TURN_BUDGET.Halts execution when limits are reached, returning a synthesis instruction to eliminate runaway token loops.
Git Worktree Isolation:
Each agent operates in dedicated directories under
.worktrees/, keeping main repositories clean and avoiding simultaneous file overwrite conflicts.
Encoding & Shell Resilience:
Cross-platform Windows UTF-8 console stream wrappers prevent charmap crashes when printing multi-language text (including Vietnamese, Japanese, and emoji indicators).
Crash-Safe Shared State:
Cross-process locking and atomic file replacement prevent concurrent agents from losing each other's messages, tasks, or reviews.
Invalid JSON is reported without overwriting the existing state file.
Per-Agent Broadcast Delivery:
Broadcast messages track readers independently, so one agent cannot consume a team-wide message on behalf of every other agent.
📄 License
MIT License. Designed and maintained by kagtgi.
This server cannot be deployed
Maintenance
Related MCP Connectors
- ParleyOAuthdev.weldra
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI agents like Claude and Codex to coordinate on the same project through shared tasks, file locks, and a real-time dashboard, preventing conflicts and streamlining collaborative development.81MIT
- AlicenseAqualityAmaintenanceEnables one AI coding agent to delegate tasks to, and build consensus across, multiple other coding CLIs (Claude Code, Codex, etc.) by orchestrating them as headless subprocesses.186MIT
- AlicenseCqualityAmaintenanceRoutes coding tasks across multiple AI CLIs (Copilot, Claude Code, Gemini, etc.) with cost-aware tier routing and parallel wave orchestration.552Apache 2.0
- AlicenseAqualityCmaintenanceMulti-agent orchestration server that enables parallel task delegation, sequential pipelines, cron scheduling, and cross-model peer review via CLI providers like Codex, Antigravity, OpenCode, and Claude Code.4265MIT