A zero-invasive runtime engineering suite for Google Antigravity Desktop 2.0
English · 简体中文 · Documentation
Explore the Official Docs · Paste one prompt into your agent to install automatically → Quick Start
|
Context & Quota Cockpit Cache hits · Burn-pace cursor |
Model Routing & Stream 1-click router · In-bubble edit |
Decision Inbox & Receipts Cross-repo triage · Real exit codes |
Worktrees & Governance Fork & Race · Adaptive guardrails |
Vanilla Antigravity → AGY Studio 2.0 at a glance: ~75% blank right Overview becomes a live Context / Dual-Pool Quota / Usage cockpit, footer becomes a calm 2-row dock with the expanded model menu (effort slider & 1-click Orchestrator switch), static topbar turns into interactive project & branch chips, and the sidebar adds 5 semantic activity states, fair caps & Chinese UI (demo fixtures).
Vanilla Antigravity ships strong models, yet heavy daily use still runs half-blind — context usage, Prompt Cache hit rates, whether your dual-pool 5h / Weekly burn pace will hit a wall before reset, and per-model token spend all stay out of sight. Switching routing takes a three-level menu, dropped runs force manual "continue" nudges, and repeated compactions slowly cause context amnesia. Scale up to parallel repositories and the pain compounds: approvals vanish inside background tabs, agents claim "tests pass" after late edits, and comparing designs means wrestling Git worktrees by hand.
AGY Studio 2.0 makes everyday context, quotas, model routing, and controls transparent first, then layers a zero-invasive Agent Control Plane and Adaptive Project Governance on top — keyboard-first triage, deterministic verification receipts, side-by-side worktree races, and tailored per-repo guardrails without modifying a single byte of the official client.
Vanilla Antigravity leaves roughly 75% of its right Overview panel blank while hiding context usage, cache efficiency, and quota burn pace. AGY Studio turns that dead space into an always-on cockpit:
- 3-segment context bar, cache hit rate & 1-click Compact: Both the Overview card and composer ring track live context utilization (cached vs. new input vs. free headroom), Prompt Cache hit rate, and cumulative thinking/text output — with automatic
60% / 75%warning tints and one-click/compact. - Dual-pool
5h / Weeklyquota with elapsed-time cursor: Track both Gemini and Claude / GPT pools side-by-side with reset countdowns and a live time-window progress marker on each bar — if your spend passes the clock cursor, you know immediately you're burning faster than reset pace. - Workspace card & interactive spend breakdown: Surface the active Git branch, one-click view/edit for global + project
AGENTS.md, quick file-manager jump, and active side chats; click any Day / Week / Month bar to immediately inspect its per-model token spend underneath.
AGENTS.md workspace card, 3-segment context bar, and dual-pool quotas with time-elapsed cursors |
Click any Day / Week / Month bar to link its per-model token spend breakdown |
Vanilla Antigravity spreads models across 15+ flat Model (Low / Medium / High) rows, hides routing behind a three-level menu (Router → Primary → Executor + Effort), and crowds footer controls on narrow windows. AGY Studio brings every high-frequency control into one calm two-row bottom dock:
One continuous tour of the two-row dock: Guarded 3 autonomy & inbox → Gemini 4 Neon effort slider & 1-click router → 182.9k/512k G2 context/quota popover & tok/s → Subagents 2 1-click 50/50 split.
- One-click Master Router switch, persistent executor & Custom Agent picker: A top-level Orchestrator toggle inside the model menu replaces vanilla's three-level routing cascade, your chosen lightweight executor model persists across restarts, and new chats surface an inline Custom Agent selector right at the top of the menu.
- Family-grouped menu, hidden models & per-family defaults: Collapses flat effort variants into clean model families plus a direct reasoning-tier slider; hide models you never use, strip
New / Leaving Soonmarketing badges, and set a default effort tier per family (e.g., Neon defaults to High; visual motion themes can be reduced or turned off). - Live speed telemetry, narrow-pane compression & 1-click
50/50subagent split: Shows livetok/s · TTFTthroughput beside the context ring and adapts cleanly across 4 progressive compression tiers so narrow panes never wrap or clip; when background subagents run, click the dock capsule once to tuck the sidebar into a symmetric50/50split and click again to restore.
Compare before/after: Vanilla 3-level nested routing & 15+ flat rows → AGY Studio 1-click Master Router
Across busy multi-repo sessions, AGY Studio turns the sidebar and conversation header into clear operational landmarks:
- Animated 5-state semantic activity icons & bubbled subagent alerts: Distinguish primary reasoning, subagent/
/swarmruns, background shell commands, scheduled timers, and lock/approval pauses at a glance with lightweight GPU-composited micro-motion (respectingprefers-reduced-motionand Studio's motion toggle) — with blocked child subagents bubbling straight to their parent row and the⌘JInbox. - Fair sidebar cap (
4/8) & flexible project ordering: Fairly caps expanded chats per project and overall while pinning active/pending chats so one busy repo never drowns out the rest; organize workspaces byFixed,Name,Usage, orRecent— or switch to a single chronological Recents list. - Persistent project/branch topbar & drag-to-
@mentions: Switch projects, inspect the active branch/worktree and governance status, or launch a new chat from any conversation header; drag any sidebar chat or local file into the composer to cite it as@context. - Built-in Simplified Chinese, Customizations & portable settings: Zero-ASAR Simplified Chinese localization with 95% CJK optical font-height calibration,
Skills / Plugins / MCP / Agentsfilter tabs with in-app Create / Import local Skill, JSON settings export/import, and one-click in-app self-updates with automatic rollback.
Two small defaults in vanilla Antigravity constantly break flow: finished turns collapse everything into a single Worked for Xs black box, and clicking edit/revert on an earlier message wipes all downstream replies immediately, erasing the exact answer you wanted to refine against.
- 3 Step Stream modes, Thought toggle & sticky code copy: Pick between
Inline Briefs(default),Compact, andVerbose(with a live preview inside Settings) so milestone notes stay readable while tool chatter stays quiet; toggle verbose English Thought prose off/on anytime; code blocks over 40 lines fold cleanly with a sticky language & copy header. - Edit prompts in-bubble without losing downstream replies: Click any earlier user message to edit right inside the bubble — all downstream replies stay visible on screen for reference until you click Resend, with an independent Revert files toggle and
Escto cancel cleanly.
Once daily single-session work is transparent, scaling up to parallel repositories, background subagents, and competing approaches surfaces harder bottlenecks: buried approvals, prose "tests passed" claims, hand-managed worktrees, and mid-run amnesia. AGY Studio 2.0 layers four zero-invasive control-plane capabilities right onto the same desktop window:
Press ⌘J from any workspace → triage cross-repo locks, subagent approvals, and ready branches → verify real test exit codes & review verdicts → run conflict pre-checks and land cleanly into main (never auto-pushes).
Stop clicking through sidebar folders to find which subagent stalled or which branch is ready to merge. Press ⌘J (Ctrl+J on Windows) anywhere in Antigravity to pull up a live cross-repo decision queue aggregated by the local daemon — zero tokens spent, zero LLM involvement:
- Six live decision queues in one view: Aggregates parameter lock confirmations (
.agents/locks.json), native tool approvals, bubbled child-subagent questions, multi-worktree file-collision alerts (verified againstgit merge-baseand real conflict checks), pending cross-model reviews, and clean landable branches into one filterable list (All/Blocking/Alerts & Review/Landable). - Keyboard-first, safe by construction: Move with
j/k, jump directly to mount native approval cards withEnter/a(never blind-clicks hidden buttons), inspect full verification receipts withr, or pressmto run a conflict pre-check and safely land intomainright inside the modal (verifies branch HEAD before merging and rolls back cleanly on failure). - Live dock counter: Pending counts update the bottom-bar capsule in real time so urgent approvals never hide behind collapsed workspaces.
An agent's prose summary is not proof of verification. AGY Studio builds an objective Evidence Receipt directly from real executed command exit codes, Git diff state, cross-model review verdicts, and local token ledgers:
- Real exit codes, anti-cheat diff checks & provenance: Clearly separates
✓ Verified,✕ Tests Failed,⚠ Unverified After Edit(catching edits made after the last green test run), and○ No Test Runs— including detecting masked failures hidden behind pipes,||, or;, flagging test-diff tampering or disabled checks in the Receipt Drawer, and stampingCross-Model ✓execution-vs-reviewer provenance. - One-click PR receipts & safe background landing: Copy a structured Markdown verification report straight into your PR in one click; when ready, run a non-mutating conflict pre-check and land clean worktrees into
mainvia hook-respectingMerge (--no-ff)orSquashwith automatic rollback and optional worktree cleanup (never runsgit push).
When a tough refactor or bug has multiple viable approaches, don't gamble on a single run or juggle git stash by hand. AGY Studio takes a read-only baseline snapshot including your uncommitted local edits (leaving your working tree untouched), forks 2–3 isolated worktrees running different models on the exact same task, and lets objective receipts decide the winner:
- Isolated branches, chats, and quota-aware models: Generates a clean handoff brief and launches each contender in its own worktree and conversation with verified model switching and Gemini-first quota-aware defaults so parallel attempts never step on each other's files or drain scarce Claude pools.
- Objective receipt scoreboard &
K×KCross-Test matrix: Compare test verification status, diff size, review verdict, elapsed time, token spend, and cache hit rate side-by-side, and run contenders' test suites across peer branches in isolated sandboxes (K×KCross-Test). - Atomic
Land Winner & Prune Losers(with Test-Union): Optionally merge and re-verify losing contenders' passing tests onto the winner before landing; losing worktrees and branches are cleaned up only after your chosen winner passes conflict checks and lands cleanly intomain.
Four silent failure modes drain hours from long AI coding sessions — mid-task crashes, cold-cache token spikes after idle waits, context amnesia after repeated compactions, and single-model blind spots. AGY Studio handles all four through one quiet bottom-bar capsule, controlled by three one-click profiles:
- One-click clean crash / timeout resume (
Resume): When a run drops due to network blips, timeouts, or crashes, the dock highlights a one-click Resume button — clicking it submits silently in the background without typing "continue" or cluttering the chat, leaving only a minimal▸ Resumedhairline. - Warm-cache compaction before long waits (
Auto-Compact): When a task sets a>= 5mtimer with elevated context, AGY Studio triggers/compactright as the turn finishes while Prompt Cache is still warm (including background chats via a quiet-boundary guard, avoiding full cold-cache re-read bills after wake-up). - Budget-preserved milestone handoff & Session Handoff Bar (
G >= 3): Tracks compaction generations (G) automatically; when a long thread reachesG >= 3, one click opens a fresh chat pre-loaded with Turn 1's goal, the latest checkpoint, recent turns, and a redacted file/command digest (~36–40 KB budget, zero raw CoT). Once handed off, a flush Session Handoff Bar attaches right above the old chat's composer so you can jump to the active continuation in one click. - Quota-guarded cross-model review & lock guards: Triggers read-only
Opus High/Carbon Highreviews on demand or across four checkpoints (plan,risk,debug,stop), backed by live5h / Weeklyquota circuit breakers — alongside mandatory confirmation whenever edits touch locked configs in.agents/locks.json.
| Profile | Best For | One-Click Safeguard Mix |
|---|---|---|
Solo |
Focused single-branch coding | Minimal dock interruptions; keeps one-click clean Resume, G >= 3 handoff, and semi-auto warm compaction |
Guarded (Default) |
Everyday multi-tasking | Non-blocking dock suggestions for cross-model review, warm compaction, milestone handoff, and lock guards |
Fleet |
Heavy multi-repo parallelism | Quota-guarded cross-model reviews (Opus High / Carbon High) + 80% high-water warm compaction |
Running parallel chats against one local checkout causes branch switches in one tab to mutate files under another — yet forcing strict rules onto a quick prototype or docs folder slows you down. AGY Studio pairs filesystem-level worktree isolation with Adaptive Project Governance that fits each repository's real shape:
- Per-chat Git Worktrees & local-only guardrails: Create or switch dedicated worktrees from Project Detail or the topbar; assign per-repo
observe/protect-main/worktree-onlytiers with force-push protection, optional bulkgit push --tagsblocking, commit-boundary secret scanning, and a 24h guard log — stored strictly in your local user directory without touching repo files. - Adaptive Project Governance, history replay preview & 10-snapshot rollback: Scans each directory to recognize App, Infra, Exploration, Prototype, or Docs setups and suggests tailored branch and confirmation rules through a non-blocking card (plus one-click
git initor/grill-mecustomization for brand-new folders). Before tightening rules on an existing repo, preview what would be flagged or relaxed against your own local history, and undo any change in one click from the last 10 saved snapshots. - AI cold-start conversation suggestions (zero Antigravity quota spent): Generates 3 concrete follow-up chat starters from recent project history and branch state; clicking one auto-switches to the right worktree with a condensed handoff prompt (powered by your own Gemini API key, sending compact summaries only).
- One-click
@context from live diffs & Global Projects hub: Inspect uncommitted edits and recent commits inline without opening a terminal, clicking+or dragging straight into the composer; the global Projects wall surveys branch status, inlineAGENTS.mdediting, worktree counts, live status, and 30-day token usage across every repository.
Requirements: macOS (Apple Silicon / Intel) or Windows 10/11 (x64 / ARM64) · Node.js >= 22 · Google Antigravity Desktop 2.0
Read https://raw.githubusercontent.com/LiWithDream/agy-studio/main/INSTALL.md and follow it to install or update AGY Studio for me.
One-click updates, safe pause & clean uninstall: Official client binaries,
~/.gemini/config/config.json, and personal~/.gemini/AGENTS.mdstay untouched. Check and install future updates directly inside the AGY Studio Settings drawer with automatic rollback on failure, runnpm run studio:off/npm run studio:onanytime to pause or resume without uninstalling (with automatic Host-Drift Safe-Mode if a future Antigravity update breaks critical UI contracts — see docs/MAINTENANCE.md), or runbash ./uninstall.sh(macOS) /.\uninstall.ps1(Windows) to restore cleanly. Full guides live on the Documentation Site and in INSTALL.md.
Manual terminal install (macOS Terminal / Windows PowerShell)
# macOS (latest stable Release; preview changes with --plan)
curl -fsSL https://raw.githubusercontent.com/LiWithDream/agy-studio/main/install.sh | bash# Windows 10/11 PowerShell (latest stable Release)
irm https://raw.githubusercontent.com/LiWithDream/agy-studio/main/install.ps1 | iexFor prebuilt no-npm Release archives, optional flags (--with-rules, --no-auto-relaunch), doctor diagnostics, and uninstall details, see INSTALL.md or the Getting Started Guide.
0 bytesmodified in official app binaries: Attaches at runtime via a single local daemon without touching/Applications/Antigravity.apporAntigravity.exe/app.asar, keeping code signatures and official auto-updates intact.- Host-Drift Safe-Mode & one-command pause: Verified live on Antigravity Desktop
2.36.x; if a newer host update breaks a critical DOM, React Fiber, or SQLite contract across two consecutive probes, AGY Studio automatically switches to read-only safe mode so your client never stalls — andnpm run studio:off/studio:onpauses or resumes injection on demand. - Strictly local read-only telemetry & zero CoT leakage: Receipts, Decision Inbox, history replay previews, quotas, and token spend read local state strictly read-only with zero remote telemetry and zero raw Chain-of-Thought leakage into rules, handoff briefs, or optional extensions.
- Smooth high-speed streaming: All UI modules share a lightweight single-scheduler loop with minimal DOM updates so fast streaming and multi-repo sessions stay crisp (
430+cross-platform regression and invariant tests passing on macOS & Windows CI).
Architecture & safety internals (for technical reviewers)
- Deterministic receipts & headless landing: Parses real command exit codes and masked failure patterns from
transcript_full.jsonl; headless landing runs non-mutatinggit merge-tree --write-treeconflict pre-checks, SHA-40 CAS verification, hook-respecting merges, and atomic rollback, and never runsgit push. - Read-only race snapshots & model isolation: Captures uncommitted edits via an isolated temporary
GIT_INDEX_FILEwithout mutating your working tree; contender chats launch serially under an exclusive input lock with fresh React Fiber model switching and read-back verification. - UI performance guards: Studio modules share a single
MagaKernelroot observer, live speed updates mutate leaf text nodes only, and CI tests mechanically block global:has()selectors and self-mutation loops. - Dual-OS native parity: macOS uses
LaunchAgentsupervision with shell proxy forwarding; Windows 10/11 uses headless Task Scheduler supervision, native 8.3 path canonicalization, and Named Pipe IPC for full non-ASCII and space-path reliability.
- Platforms: Native support for macOS and Windows 10/11 (headless background supervision, non-ASCII usernames and paths with spaces supported, automatic proxy diagnostics, and Start Menu launcher bootstrap). Linux is not supported yet.
- Plugin coexistence: Runs cleanly alongside
INK-Q/agy-fast; because AGY Studio vendorsLumidarin/agy-capsule(MIT) and distilledfast-iorules directly, avoid enabling standaloneagy-capsuleorWhiteBr1ck/agy-powertoolssimultaneously. - Documentation & Runbooks: Browse the full bilingual docs at liwithdream.github.io/agy-studio (简体中文) or inspect docs/MAINTENANCE.md directly.
Proxy troubleshooting (Error Loading Models / EOF)
This error originates from Antigravity's native backend when its proxy or TLS connection to Google services drops: enable System Proxy or TUN mode in your proxy client, and run
node studio/cli.mjs doctor to inspect proxy diagnostics.
Advanced extension: Self-hosted Remote Control (for users with private domains / mesh networks)
Includes an off-by-default loopback gateway (bound by default to
127.0.0.1:18791) with responsive desktop/mobile PWA and Android clients for remote session viewing, tool approvals, Git diff inspection, plus read-only Decision Inbox and Evidence Receipt views (branch landing and Fork & Race remain strictly desktop-only). Use Cloudflare Access, a private Tailscale tailnet, or your own HTTPS reverse proxy. In Remote Control settings select Own reverse proxy, enter the full external origin (such as https://agy.example.com:38443), the gateway's local listen IP and the proxy's source IP. Preserve the original Host including port and WebSocket upgrades. Overwrite X-Forwarded-Proto, X-Real-IP and X-AGY-Proxy-Token on the proxy and retain its access authentication. Pair devices with the desktop QR code. See the [Lucky and Nginx configuration example](./README.zh-CN.md#self-hosted-proxy).
Contributing
Issues and Pull Requests are welcome — see CONTRIBUTING.md for contributor workflow (run
npm run build:remote && npm test locally).
AGY Studio builds on design inspiration and MIT-licensed core code from these open-source projects:
- hongqi7/Anti-Claude — Provided the zero-invasive local CDP daemon foundation, Claude-inspired light/dark visual tokens, and Overview panel framework.
- Lumidarin/agy-capsule (MIT License) — Vendored in
vendor/agy-capsule/, providing the model & routing picker, reasoning effort slider, and local SQLite usage parser. - LLYSH-HANNARI/antigravity-Codex-Claude-effort-slider (MIT License) — Introduced via
agy-capsule, contributing family-specific direct effort slider commits and visual themes. - oil-oil/agy-fast-io — Contributed the search-first batched terminal reading workflow distilled into optional rules.
Independent community open-source project (not affiliated with Google) · Previously published as MAGA · MIT License — if AGY Studio helps your daily workflow, consider leaving a ⭐.













