<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Chris</title>
    <description>The latest articles on Forem by Chris (@simplybychris).</description>
    <link>https://forem.com/simplybychris</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3954443%2F488fad5f-200c-45c0-8825-0b5a14692128.png</url>
      <title>Forem: Chris</title>
      <link>https://forem.com/simplybychris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/simplybychris"/>
    <language>en</language>
    <item>
      <title>How to use Google Antigravity CLI inside Claude Code (without leaving your editor)</title>
      <dc:creator>Chris</dc:creator>
      <pubDate>Wed, 27 May 2026 13:57:33 +0000</pubDate>
      <link>https://forem.com/simplybychris/how-to-use-google-antigravity-cli-inside-claude-code-without-leaving-your-editor-30np</link>
      <guid>https://forem.com/simplybychris/how-to-use-google-antigravity-cli-inside-claude-code-without-leaving-your-editor-30np</guid>
      <description>&lt;p&gt;I work in Claude Code most days. It's where my git, tests, edits, and&lt;br&gt;
agent-assisted work happen, and the cost of leaving it for another tool&lt;br&gt;
is real, context-switching breaks flow.&lt;/p&gt;

&lt;p&gt;When Google shipped the Antigravity CLI (agy) a few weeks ago, I&lt;br&gt;
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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsoc81gp0y1z2lamdq5zi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsoc81gp0y1z2lamdq5zi.gif" alt="Antigravity plugin in Claude Code" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;The plugin adds six slash commands to Claude Code:&lt;/p&gt;

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

&lt;p&gt;Most commands accept a &lt;code&gt;--model &amp;lt;alias&amp;gt;&lt;/code&gt; flag, more on that in a&lt;br&gt;
moment.&lt;/p&gt;
&lt;h2&gt;
  
  
  The model-flag problem
&lt;/h2&gt;

&lt;p&gt;While building this I noticed something. The Antigravity CLI v1.0.2&lt;br&gt;
doesn't have a &lt;code&gt;--model&lt;/code&gt; flag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ 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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;I wanted per-call model selection from inside Claude Code. So I added&lt;br&gt;
it in the plugin.&lt;/p&gt;

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

&lt;p&gt;The user-facing surface is just:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eight models supported, 18 short aliases (opus, sonnet, pro, flash,&lt;br&gt;
gpt-oss, etc.) plus the canonical TUI strings if you prefer.&lt;/p&gt;
&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

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

&lt;p&gt;The whole repo is intentionally small. The Claude Code plugin&lt;br&gt;
specification gives you most of what you need, slash commands,&lt;br&gt;
subagents, skills, and the rest is just plumbing.&lt;/p&gt;
&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;p&gt;In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add simplybychris/antigravity-plugin-cc
/plugin install agy@antigravity-cc
/reload-plugins
/agy:setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then try &lt;code&gt;/agy:help&lt;/code&gt; for the full index.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

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

&lt;p&gt;If you like this idea leaving a &lt;a href="https://github.com/simplybychris/antigravity-plugin-cc" rel="noopener noreferrer"&gt;GitHub&lt;br&gt;
star&lt;/a&gt; would mean a lot. Issues and PRs welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>programming</category>
      <category>antigravity</category>
    </item>
  </channel>
</rss>
