claude-to-agy
Allows delegation of heavy tasks (large files, multi-file analysis, deep searches, web lookups) to the Antigravity CLI which leverages Google's Gemini API for processing.
claude-to-agy
A lightweight MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI (agy) - saving context window and tokens for what matters.
What It Does
Registers a delegate_to_agy MCP tool that Claude automatically uses when it encounters:
Large files (>200 lines) - logs, dumps, generated code
Multi-file analysis (>3 files at once)
Deep searches -
git log,git diff,grepWeb lookups - documentation, external knowledge
Adversarial review / plan critique - always delegated
Claude sends a prompt + file paths → the bridge runs agy CLI → returns the result.
Requirements
Python 3.12+
Installation
# 1. Clone anywhere on your machine
git clone https://github.com/rauls-kjarners/claude-to-agy.git ~/.claude-to-agy
# 2. Register the MCP server (global - works in any project)
claude mcp add -s user claude-to-agy python3 ~/.claude-to-agy/src/bridge.py
# 3. Copy the rules file into any project where you want delegation
cp ~/.claude-to-agy/CLAUDE.md /path/to/your/project/CLAUDE.mdThat's it. Claude will now automatically delegate heavy tasks to Antigravity CLI in any project that has the CLAUDE.md file.
Tip: To enable globally without copying
CLAUDE.mdper project, add the rules to~/.claude/CLAUDE.mdinstead.
Using as a Skill
This project also includes a SKILL.md file, which is the standard format for reusable Claude Code skills. If your setup supports skills, you can use it instead of manually copying CLAUDE.md:
claude skill add ~/.claude-to-agy/SKILL.mdNote: You still need the MCP server registered (step 2 above). The skill provides the rules, MCP provides the tool.
Configuration
All settings are optional environment variables:
Variable | Default | Description |
|
| Seconds to start the agy process |
|
| Hard timeout for entire execution |
How It Works
User → Claude Code → MCP bridge (bridge.py) → agy CLI → Gemini API
← ← ←CLAUDE.mdinstructs Claude when to delegateClaude calls
delegate_to_agy(prompt, files)via MCPbridge.pyreads the files, prepends them to the promptRuns
agy -p "<prompt>"Returns
{"success": true, "response": "..."}or{"success": false, "error": "..."}back to Claude
Development
python -m pytest tests/ -vLicense
Apache 2.0
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rauls-kjarners/claude-to-agy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server