Architecture & Safety Boundaries
AGY Studio is engineered around strict non-invasive boundaries so you can inspect, audit, pause, or remove every layer cleanly.
1. Zero Binary Mutation (0 bytes Modified)
AGY Studio never patches, repacks, or replaces any official Google Antigravity Desktop binary:
/Applications/Antigravity.app(macOS) — untouched (0 bytes)Antigravity.exeandapp.asar(Windows) — untouched (0 bytes)- Code signatures, macOS notarization, and official auto-updates remain intact.
Attachment happens purely at runtime through a single local user-level daemon (com.antigravity.anti-claude.daemon on macOS; AGYStudioDaemon on Windows) communicating over local Chrome DevTools Protocol (CDP).
2. Strictly Read-Only Host Configuration
AGY Studio isolates all state under ~/.gemini/antigravity/anti-claude/ and its managed plugins under ~/.gemini/config/plugins/. The following host files are strictly read-only:
| File | Policy |
|---|---|
~/.gemini/config/config.json | Strictly read-only (enforced by static no-write CI guard tests) |
~/.gemini/antigravity/antigravity_state.pbtxt | Strictly read-only |
~/.gemini/AGENTS.md | Untouched on fresh installs; optional fast-io rules live in opt-in plugin maga-fast-io |
~/.gemini/antigravity/conversations/*.db | Read-only local SQLite telemetry (usage, quota, active status) |
Preview the complete install surface with zero disk mutations anytime:
node studio/cli.mjs plan3. Zero Telemetry & Zero Raw CoT Leakage
- 100% local processing: Context utilization, dual-pool quotas, Decision Inbox queues, Evidence Receipts, and Adaptive Governance history replay previews run strictly on your local machine with zero remote telemetry.
- Zero raw Chain-of-Thought leakage: Transcript extractors (
handoff-transcript.mjs,receipt-transcript.mjs,governance-replay.mjs) explicitly excludethinking,rawThinking,thought, and raw tool stdout bodies. Only redacted commands, exit codes, file paths, user prompts, and explicit checkpoints are processed. - No silent auto-push: Headless worktree landing (
receipt-service.mjs,race-service.mjs,decision-inbox.mjs) validates 40-charHEADSHA optimistic locks, checksgit merge-tree --write-treefor conflicts, respects native repo hooks, rolls back atomically on failure, and never executesgit push.
4. Frontend Performance & UI Invariants
Fast streaming output and multi-repo sessions degrade quickly if injected UI scripts register multiple DOM observers or expensive selectors. AGY Studio enforces mechanical CI guards (test/studio.test.mjs) across every tracked module:
- Single root observer (
MagaKernel): All Studio UI modules share one centralized scheduler (studio/core/kernel.mjs) instead of spawning independentMutationObserverloops. - Zero global CSS
:has(): Imperative DOM flags (studio/core/dom-flags.mjs) replace costly global:has()selectors across all stylesheets. - Leaf text updates only: Live streaming
tok/sand TTFT metrics mutate leaf text nodes without replacing container subtrees. - Motion discipline: Animated 5-state sidebar indicators use GPU-composited
transform/opacitykeyframes only and automatically stop underprefers-reduced-motion: reduceor Studio's motion toggle. - Module size ceiling: All tracked source files stay strictly under
< 2,000lines (test/size-baseline.jsonoversizeRatchet: {}).
5. Dual-OS Native Parity (macOS & Windows 10/11)
- macOS (
darwin): Supervised via user-levelLaunchAgentwith automatic shell proxy environment forwarding. - Windows 10/11 (
win32): Supervised via headless Scheduled Task (conhost.exe --headless, with Startup.vbsfallback on restricted GPOs), native 8.3 short-path canonicalization (realpathSync.native), Named Pipe IPC, pure-Node.tar.gz/ .NET Unicode-safe zip extraction, and continuous CI testing on Chinese + space + parenthesis paths. - Regression Baseline:
430+hermetic cross-platform unit and invariant tests passing on bothmacos-latestandwindows-latestCI.