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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⚡ 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: synco-mcp
🚀 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
1Command center for developers coordinating AI coding agents across projects.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
291
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnects multiple AI agents (Codex, Claude Code, Grok, etc.) into a coordinated, auditable team with shared memory, task ownership, and human oversight, enabling parallel collaboration without conflicts.239Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI coding agents to coordinate on a shared software project by registering, claiming tasks, declaring file intents, publishing structured change reports, and handing off context, with a local dashboard showing state in near real time.MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to delegate coding tasks in a chosen project to the official Codex and Claude CLI agents from within an existing chat, then convene a council of configured models to gather independent opinions and review the resulting files and test runs. It also manages multi-provider API connections, model catalogs, and per-task token, time, and cost limits.MIT
- FlicenseNot gradedqualityAmaintenanceEnables a primary AI coding assistant to delegate tasks to multiple specialized CLI agents (such as Gemini, Claude, Codex, and Cursor) in parallel from a single prompt, sharing project context across all of them. It aggregates their outputs into one synthesized response while relying on the user's existing CLI tools and subscriptions.-