惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
量子位
腾讯CDC
C
Check Point Blog
小众软件
小众软件
IT之家
IT之家
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
博客园_首页
S
SegmentFault 最新的问题
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How to use Google Antigravity CLI inside Claude Code (wit...
Chris · 2026-05-27 · via DEV Community

I work in Claude Code most days. It's where my git, tests, edits, and
agent-assisted work happen, and the cost of leaving it for another tool
is real, context-switching breaks flow.

When Google shipped the Antigravity CLI (agy) a few weeks ago, I
wanted access to its capabilities: Gemini 3.1 Pro reasoning, the native Imagen tool, the built-in research and review flows. But I didn't want to abandon Claude Code to get them.

Antigravity plugin in Claude Code

What it does

The plugin adds six slash commands to Claude Code:

Command What it does
/agy:setup Verify install + auth, can install agy for you
/agy:ask "<prompt>" One-shot prompt; returns the raw response
/agy:delegate <task> Hand to a runner subagent (supports --background)
/agy:research <topic> Structured deep research
/agy:review [focus] Second-opinion review of current git diff
/agy:image <description> Generate an image via agy's built-in Imagen tool
/agy:help Index of every command, model alias, and canonical name

Most commands accept a --model <alias> flag, more on that in a
moment.

The model-flag problem

While building this I noticed something. The Antigravity CLI v1.0.2
doesn't have a --model flag.

$ agy -m claude-opus -p "hi"
flags provided but not defined: -m

$ agy --model "Claude Opus 4.6 (Thinking)" -p "hi"
flags provided but not defined: -model

Enter fullscreen mode Exit fullscreen mode

Model selection is TUI-only, you launch agy interactively and pick
your model with /model. That's fine when you're in the TUI, but it
means anything calling agy non-interactively is stuck with whatever
model was last picked.

I wanted per-call model selection from inside Claude Code. So I added
it in the plugin.

The mechanism, briefly: the wrapper takes a portable lockfile, swaps
the "model" field in agy's settings file for the duration of one
call, runs agy -p, then restores the original on exit, including
on SIGINT/SIGTERM. If a previous run got SIGKILLed, the next call
detects the orphaned backup and recovers automatically. Not magic,
just careful glue. The full implementation is in the repo for anyone
curious.

The user-facing surface is just:

/agy:delegate --model opus    refactor the auth module
/agy:ask      --model pro     "explain Go escape analysis"
/agy:research --model sonnet  --background  survey post-quantum TLS

Enter fullscreen mode Exit fullscreen mode

Eight models supported, 18 short aliases (opus, sonnet, pro, flash,
gpt-oss, etc.) plus the canonical TUI strings if you prefer.

Stack

Pure Bash. One wrapper script (~400 lines), one subagent definition,
six command markdown files. No Node runtime, no broker, no review
hooks. Bash 3.2 compatible (macOS native). Tested on macOS and Linux;
WSL2 should work the same way.

The whole repo is intentionally small. The Claude Code plugin
specification gives you most of what you need, slash commands,
subagents, skills, and the rest is just plumbing.

Install

In Claude Code:

/plugin marketplace add simplybychris/antigravity-plugin-cc
/plugin install agy@antigravity-cc
/reload-plugins
/agy:setup

Enter fullscreen mode Exit fullscreen mode

Then try /agy:help for the full index.

What's next

v0.4.1 is the first release with --model and /agy:help. Core works.
A short demo video is coming. I have ideas for further extensions but this surface is what I needed for my current use.

If you like this idea leaving a GitHub
star
would mean a lot. Issues and PRs welcome.