Delegate tasks to external AI agents (Codex, Gemini, and more)
npx claudepluginhub kira-pgr/agent-bridgeDelegate tasks to external AI CLI agents (Codex, Gemini, and more)
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
npm install -g @openai/codex then codex loginnpm install -g @google/gemini-cli then run gemini once to authenticateThe 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:
Or spawn agents directly:
agent-bridge:codex — delegates to OpenAI Codex CLIagent-bridge:gemini — delegates to Google Gemini CLIagent-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:
agents/<name>.md with the agent definition (see existing agents for the pattern)plugin.json agents arrayscripts/session-context.sh with the new agent's model optionsMIT