cc-antigravity-plugin
A plugin for Claude Code and Codex that integrates the Antigravity CLI (AGY) as an agentic coding assistant — creates, edits, searches files, and executes commands autonomously over your codebase.
📖 Documentation in other languages:
Fork: This plugin is a fork of gemini-cli-plugin, originally created by thepushkarp for process automation with Gemini CLI.
Overview
AGY is Google's long-context CLI terminal (2M token window). This plugin bridges AGY to Claude Code and Codex via a shared Node.js bridge, exposing AGY as a tool_use endpoint that Claude can invoke.
When to use instead of native Claude Code:
- Multi-file refactorings needing broad repository context
- Code generation spanning multiple project layers
- Architecture analysis and change impact with complete context
- Tasks benefiting from Gemini Pro deep-reasoning models
- Multiple independent deliverables that can run in parallel via native Gemini subagents (
--parallel)
Claude invoking agy directly vs via plugin
Claude can call agy directly via Bash (agy --print "task" --dangerously-skip-permissions --add-dir .) without any intermediary. However, the plugin delivers capabilities that raw agy cannot:
| Capability | agy direct | Via plugin (bridge) |
|---|
| Headless model selection | Native --model | Runtime catalog, aliases, 24-hour cache, and safe fallback |
| Guaranteed coding-agent behavior | No — AGY tends to respond in text | Yes — <constraints> block instructs use of write_to_file, grep_search, etc. |
| Structured quota/auth signals | JSON envelope | Exit codes 10/11 + normalized JSON signal with conversation/usage |
| Automatic file ingestion | Manual | --dirs, --files with binary detection and truncation |
| Parallelism via Gemini subagents | Manual | --parallel + optional NDJSON progress (--format stream-json) |
| Windows CLI limit bypass | Silent breakage | Stdin streaming (--use-stdin) / auto-fallback avoiding dropped files |
| Auditable logging | No | JSONL in %LOCALAPPDATA%\agy\cc-plugin-logs\ |
| Process overhead | None | Node.js async child process; ConPTY only for --interactive |
| Visibility of AGY actions | Full — direct output | Black box — Claude doesn't validate before exec |
| Quota dependency | Claude only | Claude + AGY/Gemini |
Summary: for automated workflows, skills, and coding tasks where consistent agentic behavior is required, the bridge is the right choice. For simple ad-hoc invocations, raw agy suffices.
AGY CLI 1.5 support (plugin 4.7.0)
Reviewed against the official releases through AGY 1.5.16 (baseline still 1.1.8;
below 1.5.0 the bridge keeps its legacy defaults and warns once).