Skip to Content

Antigravity Integration

⚡ 5 min read

Install transcodes-guard for Google Antigravity 2.0 (desktop app or agy CLI). Node.js ≥ 20. Get a MAT from Console — see AI Agent Overview.

Beta — may crash or misbehave. For production, prefer Claude Code or Codex.

The bundled installer copies the plugin to IDE + CLI dirs and injects absolute paths into hooks.json / mcp_config.json (Antigravity pins hook CWD to $HOME — relative paths break).


Save your token

# macOS / Linux curl -fsSL https://raw.githubusercontent.com/transcodings/transcodes-guard/prod/cli/install.sh | bash && transcodes install # Windows (PowerShell): # irm https://raw.githubusercontent.com/transcodings/transcodes-guard/prod/cli/install.ps1 | iex; transcodes install # or: transcodes set <MAT> -l antigravity

Run installer

One line — no manual cd, no npm install, no build (dist/ is committed):

git clone https://github.com/transcodings/transcodes-guard.git /tmp/tg-install && node /tmp/tg-install/plugins/antigravity/install.mjs && rm -rf /tmp/tg-install

Re-run the same one-liner to update — it overwrites the existing install in place.

Workspace-only (contributors): clone the repo and run node plugins/antigravity/install.mjs --local.agents/plugins/transcodes-guard.

Do not use agy plugin install https://github.com/transcodings/transcodes-guard — it installs the wrong adapters and skips path substitution.

Verify

agy plugin list should show transcodes-guard. PreToolUse matcher: run_command|mcp_.*|call_mcp_tool — gates shell and MCP (including lazy call_mcp_tool wrappers). File-edit tools (write_to_file, …) are not gated.


Verified MCP actions

Tools like retire_member and set_role_permissions require step-up MFA when RBAC level is 2. Matrix: RBAC. Flow: Step-up Auth.


After a deny

  1. User completes MFA on Transcodes Auth.
  2. Agent calls poll_stepup_session_wait with sid.
  3. Retry the same command on verified.

See also: Cursor · Codex · Step-up Auth

Last updated on