Connect AI agents together. Let Claude Code delegate tasks to GPT, Gemini, and more.
agent-bridge is a Claude Code plugin that bridges different AI agents, allowing them to collaborate on your tasks. When Claude gets stuck on a bug, needs a second opinion, or when you want a specific model's perspective — just delegate the task to another agent without leaving your workflow.
Every AI model has strengths. GPT excels at certain reasoning tasks. Gemini brings its own perspective. Instead of switching between terminals and copy-pasting context, agent-bridge lets Claude hand off tasks directly to other AI CLIs and bring back the results.
You → Claude Code → agent-bridge → Codex CLI (GPT) → results back to Claude
→ Gemini CLI → results back to Claude
| Agent | CLI | Models |
|---|---|---|
| codex | OpenAI Codex CLI | gpt-5.4, gpt-5.3-codex, gpt-5.3-codex-spark |
| gemini | Google Gemini CLI | gemini-2.5-pro, gemini-2.5-flash, gemini-3-pro, gemini-3-flash, gemini-3.1-pro-preview |
/plugin marketplace add Kira-Pgr/agent-bridge
/plugin install agent-bridge
curl -fsSL https://raw.githubusercontent.com/Kira-Pgr/agent-bridge/main/install.sh | bash- Claude Code v1.0.33+
- At least one agent CLI installed:
- Codex:
npm install -g @openai/codexthencodex login - Gemini:
npm install -g @google/gemini-clithen rungeminionce to authenticate
- Codex:
- You ask Claude to delegate a task to Codex or Gemini
- Claude asks you which model and settings to use (via interactive prompt)
- A bridge subagent spawns and runs the external CLI
- Results come back to Claude, who summarizes what happened
The plugin uses a SessionStart hook to inject instructions into Claude's context, so Claude knows to ask for your model preferences before delegating.
Ask Claude naturally:
- "Run this through Codex for a second opinion"
- "Ask Gemini to review this function"
- "Delegate this bug to GPT — I'm stuck"
Or spawn agents directly:
agent-bridge:codex— delegates to OpenAI Codex CLIagent-bridge:gemini— delegates to Google Gemini CLI
agent-bridge/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest with SessionStart hook
│ └── marketplace.json # Marketplace metadata
├── agents/
│ ├── codex.md # Codex bridge agent
│ └── gemini.md # Gemini bridge agent
├── scripts/
│ ├── session-context.sh # Injects model selection instructions
│ └── check-deps.sh # CLI dependency checker
└── install.sh # One-liner installer
Want to bridge another AI CLI? It's straightforward:
- Create
agents/<name>.mdwith the agent definition (see existing agents for the pattern) - Add the path to
plugin.jsonagents array - Update
scripts/session-context.shwith the new agent's model options - Submit a PR
MIT