Repository navigation
Description
Antigravity CLI (agy) 1.1.26 installs from https://antigravity.google/cli/install.sh to ~/.local/bin/agy. It is a fourth candidate host: it carries plugin import [source] documented as "Import plugins from gemini or claude", plus plugin install/validate/enable/disable and an mcp subcommand.
It is also, unlike Gemini CLI, verifiable. #532 blocks on headless OAuth (invalid_grant, no OOB fallback). agy has no such wall:
$ agy -p "reply with exactly: OK" --output-format text
OK
No browser, no prompt, no cached-credential failure. So the reason every Gemini CLI test in this repo asserts manifest shape only does not apply here — Antigravity claims can be observed rather than reasoned.
What was observed
All of the below was run against this repo at 0.26.0.
agy plugin validate requires plugin.json in the directory it is pointed at, and resolves component directories as siblings of that file. Pointed at .claude-plugin/, every component type is missing (see the sibling issue about that output):
$ agy plugin validate .claude-plugin
[ok] .claude-plugin
- skills : skipped (not found)
- agents : skipped (not found)
- commands : skipped (not found)
- mcpServers : skipped (not found)
- hooks : skipped (not found)
With a flat layout — plugin.json copied to a scratch directory, with hooks/, commands/, skills/ symlinked in beside it — three of five resolve and one does not:
[ok] <scratch>
✔ skills : 1 processed
- agents : skipped (not found)
✔ commands : 1 processed (converted to skills)
- mcpServers : skipped (not found)
- hooks : skipped (not found)
hooks/hooks.json is present and readable in that tree — the symlink is the same one skills and commands resolved through. Copying that same file to hooks.json at the plugin root, changing nothing else, flips it:
[ok] <scratch>
✔ skills : 1 processed
- agents : skipped (not found)
✔ commands : 1 processed (converted to skills)
✔ hooks : 1 processed
So Antigravity looks for the hook manifest at <plugin-root>/hooks.json, while this repo keeps it at hooks/hooks.json, which is where Claude Code reads it.
Why this matters more than the count suggests
This plugin is its hooks. SessionStart, UserPromptSubmit and Stop are what capture memory at all; skills and commands are the surface around them. A host that loads the skills and silently drops the hooks yields an install that looks present and saves nothing — the exact failure mode this project treats as its worst, and one a user would attribute to the plugin rather than to the host.
Note also that commands is reported as "converted to skills", so the command surface does not survive as commands. Whether that conversion preserves behaviour is not established here and should be checked separately.
What is not established
- Whether
agy plugin import claude(as opposed tovalidate) applies a different, Claude-aware layout resolution that would findhooks/hooks.jsoncorrectly.agy plugin importwith no imported extensions present answeredNo claude extensions found., so the import path was never exercised against this repo. - Whether hooks that do load actually fire, what stdin payload shape they carry, where Antigravity writes its transcript, and whether the stdout contract matches Claude Code's. These are the same four questions Add Gemini CLI support: the event mapping is machine-generated, but the migration output would not run here #456 asks of Gemini CLI, and unlike there, they are answerable here — headless print mode works.
- Whether the root-
hooks.jsonlayout is documented and stable, or an implementation detail of 1.1.26.
Scope this is not
This is a finding, not a request to ship a fourth host. Adding an Antigravity badge to the README (#547/#548) would today be a claim a one-line probe disproves, which is worse than the caveated Gemini badge. The badge follows the evidence, not the other way round.
Measured on macOS (darwin/arm64), agy 1.1.26, this checkout at 0.26.0. Nothing here is claimed for other platforms.
Activity
fdaviddpt commentedon Sep 4, 2026
Probed further in the same session. This supersedes the original body's central claim: the problem is not that
hooks.jsonsits at the wrong path. Plugin-supplied hooks are not loaded by Antigravity at all, and two of this plugin's four events are not part of its vocabulary.Hooks are a real subsystem there
agy changelogshows an actively developed hook system —PreToolUse,PostToolUse,StopandPostInvocationevents, matchers onPostToolUse, ordering rules that runhooks.jsonbefore built-in termination checks, a continuation cap so a always-blockingStophook cannot hang a turn, and workspace-local hooks at<workspace>/.agents/hooks.json. So the question is not whether Antigravity has hooks. It has them, and they are further along than this repo's own Gemini CLI position.A plugin's own hooks.json is registered and then ignored
The probe was a minimal plugin:
plugin.json, a roothooks.jsondeclaring all four of this plugin's events, and one script per event appending to a fixed absolute log path. Every command used an absolute path, so nothing depended on${CLAUDE_PLUGIN_ROOT}being set.agy plugin installaccepted it and reported✔ hooks : 1 processed.agy plugin listrecorded it with"components": ["hooks"].~/.gemini/config/config.jsoncarried"hookprobe": {"enabled": true}. Every signal the tool offers said the hooks were installed.Then, in the same state:
Zero hooks. The plugin's manifest, copied verbatim from the plugin directory to
~/.gemini/config/hooks.json, appears immediately:Same bytes, same events, different directory. So
plugin installcopies ahooks.jsoninto the plugin tree, counts it, marks the plugin enabled — and the hook loader never reads it. The shared file and the workspace-local.agents/hooks.jsonnamed in the changelog appear to be the only paths that load.Note that
/hooksanswers in print mode without starting an agent turn or spending quota, which makes this cheap to re-check on any future version.Two of the four events are dropped without a word
Loaded from the shared path, the four-event manifest renders as two actions:
UserPromptSubmitandSessionEndare absent. No warning, no error, no unknown-event line — they are simply not in the output. AndSessionStartsurvives as an event with atypebut nocommandfield, whilePostToolUsekeeps its full command line. WhateverSessionStartis there, it is not a thing that can run.Consistent with that, a print-mode turn with the shared manifest in place wrote nothing to the log.
SessionStartdid not fire.Config surface is Gemini's
This answers one of the original body's open questions. Antigravity installs plugins to
~/.gemini/config/plugins/<name>/and keepsconfig.json,import_manifest.json,mcp_config.jsonand the sharedhooks.jsonalongside~/.gemini/settings.json. It shares Gemini CLI's directory rather than owning one — there is no~/.antigravityor~/.config/agy. Anything this repo ships into.gemini/and anything Antigravity writes are neighbours, which is worth knowing before either is treated as evidence about the other.What this changes
The original body proposed a layout question — root
hooks.jsonversushooks/hooks.json— as the thing to answer. That framing was too small. Even with the layout satisfied, this plugin captures onSessionStart,UserPromptSubmit,PostToolUseandSessionEnd, and on Antigravity 1.1.26 that is: one registered without a command, one untested, and two discarded silently. A user who installed it would get a plugin reporting success and saving nothing.Whether a port is possible is a different and still-open question —
PostInvocationandStopmay cover whatSessionEnddoes here, and a prompt hook may coverUserPromptSubmit. That is a design exercise, not a path fix, and it should not start until firing is confirmed for at least one event.Still not established
PostToolUseactually fires. It is the one event that kept its command. Testing it needs a turn that calls a tool, which needs--dangerously-skip-permissions; that was refused by the harness running this probe and not worked around. Until someone runs it, no Antigravity hook has been observed executing — registration is all that is confirmed.agy plugin import claudebehaves differently frominstall. It reportedNo claude extensions found.and was never exercised.listoutput claimingcomponents: ["hooks"]argues for defect, but that is inference.Environment
macOS, darwin/arm64.
agy1.1.26, installed fromhttps://antigravity.google/cli/install.shto~/.local/bin/agy, authenticated interactively, Antigravity Starter Quota, Gemini 3.8 Flash. This checkout at 0.26.0. Nothing here is claimed for Linux or Windows, and nothing is claimed for any otheragyversion — the changelog shows this area changing release to release.All probe state was removed afterwards: no
~/.gemini/config/hooks.json, no plugin directory,import_manifest.jsonback to{"imports": null}, and the staleplugins.hookprobeentry thatplugin uninstallleft behind inconfig.jsondeleted by hand. That leak is worth its own issue.[-]Antigravity CLI 1.1.26 loads this plugin's skills and commands but not its hooks (hooks.json must sit at the plugin root)[/-][+]Antigravity CLI 1.1.26 never loads a plugin's hooks, and silently drops two of this plugin's four events[/+]fdaviddpt commentedon Sep 5, 2026
This is now the repo's live host question, not a backlog finding beside a working Gemini CLI arm. #532 is closed: with credentials that do work,
@google/gemini-cli0.58.0 answersthrown after the token is accepted. Google names Antigravity as the migration path in the CLI's own error text. So Gemini CLI is not a host this project can observe on an individual free-tier account at any version, and Antigravity is not a speculative fourth host — it is where that arm went.
What that changes about this issue
Nothing measured here changes. The findings stand exactly as recorded above: a plugin's own
hooks.jsonis copied into~/.gemini/config/plugins/<name>/, counted (✔ hooks : 1 processed), markedenabled: truewithcomponents: ["hooks"], and then never loaded —agy -p "/hooks"returns"hooks": []. Only the shared~/.gemini/config/hooks.jsonand the workspace-local<workspace>/.agents/hooks.jsonload. Loaded from the shared path,UserPromptSubmitandSessionEndvanish with no warning, andSessionStartsurvives as an event with atypeand nocommand.What changes is the priority and the framing. This was filed as "a finding, not a request to ship a fourth host", which was right when Gemini CLI was still a nominal target. It no longer is. The question is now whether this plugin can capture memory under the host Google is actually pointing users at, and the answer today is no: of the four events this plugin captures on, one registers without a command, one is untested, and two are discarded silently.
Still the load-bearing unknown
Whether
PostToolUse— the one event that kept its command — actually fires. Nothing here has yet observed any Antigravity hook execute; registration is all that is confirmed. Testing it needs a turn that calls a tool, which needs--dangerously-skip-permissions; that was refused by the harness running the probe and deliberately not worked around. Until someone runs it by hand, "Antigravity has hooks" is a claim about a config listing, not about behaviour.That single test is the cheapest next step in this whole area, and it does not need a plugin: install a probe hook at
~/.gemini/config/hooks.jsonwhose command appends to a fixed absolute path, run oneagyturn that calls a tool, and read the file.Not in scope here
Re-badging. The README badges two observed hosts (#547/#548) and Antigravity is not one of them until a hook is seen firing. Closing #532 does not promote Antigravity by default — it removes a competitor, which is not the same thing as evidence.
Document Gemini CLI free-tier install rejection (#557)
fdaviddpt commentedon Sep 5, 2026
The load-bearing unknown is answered: Antigravity hooks do fire, four events are usable, and one of them hands over the transcript path at session open. Both of this issue's earlier central claims turn out to be artifacts of the manifest schema rather than facts about the host, so this comment supersedes them.
Measured on
agy1.1.27 (earlier comments were 1.1.26), macOS darwin/arm64, this checkout at 0.27.0. Nothing claimed for other platforms or versions.The schema was the whole problem
hooks.jsonmaps a hook name to an object whose keys are event names holding arrays of handlers:{ "probe": { "enabled": true, "SessionStart": [ { "type": "command", "command": "bash /abs/probe.sh SessionStart", "timeout": 30 } ], "PreInvocation": [ { "type": "command", "command": "bash /abs/probe.sh PreInvocation", "timeout": 30 } ] } }Claude Code's shape -- an event key holding an array of matcher objects -- does not parse at all, and the failure is invisible where anyone would look:
agy -p "/hooks" --output-format jsonanswers{"hooks":[]}-- byte-identical to having no file. The only witness is~/.gemini/antigravity-cli/cli.log. An unrecognised event inside an otherwise valid file is dropped the same silent way: the listing simply prints fewer rows than the file declares.This retracts the earlier "two of the four events are dropped without a word" finding. That was the parser half-digesting a Claude-shaped file, not a gap in Antigravity's vocabulary. It also retracts the original body's framing: the layout question (
hooks.jsonvshooks/hooks.json) was never the blocker, because a file at the right path in the wrong shape fails anyway.What 1.1.27 actually accepts
Twelve events declared in one manifest, four accepted, and all four fired on a single print-mode turn:
SessionStartPreInvocationPostInvocationStopPreToolUseagy1.0.5 (see below)PostToolUseUserPromptSubmit,SessionEnd,Notification,turn-completionSo the published hooks documentation is wrong in both directions on this build: it lists two events that will not parse, and omits one that works.
The tool hooks are a regression, not an absent feature
cmux hit
PreToolUsefiring onagy1.0.5 -- hard enough to deny every tool call:Tool call denied by jsonhook__cmux_PreToolUse_0_0,error (invalid_args)(manaflow-ai/cmux#5358). Their fix was to stop declaring tool events, and their shipped Antigravity adapter now declares none. On 1.1.27 the same event no longer even parses, under every matcher spelling tried ("*",".*", an exact tool name, and the field omitted).Tool-scoped capture is therefore unavailable today, and the surrounding evidence says it is unstable rather than unimplemented. A forum report of
StopandPostToolUsenever firing on Antigravity IDE 1.107.0/Windows is unresolved.The payload, and the transcript path
This answers two more of the issue's open questions. A firing hook receives JSON on stdin.
SessionStart:{ "artifactDirectoryPath": "~/.gemini/antigravity-cli/brain/<conversationId>", "conversationId": "09191173-fd7f-4402-be52-b3a8575b7ebe", "modelName": "gemini-3.8-flash-high", "transcriptPath": "~/.gemini/antigravity-cli/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl", "workspacePaths": [] }Stopcarries the same plusterminationReason(NO_TOOL_CALLon a plain turn),fullyIdle,executionNumanderror. So Antigravity writes its transcript to~/.gemini/antigravity-cli/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl, and hands the path to the hook at session open -- which is what this plugin's capture needs and where it needs it.Method note worth keeping
One probe run looked like a pass and was worthless: the prompt was "run: echo hi, then say DONE", the model answered
DONE, and no tool ever ran -- the empty hook log proved nothing. Phrase a firing probe so the tool leaves a side effect (create the file /tmp/agy-proof.txt), then check the file, not the reply. The log names what it auto-approved:What this changes for the repo
A port is no longer blocked on "does anything fire". Every one of this plugin's four capture points has a usable analogue, and the work is now a design exercise rather than an unknown -- filed separately. Badging still waits on that port existing and being exercised, not on this comment.
Still open: whether
<workspace>/.agents/hooks.jsonloads through the same code path (untested; the changelog says it needs the folder trusted), whether theCustomizationConfig.GetEnableJsonHooksflag gates anything a user can reach, andagy plugin import claude, still never exercised. A plugin's own bundledhooks.jsonis still copied in, countedhooks : 1 processed, and never loaded -- only the shared and workspace-local paths load.Probe state removed: no
~/.gemini/config/hooks.json, no plugin installed at any point, no/tmpartifacts.docs: record how Antigravity CLI reads hooks.json (#563) (#564)
fdaviddpt commentedon Sep 5, 2026
This investigation is complete and its own last comment says so: "The load-bearing unknown is answered ... A port is no longer blocked on 'does anything fire' ... the work is now a design exercise rather than an unknown -- filed separately." That filing is #563, which carries the acceptance criteria and the mapping to design against. Closing this one as resolved-into-#563 rather than leaving a completed investigation open on the board; nothing measured here is being discarded, all four comments stay attached to #563's own reasoning by reference.
Port Remember capture to Antigravity CLI (agy): SessionStart, PreInvo…