Tern Surface Protocol ACP v1 v3.1.2

Antigravity CLI, native inside Tern.

Connects Tern Desktop, Web, and Mobile directly to the official agy acp --sandbox subprocess. Full command parity, clickable subagent diffs, and explicit permission prompts without duplicating CLI credentials or tooling.

Install command selector

Detected: macOS / Linux

curl -fsSL https://agy-tern.oktaavsm.xyz/install.sh | bash
  1. 01 Auto-detects OS and CPU architecture
  2. 02 Checks and installs Bun (>= 1.2.22)
  3. 03 Verifies SHA-256 release archive
  4. 04 Links CLI and installs Tern bridge plugin

Independent MIT-licensed open-source frontend, not an official Google or Stencil product. Requires official agy CLI with ACP support.

Live ACP conversation with clickable task tracking and inline diffs.

Strict presentation boundary

agy-tern never stores credentials or executes tools on its own. Prompts, approvals, and tool events stay inside the official agy binary while Tern handles native layout.

agy-tern architecture diagram Tern terminal communicates with agy-tern over Tern Surface Protocol. agy-tern speaks ACP v1 over stdio to the official agy acp sandbox subprocess, which handles auth, tools, and Google traffic. Optional agy-tern-bridge Luau plugin extends Tern tabs. Tern Terminal Desktop, Web, and Mobile TSP APC / OSC 877 agy-tern Bun + TypeScript UI layer ACP v1 stdio JSON-RPC agy acp --sandbox Auth, tools, Google APIs agy-tern-bridge (Luau) Mission Control blocks, CLI lenses, Carly
Owned by agy-tern
Native TSP layout across desktop and phone viewports, keyboard navigation, centered startup composer, clickable diffs, prompt templates, and Ctrl+C shell handoff.
Kept inside official agy CLI
OAuth tokens, Google API calls, model routing, tool execution, allow/deny rules, and server-issued approval IDs. Only implemented ACP capabilities are advertised.

Built for real terminal work

Every native control stays synchronized with ACP runtime state and returns cleanly to your interactive shell on exit.

  1. 01

    Centered startup dock with smooth floor

    Opens centered on idle desktop sessions with quick model, effort, mode, and quota controls, then glides into the bottom composer dock as soon as you type.

  2. 02

    Subagent groups, inline diffs, and schema forms

    Streams reasoning, grouped background subagent tasks, side-by-side or stacked file diffs, and interactive elicitation/create dialogs with explicit server-ID permissions.

  3. 03

    Full official slash-command parity

    Supports /model (including orchestrator presets), /effort, /mode, /tasks, /changes, /queue, /templates, /rewind, and fuzzy @file attachments.

  4. 04

    Return to terminal on Ctrl+C or Quit

    When launched directly by Tern without a parent shell, exiting hands the pane straight to $SHELL on POSIX or pwsh.exe / cmd.exe on Windows instead of closing the tab.

  5. 05

    Cross-platform self-updater and diagnostics

    Run agy-tern update on Linux, macOS, or native Windows to fetch SHA-256 verified release archives, inspect unsafe tar paths, and refresh agy-tern-bridge.

One installer path across desktop operating systems

Windows runs natively through ConPTY without WSL. Linux and macOS install cleanly into XDG user paths without requiring root access for agy-tern itself.

Platform Surface Transport Auto-Bun & Dependencies Clipboard & Shell Handoff
Linux (x86_64 / arm64 / WSL2) Tern APC sequence Auto-checks/installs Bun >= 1.2.22, unzip, and wl-clipboard / xclip Wayland/X11 clipboard paste (Ctrl+V) and interactive $SHELL return
macOS (arm64 / x64) Tern APC sequence Auto-checks/installs Bun >= 1.2.22 via bun.sh/install osascript / pbcopy clipboard and interactive $SHELL return
Windows 11 (Native, no WSL) ConPTY OSC 877 Auto-checks/installs Bun >= 1.2.22 and writes %LOCALAPPDATA%\agy-tern\bin\agy-tern.cmd PowerShell clipboard, .cmd arg quoting, and pwsh.exe / cmd.exe handoff
Advanced installer flags, manual Bun control, and GitHub raw fallbacks
  • Opt out of automatic Bun installation: pass --no-auto-bun on macOS/Linux or -NoAutoBun on Windows (or export AGY_TERN_AUTO_INSTALL_BUN=0).
  • Register Antigravity directly in Tern settings: run curl -fsSL https://agy-tern.oktaavsm.xyz/install.sh | bash -s -- --configure-tern (creates a .bak backup first).
  • Pin a specific release tag: --version v3.1.2 (POSIX) or .\scripts\install.ps1 -Version v3.1.2 (Windows).
  • Uninstall cleanly: curl -fsSL https://agy-tern.oktaavsm.xyz/install.sh | bash -s -- --uninstall or .\scripts\install.ps1 -Uninstall.
  • GitHub raw URL fallbacks: https://raw.githubusercontent.com/oktavsm/agy-tern/main/scripts/install.sh and https://raw.githubusercontent.com/oktavsm/agy-tern/main/scripts/install.ps1.

First launch

Sign in once using the official Antigravity CLI (or run /account inside the app), then start agy-tern inside any project folder.

Latest tag: v3.1.2 · License: MIT

agy acp --login
agy-tern --doctor
cd your-project && agy-tern
agy-tern conversation screenshot preview