Skip to content

v0.31.1 — Gemini 4 Hydrogen & Carbon defaults, hand-off mode, agy 1.5.9 catch-up, and job-tree cancel

Latest

Choose a tag to compare

@yuting0624 yuting0624 released this 16 Nov 03:50
· 1 commit to master since this release
1615e6f

Update if you are on agy 1.5.x, use background jobs (agy-job cancel), or want the Gemini 4 tier defaults. On agy 1.5.0+, an expired --print-timeout exits 3 instead of 0 and was misreported as AGY_FAILED instead of TIMEOUT (#115); agy-job cancel left timeout and agy (agy.exe) running because signaling only direct children orphaned the 4-process job chain and Git for Windows ships no pkill (#117); and the default pro / flash / flash-lo tiers now target Gemini 4 Carbon and Gemini 4 Hydrogen with a 2-layer plan-entitled fallback cache so plans without Gemini 4 keep working without cold-miss retry storms.

/plugin marketplace update antigravity-for-claude-code
/reload-plugins

This release rolls up 0.29.1 through 0.31.1 — the first tag since v0.29.0. Full detail per version is in CHANGELOG.md.

0.31.1 — cross-platform job-tree cancel, Gemini 4 ADC verification, and Workspace OAuth troubleshooting (#117 #121)

  • agy-job cancel terminates the full descendant process tree and records an atomic state=cancelled (#117). Both normal job completion (agy-job start and agy-handoff --background) and cancel now claim $jd/final atomically by hard-linking a pre-populated temp file (rc:<code> vs cancelled, with set -C O_CREAT|O_EXCL fallback), closing any completion/cancel TOCTOU or mid-flight SIGKILL gap (and recording ps -p <pid> -o lstart= on GNU/BSD ps so recycled or zombie PIDs are never signaled). cancel snapshots all descendants top-down before signaling (ps -eo pid=,ppid= on Linux/macOS; ps -e WINPID parsing across status-prefixed and numeric-first rows on Git Bash/MSYS/Cygwin, excluding $$ and its pipeline): on POSIX (measured live on Linux with agy 1.5.9, stub-tested on Ubuntu and macOS /bin/bash 3.2 in CI), it freezes parents top-down with SIGSTOP (with an INT/TERM/HUP rollback trap) before sending SIGTERM + SIGCONT → 0.3s poll → SIGKILL so parent shells cannot wake on a killed child and spawn a follow-up step; on Windows Git Bash/MSYS (no SIGSTOP parent-freeze; stub-tested in CI from the #117 report), it runs taskkill.exe /PID <winpid> /T /F (MSYS_NO_PATHCONV=1) top-down. list and status report state=cancelled without a misleading crash rc=, result prints [cancelled] on stderr and exits 0, and repeat cancel reports already cancelled (finishing tree cleanup first if an earlier cancel was SIGKILLed mid-flight).
  • Gemini 4 Vertex AI ADC measurements and Google Workspace OAuth troubleshooting. Documents manual Linux measurements on agy 1.5.9 via AGY_ADC_AUTH=true (GOOGLE_CLOUD_LOCATION=global) across primary Gemini 4 Hydrogen (High/Low/XHigh), Gemini 4 Carbon (High/Medium), and Gemini 4 Argon (High), and adds a docs/TROUBLESHOOTING.md guide explaining why (as observed on agy 1.5.9) Google Workspace accounts signed in via consumer 1. Google OAuth ("auth_method": "consumer") ignore settings.json's "gcp" block at runtime and receive ~6 starter models without Gemini 4 — and how to switch to 2. Use a Google Cloud project (Pay As You Go or Gemini Enterprise Subscriptions) or AGY_ADC_AUTH=true.
  • Security gate & SECURITY.md clarifications. Clarifies in hooks/validate-delegate-bash.sh and SECURITY.md that -d / --dir / --add-dir confinement bounds which workspace roots agy mounts while --yolo still grants machine-wide tool execution when passed, and refines check_dir_val so shell/tilde/glob/brace metacharacters in directory paths emit a specific metacharacter rejection reason.

0.31.0 — Gemini 4 Hydrogen & Carbon 3-tier defaults, 2-layer fallback cache, and scoped headless permissions (#119)

  • Gemini 4 3-tier defaults with 2-layer zero-delay plan fallback. pro defaults to Gemini 4 Carbon (High), flash to Gemini 4 Hydrogen (High), and flash-lo (lite) to Gemini 4 Hydrogen (Low) (plus --tier argon and --tier flash-38 aliases, and Gemini 4 rate decks + real AGY_USAGE token and cache_read pricing in prices.json and agy-cost-compare.sh). When an unremapped tier's primary model is unavailable on the active plan, Layer 1 parses Available models: from agy 1.5.x's error output to jump directly to the first entitled fallback in a single retry (or exit 14 immediately with zero extra spawns), and Layer 2 caches the resolved model for 6 hours in ~/.cache/antigravity-claude/tier-models-v1.tsv keyed by (agy binary stat, OAuth presence, settings.json & onboarding.json POSIX cksum, auth env, tier) — pre-seeded by agy-doctor and immune to agy 1.5.9's per-invocation onboarding.json mtime rewrites.
  • Scoped headless permissions (--read-only, --allow-url, --settings, --add-dir), zero---yolo agy-media, --effort, and --json-schema. On agy 1.4.10–1.5.9, /antigravity:review and cloud-debug run under --read-only (synthesizing --settings that force ask on write_file(*) and command(*)), agy-media.sh scopes write access to write_file($OUT) instead of --yolo (and uses OCR/visual instructions on still images), 1.5.7+ --mode accept-edits is recognized, -e|--effort (low|medium|high|xhigh|max) and --json-schema structured output are supported, and doctor.sh / agy-migrate.py catch up to agy 1.5.9 auth routes, MDM web-fetch policies, and plugin-import errors.

0.30.3 — agy 1.5.x --print-timeout exit 3, >64 KB stdin prompts, and 1.5.x classifiers (#115 #118)

  • --print-timeout on agy 1.5.0+ exits 12 (TIMEOUT) with partial output preserved (#115). Matches finished_reason == "print_timeout", structured AGY_ERROR "reason":"print_timeout", and anchored [agy] print timeout after … stderr across rc 3, rc 0, and rc 124/137, preserving partial replies without burning model-fallback retries. /antigravity:research adds [--tier flash|flash-lo|pro] [--timeout 15m].
  • Prompts over 64 KB pipe via temp-file stdin (< "$PROMPTF"), fixing Linux E2BIG. Avoids Linux's 128 KB single-argument MAX_ARG_STRLEN cap on large git diff reviews and cloud-debug log digests while rewinding cleanly across retries.
  • Watchdog & classifier updates. Honors --timeout 0, raises the minimum outer shutdown pad to 35 s for agy 1.5.5+, passes --disable-slash-commands by default outside plan mode (--allow-slash-commands opt-out), and expands exit 10 (spend-cap / monetization), 11 (GEMINI_API_KEY), 14 (anchored model_unavailable_blob before quota/timeout checks), and 15 (policy_blocked enterprise admin / permissions.deny overrides under --yolo).

0.30.1 – 0.30.2 — UTF-8 log clipping and post-turn hang recovery (#109 #110)

  • 0.30.2 (#109): scripts/cloud-debug.sh strips trailing split multibyte UTF-8 bytes after LC_ALL=C byte-clipping so strict argv wrappers (such as uutils coreutils timeout 0.8.0) no longer fail with exit 5. Contributed by @eyoelmesfin789-star.
  • 0.30.1 (#110): When agy emits a complete JSON SUCCESS reply (with no timeout finished_reason) and then fails to exit on shutdown (antigravity-cli#1313), agy-delegate preserves the reply, warns on stderr, and exits 0 instead of 12. Contributed by @breakzplatform.

0.30.0 — hand-off mode: agy-handoff and /antigravity:handoff (#93)

  • Whole-task test-verified delegation (agy-handoff / /antigravity:handoff). Sends a test-covered requirement to agy in one delegation while Claude reads nothing: registers the project (agy --new-project), runs the repository's detected verification command (go.mod / package.json / Cargo.toml / pyproject.toml / Makefile, or --verify), allows at most one fix-up quoting failing test output, checks that --tests files were not tampered with, supports --background via agy-job and --json output, and admits agy-handoff in validate-delegate-bash.sh while blocking --verify and --no-verify.

0.29.1 — pro fallback cost and provenance docs (#108)

  • Documents the measured cold-start rejection cost of unremapped pro fallbacks and separates measured enterprise behavior from issue-reported consumer and GCP/API-key plan shapes (#102, #104).

Thanks to @breakzplatform, @eyoelmesfin789-star, @NicholasVasconcellos, and @speedyrulz for the contributions and detailed bug reports.