Repository navigation
Conversation
…h fits the marketplace's 64 MiB limit
…e's padding is written
ndiego
marked this pull request as ready for review
November 24, 2026 17:41
Contributor
|
Thanks, this looks good, and the testing notes are really useful. One fix before merging: Smaller: the cleanup only runs after an unpack, so anyone whose desktop app has a recent enough CLI keeps the previous version's 145 MB folder. Running it at start would cover that. |
youknowriad
approved these changes
Nov 25, 2026
youknowriad
left a comment
Contributor
There was a problem hiding this comment.
Adding Antigravity to the agent apps in Settings can come in a follow-up: Connect would install the plugin with agy plugin install, as it does for Grok Build, and point mcp_config.json at Studio's own CLI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
Claude Code read Google's plugin guide (https://antigravity.google/docs/build-plugins/, plus the MCP, MCP Apps and Marketplace pages), wrote the manifest, the MCP config, the launcher change and its tests, and drafted this description. It then tested the plugin with the Antigravity app (2.35.0) and CLI (
agy1.5.16) on Nick's Mac, with a test-only wrapper that logged what Antigravity sends the server; Nick ran the conversations. "What was and was not verified" below lists exactly what that covered.Proposed Changes
Google lists a plugin in Antigravity's marketplace after its partner team QA-tests a public GitHub repository. This makes the WordPress Studio plugin installable in Antigravity, so
Automattic/studio-pluginscan be submitted. Nothing has been submitted to Google.PLUGIN_DATA), and replaces the plugin's own folder on each update. The plugin now unpacks (or downloads) the Studio CLI there when the app provides one, in a folder per plugin version, and removes the CLI an earlier version left. Codex, Claude Code, Cursor and Grok Build don't setPLUGIN_DATA, so they unpack inside the plugin as before.tarstops reading at the end of the archive before the last bytes are written, which the new tests hit once on Linux CI (ERR_STREAM_PREMATURE_CLOSE);tar's exit code still decides whether the unpack worked. This applies to every app. The failure was not reproduced on macOS, so the fix rests on the CI log.trunk), and the one that downloads it (claude-directory). Antigravity's marketplace downloads plugin zips of up to 64 MiB, and the plugin with the CLI inside is 71.7 MiB, so the marketplace listing has to be the one that downloads the CLI. That adds two small files to the branch Anthropic's directory and Grok Build read; the alternative is a branch of its own.No change to client detection (
describeClient). Antigravity identifies itself asantigravity-clientand declaresio.modelcontextprotocol/ui, which Studio already reads, so it gets the design picker and the library tools, and otherwise the defaults: bare paths for image links, Studio'sgenerate_images, andwpcom_request.What was and was not verified
Verified with
agy1.5.16:agy plugin validate --strictpasses with no findings on the plugin that downloads its CLI (the folder, and a 124 KB zip of it).plugins/wp-studioand on the plugin with the CLI inside,agy plugin validatereports one warning, so--strictfails:.mcp.json: never loaded: this is Claude Code's file name. That file is Codex's MCP config, and stays. Nothing else is flagged: 11 skills, 1 MCP server, 0 agents (agents/openai.yamlis ignored).agy plugin validateon the zip with the CLI inside fails: it is larger than 64 MiB, "the largest plugin zip that the plugin marketplace in Antigravity downloads".agy plugin install <folder>installs both plugins (the 72 MB one too), and installing again replaces the installation, which is how the README says to update.agy plugin install https://github.com/Automattic/wordpress-antigravity-plugin/tree/main/wordpressclones the repository and installs that folder.Automattic/studio-pluginsitself can't be tried until a release publishes these files.agy plugin uninstallleaves the plugin's data folder, so the unpacked CLI (145 MB) stays after uninstalling.Verified in the Antigravity app 2.35.0 on macOS:
wp-studio_wordpress-studio, with the user's own Node.js andPATH(nvm's v24.22.1 here), and setsPLUGIN_DATAto a writable~/.gemini/antigravity/plugin_data/wp-studio. The installed plugin folder is writable on disk, whatever the guide says about read-only.clientInfo.nameantigravity-clientand declaresio.modelcontextprotocol/ui(andcom.google.antigravity/ui).studio_instructions,site_list,site_create,generate_images,pick_design,present_design_options,scaffold_theme,wp_cli), and the design picker rendered as an interactive panel.PLUGIN_DATA/cli-2.4.0-beta1, left the plugin folder untouched, and "List my WordPress sites on this computer" was answered by that CLI. The unpack finished before Antigravity sentinitialize, so the CLI answered the handshake itself.agy plugin install(the download pointed at a local server, delayed by 20 seconds, as the release doesn't exist yet): it downloaded the CLI, checked it, unpacked it intoPLUGIN_DATA/cli-2.4.0-beta1, and a new conversation's "list my sites" request calledsite_liston that CLI.server/discoverrequest beforeinitialize, and waited for its answer both times. The launcher holds that request until the CLI is ready, so Antigravity sentinitializeonly then (21 seconds later with the delayed download) and got the CLI's own tool list, all 36 tools, rather than the recorded one.Verified outside Antigravity:
.antigravity-plugin/plugin.jsonvalidates against Google's published schema (https://antigravity.google/schemas/v1/plugin.json), checked with Ajv.npm run cli:bundle:plugin: both plugins carry the Antigravity manifest with the release version, andmcp_config.json.PLUGIN_DATAset, clientantigravity-client), from the plugin with the CLI inside in a read-only folder, and from the one that downloads it (from a local server, as the release doesn't exist yet): the CLI lands inPLUGIN_DATA, the session moves to it, and the launcher sendslist_changed. New tests cover the launcher with and withoutPLUGIN_DATA.npm run typecheck,npm run lint,npm run knip, and prettier on the changed files.Not verified:
notifications/tools/list_changed. It didn't come up: Antigravity waits for the CLI before the handshake (see above), so it never gets the recorded tool list. That also means a download slower than Antigravity's time to connect to a server (300 seconds by default, per its docs) would fail the first start rather than start with fewer tools;timeoutSecondsmay raise that too, untested.timeoutSeconds: the plugin ran with it, but no call lasted longer than the 180-second default.Automattic/studio-plugins, and how the marketplace takes a plugin that sits at the root of a branch other than the default one.Open questions
claude-directorynow holds a plugin that passesagy plugin validate --strict, at the root of the branch, but it is not the repository's default branch. If Google needs the default branch or a repository of its own, the publish workflow needs one more target.agy plugin validatedoesn't flag it.Testing Instructions
npm test -- scripts/plugin-bootstrap-mcp.test.mjscurl -fsSL https://antigravity.google/cli/install.sh | bash):npm run cli:bundle:plugin, thenagy plugin validate --strict standalone-bundles/wp-studio-directorypasses.standalone-bundles/wp-studio-<version>.zipto a folder namedwp-studio, andagy plugin installthat folder.cli-<version>folder appears in~/.gemini/antigravity/plugin_data/wp-studio, that the design picker renders, and that the site is built.cli/).No screenshots: nothing Studio shows changes.
Pre-merge Checklist