Skip to content

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.exe and app.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:

FilePolicy
~/.gemini/config/config.jsonStrictly read-only (enforced by static no-write CI guard tests)
~/.gemini/antigravity/antigravity_state.pbtxtStrictly read-only
~/.gemini/AGENTS.mdUntouched on fresh installs; optional fast-io rules live in opt-in plugin maga-fast-io
~/.gemini/antigravity/conversations/*.dbRead-only local SQLite telemetry (usage, quota, active status)

Preview the complete install surface with zero disk mutations anytime:

bash
node studio/cli.mjs plan

3. 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 exclude thinking, 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-char HEAD SHA optimistic locks, checks git merge-tree --write-tree for conflicts, respects native repo hooks, rolls back atomically on failure, and never executes git 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 independent MutationObserver loops.
  • 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/s and TTFT metrics mutate leaf text nodes without replacing container subtrees.
  • Motion discipline: Animated 5-state sidebar indicators use GPU-composited transform/opacity keyframes only and automatically stop under prefers-reduced-motion: reduce or Studio's motion toggle.
  • Module size ceiling: All tracked source files stay strictly under < 2,000 lines (test/size-baseline.json oversizeRatchet: {}).

5. Dual-OS Native Parity (macOS & Windows 10/11) ​

  • macOS (darwin): Supervised via user-level LaunchAgent with automatic shell proxy environment forwarding.
  • Windows 10/11 (win32): Supervised via headless Scheduled Task (conhost.exe --headless, with Startup .vbs fallback 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 both macos-latest and windows-latest CI.

Independent community open-source project (not affiliated with Google) · MIT License