Skip to content

About

Multi-project & Git-worktree workspace for Google Antigravity Desktop 2.0 on macOS — per-project token analytics, live Git drawers, dual-pool quota & Opus Gate.

Topics

Resources

Contributing

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

AGY Studio

AGY Studio

Give Google Antigravity a transparent cockpit and a deterministic engineering control plane.

A zero-invasive runtime engineering suite for Google Antigravity Desktop 2.0



English · 简体中文 · Documentation

Documentation GitHub Stars Latest Release macOS & Windows Antigravity Chinese UI License: MIT

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
Full-window before-and-after comparison from Vanilla Antigravity Desktop 2.0 to AGY Studio 2.0: blank right Overview becomes a live Context, Dual-Pool Quota and Usage cockpit, footer becomes a calm 2-row dock with the expanded model menu showing the physical effort slider and 3D Orchestrator switch, topbar adds project and branch chips, and sidebar adds 5 semantic activity states and fair caps

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.


 The Everyday Interface: Turn Vanilla Black Boxes into a Transparent Cockpit

1. Context, Dual-Pool Quota & Overview Panel: Know Before You Hit the Wall

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 / Weekly quota 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.
Workspace AGENTS.md card, 3-segment context bar, dual-pool 5h and weekly quota with elapsed time-window cursors, and live tok/s and TTFT dock telemetry
AGENTS.md workspace card, 3-segment context bar, and dual-pool quotas with time-elapsed cursors
Click any bar to inspect details and link per-model token breakdown
Click any Day / Week / Month bar to link its per-model token spend breakdown

2. Model Routing Menu & Bottom Cockpit: One Calm Two-Row Dock for Every Daily Control

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:

AGY Studio 2.0 Bottom Dock 4-stop zoom-in tour: Guarded autonomy profiles and Cmd+J Inbox, Gemini 4 Neon effort slider and Orchestrator switch, 182.9k/512k G2 Plan Usage and Context popover with live tok/s telemetry, and 1-click 50/50 Subagent Split

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 Soon marketing 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/50 subagent split: Shows live tok/s · TTFT throughput 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 symmetric 50/50 split and click again to restore.
Compare before/after: Vanilla 3-level nested routing & 15+ flat rows → AGY Studio 1-click Master Router

Before-and-after comparison from vanilla 3-level nested routing and flat model list to AGY Studio one-click Master Orchestrator toggle, persisted executor, clean model families with hidden unused models, and inline Custom Agent picker

3. Sidebar, Topbar & Daily Craft: Know Who Is Running, Stuck, or Waiting on You

Across busy multi-repo sessions, AGY Studio turns the sidebar and conversation header into clear operational landmarks:

Animated 5-state semantic sidebar activity icons, bubbled subagent approval alerts, and persistent project topbar
Animated 5-state semantic activity icons, bubbled subagent alerts, and persistent project topbar
AGY Studio 2.0 Settings drawer showing fair 4/8 sidebar cap, project sort modes, hidden models and >40L fold summary, Simplified Chinese with 95% CJK optical scale, JSON export/import, and 1-click self-update
Fair 4/8 sidebar cap, project sort options, Chinese UI with 95% CJK scale, JSON export & 1-click updates
  • Animated 5-state semantic activity icons & bubbled subagent alerts: Distinguish primary reasoning, subagent//swarm runs, background shell commands, scheduled timers, and lock/approval pauses at a glance with lightweight GPU-composited micro-motion (respecting prefers-reduced-motion and Studio's motion toggle) — with blocked child subagents bubbling straight to their parent row and the ⌘J Inbox.
  • 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 by Fixed, Name, Usage, or Recent — 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 / Agents filter tabs with in-app Create / Import local Skill, JSON settings export/import, and one-click in-app self-updates with automatic rollback.

4. Conversation Stream: Transparent Progress & Non-Destructive In-Bubble Editing

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, and Verbose (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 Esc to cancel cleanly.

Preserved reasoning briefs, folded long code blocks, and non-destructive in-bubble prompt editing demo


 The 2.0 Agent Control Plane: Scale from Single-Session Clarity to Multi-Repo Mastery

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:

AGY Studio 2.0 control plane walkthrough: press Cmd+J to open the Global Decision Inbox, navigate to a verified landable branch, inspect real test exit codes and review verdict, and safely land into main

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).

1. Global Decision & Landing Inbox (⌘J / Ctrl+J): Triage Every Repo Without Leaving the Keyboard

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:

Global Cmd+J Decision and Landing Inbox keyboard workflow: j/k triage across lock guards, bubbled subagent approvals, pending reviews, and inline conflict-checked landing

  • 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 against git merge-base and 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 with Enter/a (never blind-clicks hidden buttons), inspect full verification receipts with r, or press m to run a conflict pre-check and safely land into main right 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.

2. Deterministic Evidence Receipts & Safe Worktree Landing

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:

Deterministic Evidence Receipt drawer contrasting Unverified After Edit amber warning against Verified rc=0 test proof, diff stats, review verdict, PR Markdown copy, and safe background landing confirmation

  • 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 stamping Cross-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 main via hook-respecting Merge (--no-ff) or Squash with automatic rollback and optional worktree cleanup (never runs git push).

3. Worktree Fork & Race Arena: Pit Models Side-by-Side, Land the Verified Winner

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:

Worktree Fork and Race Arena comparing Claude Opus 5.5 Verified contender against Gemini 4 Neon Unverified After Edit contender, followed by one-click Land Winner and Prune Losers

  • 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×K Cross-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×K Cross-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 into main.

4. Three Autonomy Profiles (Solo / Guarded / Fleet) & Session Handoff Bar

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:

Autonomy safeguards bottom-bar capsule switching Solo, Guarded, and Fleet profiles, Carbon High and Opus High reviewers with live quota, and G3 Milestone Handoff

  • 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 ▸ Resumed hairline.
  • Warm-cache compaction before long waits (Auto-Compact): When a task sets a >= 5m timer with elevated context, AGY Studio triggers /compact right 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 reaches G >= 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 High reviews on demand or across four checkpoints (plan, risk, debug, stop), backed by live 5h / Weekly quota 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

 Parallel Worktrees, Adaptive Project Governance & Projects Hub

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:

Project Detail view with isolated Git worktree, Race and Receipt triggers, one-click @limiter.ts citation from uncommitted diffs, and inline commit diff inspection

  • 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-only tiers with force-push protection, optional bulk git push --tags blocking, 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 init or /grill-me customization 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, inline AGENTS.md editing, worktree counts, live status, and 30-day token usage across every repository.
View the global Projects hub overview

AGY Studio global Projects hub overview with 6 repositories, status badges, and 30-day token usage heat bars


Quick Start

Requirements: macOS (Apple Silicon / Intel) or Windows 10/11 (x64 / ARM64) · Node.js >= 22 · Google Antigravity Desktop 2.0

Recommended: Paste This into Antigravity or Claude Code

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.md stay untouched. Check and install future updates directly inside the AGY Studio Settings drawer with automatic rollback on failure, run npm run studio:off / npm run studio:on anytime 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 run bash ./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 | iex

For 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.


 Safe & Fast Foundation

  • 0 bytes modified in official app binaries: Attaches at runtime via a single local daemon without touching /Applications/Antigravity.app or Antigravity.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 — and npm run studio:off / studio:on pauses 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-mutating git merge-tree --write-tree conflict pre-checks, SHA-40 CAS verification, hook-respecting merges, and atomic rollback, and never runs git push.
  • Read-only race snapshots & model isolation: Captures uncommitted edits via an isolated temporary GIT_INDEX_FILE without 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 MagaKernel root 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 LaunchAgent supervision 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.

Platform Support, Compatibility & Extensions

  • 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 vendors Lumidarin/agy-capsule (MIT) and distilled fast-io rules directly, avoid enabling standalone agy-capsule or WhiteBr1ck/agy-powertools simultaneously.
  • 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).

Acknowledgements

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 ⭐.

About

Multi-project & Git-worktree workspace for Google Antigravity Desktop 2.0 on macOS — per-project token analytics, live Git drawers, dual-pool quota & Opus Gate.

Topics

Resources

Contributing

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages