Skip to content

Agent demo: Antigravity CLI as a local agent - #156

Merged
amrit110 merged 2 commits into
mainfrom
demo-antigravity
Nov 22, 2026
Merged

amrit110 merged 2 commits into
mainfrom
demo-antigravity

Conversation

@amrit110

Copy link
Copy Markdown
Member

Adds Google's Antigravity CLI (agy) as an agent for local runs: run.sh antigravity.

  • How it runs: agy -p ... --output-format stream-json --dangerously-skip-permissions --sandbox, with the tabctx MCP server for that run only in .agents/mcp_config.json in the run folder (no key in the file; the server inherits the environment). Model: AGY_MODEL, default gemini-3.8-flash-high.
  • Parser (AntigravityParser): call_mcp_tool on server tabctx becomes the tabctx tool; run_command becomes a shell command with its output (exit code read from the header); write_file/edit_file/view_file carry their path; streamed text deltas become messages; result gives seconds and turns.
  • Work panel: draws agy's file and search tools (edit_file, view_file, list_dir, grep_search, ...).
  • Local only, not hosted: headless agy can't prompt, and I checked that --sandbox still lets the agent read any file the user can, including the withheld answers. It needs the user's own Google sign-in too.

Why: Gemini CLI no longer works for individual accounts ("This client is no longer supported... migrate to the Antigravity suite").

Checked: 4 of the 6 open-question sweep runs finished with full tabctx tool use (the other 2 hit the account's weekly quota); 2 new parser tests; 118 demo tests pass. On the trap questions (a "safe" increase threshold, brokers vs direct) it overclaimed more than the Claude models, so the demo stays on Claude Code.

🤖 Generated with Claude Code

run.sh antigravity runs agy headless (stream-json), with the tabctx MCP
server for this run only in the workspace's .agents/mcp_config.json (no
key in it: the server inherits the environment). A parser turns its
step events into the page's events (call_mcp_tool -> the tabctx tool,
run_command -> a shell command with its output, write/edit_file -> file
paths), and the work panel draws its file tools.

Local only: headless agy needs --dangerously-skip-permissions, and its
--sandbox still lets the agent read any file the user can (the withheld
answers included), so it is not offered on the hosted demo. Gemini CLI
no longer works for individual accounts; Google points to Antigravity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.74%. Comparing base (9b4b3ab) to head (0ded438).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #156       +/-   ##
===========================================
+ Coverage   32.20%   87.74%   +55.54%     
===========================================
  Files          67       67               
  Lines        6723     6723               
===========================================
+ Hits         2165     5899     +3734     
+ Misses       4558      824     -3734     
Flag Coverage Δ
integration 32.20% <ø> (ø)
unit 87.57% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 57 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- A tool step ends once, on an end state (DONE, ERROR, CANCELLED...);
  other states are still going, and repeated ends are ignored.
- A call waits for its arguments: an early update may have none.
- run_command: the exit code is read from its header (no header is not a
  failure), the header is stripped, and "No output" is empty.
- Steps without an index are paired in order; a stopped run's last words
  are flushed (a parser finish() hook, used by the page's stream too).
- Antigravity always has a shell, so run.sh refuses it, and the page
  doesn't offer it, in a scenario whose agents get none.
- make_showcase.py drops its init event (agy names events "event").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amrit110
amrit110 merged commit 8fd51f0 into main Nov 22, 2026
5 checks passed
@amrit110
amrit110 deleted the demo-antigravity branch November 22, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants