Skip to content

feat(image): ship agy (Antigravity CLI), pinned and updater-proof - #575

Open
lroolle wants to merge 1 commit into
mainfrom
feat/agy-image
Open

lroolle wants to merge 1 commit into
mainfrom
feat/agy-image

Conversation

@lroolle

@lroolle lroolle commented Nov 23, 2026

Copy link
Copy Markdown
Member

agy (Google's Antigravity CLI) is not in the image, so no launcher can run it. This ships it, pinned, and wires the pin through the same tooling as every other agent CLI. Closes #574.

Image and pin tooling only. There is no deva.sh agy in this PR: agy's home is ~/.gemini, which the gemini agent also owns, and that needs a decision first.

How it is pinned

agy is not on npm. Each release of google-antigravity/antigravity-cli has one tarball per platform holding a single binary, antigravity, which the official installer saves as agy. Tags are the version, no v. install_agy fetches the pinned tarball directly, the way cursor's is, on its own Docker layer between the npm layer and cctrace (it releases almost daily and is 90 MB).

Why the install is read-only

Measured on 1.5.13, arm64:

  • one prompt, then at t+40s the binary was 1.5.15, the old one left beside it as agy.<n>.old

  • no off switch. The noUpdate / autoupdate / updateChannel strings in the binary are a network stack, a syntax-highlighter regex and a telemetry field

  • the updater does check that the binary's real directory is writable. With the binary in ~/.local/share/agy/<version>/ (dir and file a-w) behind a symlink at ~/.local/bin/agy, it logs

    Directory ... is not fully accessible (readable: true, writable: false), skipping update
    

    and 75s into a persistent container the version and the link were unchanged

The symlink path matters: agy writes ~/.local/bin/agy into a shim inside its home, so containers sharing that home must agree on it.

Behaviour

  • AGY_VERSION= (empty) builds without agy, same contract as CURSOR_CLI_VERSION
  • a binary that reports another version than the pin fails the build (wrong asset)
  • make versions-up shows it in the build manifest; make versions-pin bumps it from the repo's tags

Tests

  • scripts/test-install-agent-tooling.sh: pinned install, re-run into the same home, version mismatch fails, empty pin skips
  • tests/version-upgrade.sh: manifest, build args, written pins, pin-file round trip, registry-outage scenario
  • tests/test_release_utils.sh: agy in the agent group and the main image (76/76)
  • all shell suites: 17/18, the one failure is scripts/test-workspace-context.sh, which fails on main too
  • on a real image (published deva:rust + this installer): agy --version = 1.5.13, version dir and binary 555; empty pin skips and the build stays green

Not run locally: a full make build of all four images. CI builds the image with the new build arg.

Note for whoever adds the next CLI

This touched 17 files for one tool. scripts/version-upgrade.sh alone names every tool in eleven places, and it already shows the cost: Gemini is resolved, built and pinned there but is missing from the manifest table. Worth collapsing into one list; not done here.

🤖 Generated with Claude Code

- AGY_VERSION pin on its own Docker layer, between the npm agent
  layer and cctrace
- install_agy fetches the release tarball from
  google-antigravity/antigravity-cli into a read-only versioned dir
  behind ~/.local/bin/agy: the self-updater has no off switch and
  skips a directory it cannot write
- an empty AGY_VERSION builds without it; a binary reporting another
  version than the pin fails the build
- wired through versions-pin, versions-up (manifest, build args, pin
  write), the nightly resolver, the CI, release and nightly build
  args, Dockerfile.rust and the Makefile
- image only: there is no deva.sh agy yet

Closes #574

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T12:03:21.698799Z 12b359a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12b359a0a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Dockerfile.rust
LABEL org.opencontainers.image.pi_coding_agent_version=${PI_CODING_AGENT_VERSION}
LABEL org.opencontainers.image.dsh_version=${DSH_VERSION}
LABEL org.opencontainers.image.cursor_cli_version=${CURSOR_CLI_VERSION}
LABEL org.opencontainers.image.agy_version=${AGY_VERSION}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install agy in core-based Rust images

When Dockerfile.rust is built from the core image—as make build-rust-image and scripts/version-upgrade.sh do—this label advertises agy even though the Dockerfile later runs only the agents and cctrace installer stages, and the agents stage explicitly excludes install_agy. Consequently locally built Rust images, and the Cloak images derived from them, do not contain agy; add an agy installer-stage invocation rather than only propagating its argument and label.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

image: ship agy (Antigravity CLI), pinned

1 participant