๐๐ข๐ก๐ก๐๐๐ง๐๐ก๐ ๐๐๐๐จ๐๐ ๐๐ก๐ ๐๐๐ ๐๐ก๐ ๐๐๐๐ก๐ง๐ฆ (๐๐๐๐๐ฅ๐๐๐ง๐๐ข๐ก๐๐ ๐ข๐ฅ๐๐๐๐ฆ๐ง๐ฅ๐๐ง๐๐ข๐ก)
Yesโan agent running on ๐๐ฅ๐๐ฎ๐๐ can directly invoke an agent running on ๐๐๐ฆ๐ข๐ง๐ข, and vice versa. Because an "agent" is simply an orchestration loop calling an LLM API or CLI, one agent can expose the other as a ๐ญ๐จ๐จ๐ฅ, ๐๐๐ ๐ฌ๐๐ซ๐ฏ๐๐ซ, or ๐ฌ๐ฎ๐-๐ฉ๐ซ๐จ๐๐๐ฌ๐ฌ.
๐
๐จ๐ฎ๐ซ ๐๐๐ฒ๐ฌ ๐ญ๐จ ๐๐จ๐ง๐ง๐๐๐ญ ๐๐ฅ๐๐ฎ๐๐ ๐๐ง๐ ๐๐๐ฆ๐ข๐ง๐ข ๐๐ ๐๐ง๐ญ๐ฌ
| Method | Best For | How It Works |
| :--- | :--- | :--- |
| ๐. ๐๐จ๐จ๐ฅ / ๐
๐ฎ๐ง๐๐ญ๐ข๐จ๐ง ๐๐๐ฅ๐ฅ๐ข๐ง๐ (๐๐๐-๐ญ๐จ-๐๐๐) | Custom code, Python/Node workflows, or backend services | Give your primary agent (e.g., Claude via the Anthropic SDK) a tool like `ask๐๐๐๐๐๐agent(prompt, context)`. When Claude calls that tool, your code runs a Gemini API request (`@google/genai` or `google-genai`)โor a full Gemini sub-agentโand passes the result back to Claude. |
| ๐. ๐๐๐ ๐๐๐ซ๐ฏ๐๐ซ ๐๐ซ๐๐ฉ๐ฉ๐๐ซ (๐๐จ๐๐๐ฅ ๐๐จ๐ง๐ญ๐๐ฑ๐ญ ๐๐ซ๐จ๐ญ๐จ๐๐จ๐ฅ) | ๐๐จ๐จ๐ ๐ฅ๐ ๐๐ง๐ญ๐ข๐ ๐ซ๐๐ฏ๐ข๐ญ๐ฒ, ๐๐ ๐๐จ๐๐ / ๐๐ฅ๐ข๐ง๐, ๐๐ฅ๐๐ฎ๐๐ ๐๐จ๐๐, or ๐๐๐ฆ๐ข๐ง๐ข ๐๐๐ | Wrap either agent as a local or remote ๐๐๐ ๐ฌ๐๐ซ๐ฏ๐๐ซ (or use a Gemini MCP bridge). Your Claude agent treats Gemini just like any other MCP toolโcalling it for second opinions, multimodal video/audio analysis, or large-context tasksโand Gemini can call a Claude MCP tool the exact same way. |
| ๐. ๐๐ก๐๐ฅ๐ฅ / ๐๐๐ ๐๐ฎ๐-๐๐ ๐๐ง๐ญ ๐๐ฑ๐๐๐ฎ๐ญ๐ข๐จ๐ง | Coding agents in terminal/IDE workflows | Install both ๐๐๐ฆ๐ข๐ง๐ข ๐๐๐ (or Google's `gemini-api` CLI) and ๐๐ฅ๐๐ฎ๐๐ ๐๐จ๐๐ on your system. A Claude agent can execute a shell command (`gemini-api generate ...` or `gemini -p "..."`) to delegate a task and read the JSON/text output, and Gemini CLI can shell out to `claude -p "..."` in reverse. |
| ๐. ๐๐ก๐๐ซ๐๐ ๐๐ญ๐๐ญ๐ / ๐๐๐ฌ๐ฌ๐๐ ๐ ๐๐ฎ๐ฌ (๐๐ฌ๐ฒ๐ง๐ ๐๐๐ง๐๐จ๐๐๐ฌ) | Long-running background agents across different machines or containers | Have both agents read and write tasks to a shared queueโsuch as a ๐๐ฅ๐จ๐ฎ๐ ๐
๐ข๐ซ๐๐ฌ๐ญ๐จ๐ซ๐ collection (like a state-tracker plugin) or an MCP message boardโwhere Claude posts a handoff document and a Gemini worker picks it up, processes it, and writes back the response. |
๐๐ซ๐๐๐ญ๐ข๐๐๐ฅ ๐๐๐ข๐ซ๐ข๐ง๐ ๐๐๐ญ๐ญ๐๐ซ๐ง๐ฌ
๐๐ฅ๐๐ฎ๐๐ ๐๐ฌ ๐๐ซ๐๐ก๐๐ฌ๐ญ๐ซ๐๐ญ๐จ๐ซ -> ๐๐๐ฆ๐ข๐ง๐ข ๐๐ฌ ๐๐ฉ๐๐๐ข๐๐ฅ๐ข๐ฌ๐ญ: ๐ถ๐๐๐ข๐๐ ๐๐๐๐๐ ๐ ๐ ๐๐๐ก๐ค๐๐๐ ๐โ๐๐๐๐ ๐๐ ๐๐๐๐๐ก๐ ๐๐๐๐ฆ, ๐กโ๐๐ ๐๐๐๐๐ ๐ ๐บ๐๐๐๐๐ ๐ ๐ข๐-๐๐๐๐๐ก ๐ก๐ ๐๐๐๐๐ฆ๐ง๐ ๐ ๐๐๐๐ ๐ฃ๐๐๐๐, ๐๐๐ ๐๐๐๐ก ๐ ๐๐๐๐๐๐ โ๐๐ก๐ , ๐๐ ๐๐๐๐๐ ๐ก ๐ ๐๐๐ ๐ ๐๐ฃ๐ ๐๐๐๐๐๐๐ ๐/๐๐๐ ๐๐๐๐.
๐๐๐ฆ๐ข๐ง๐ข ๐๐ฌ ๐๐ซ๐๐ก๐๐ฌ๐ญ๐ซ๐๐ญ๐จ๐ซ -> ๐๐ฅ๐๐ฎ๐๐ ๐๐ฌ ๐๐ฉ๐๐๐ข๐๐ฅ๐ข๐ฌ๐ญ: Gemini handles multimodal intake or large-context research, then calls a Claude sub-agent to review code diffs or refactor complex logic.