Skip to content

CLI Commands & Keyboard Shortcuts ​

Quick reference for every AGY Studio CLI command, worktree/governance utility, and Decision Inbox shortcut.

Studio Management CLI (studio/cli.mjs) ​

Run inside your AGY Studio install directory (~/.local/share/agy-studio, ~/Developer/agy-studio, or $env:LOCALAPPDATA\agy-studio):

Commandnpm ScriptPurpose
node studio/cli.mjs plan—Preview managed paths and untouched host files with zero disk writes
node studio/cli.mjs installnpm run install-allBuild user bundle, install daemon, deploy Studio & sync managed plugins
node studio/cli.mjs deploynpm run deployRebuild & hot-deploy Studio JS/CSS bundle into live runtime
node studio/cli.mjs doctornpm run doctorVerify daemon health, CDP attachment, plugin sync, host baseline & proxy diagnostics
node studio/cli.mjs offnpm run studio:offPause UI injection & background Auto-Compact without uninstalling
node studio/cli.mjs onnpm run studio:onResume UI injection cleanly
node studio/cli.mjs safe-mode [status|off|on]—Inspect or toggle Host-Drift Safe-Mode
node studio/cli.mjs rollbacknpm run rollbackStrip Studio blocks, remove managed plugins & restore stock defaults
node studio/probe-host.mjsnpm run probe:hostRun read-only host DOM / React Fiber / SQLite contract probe
node studio/smoke-live.mjsnpm run smoke:liveRun live attachment smoke verification against running Antigravity

Universal Git Worktree CLI (wt.mjs) ​

Works in any local Git repository without repo-local scripts:

bash
WT="$HOME/.gemini/config/plugins/maga-git-workflow/bin/wt.mjs"

# List worktrees and branch states
node "$WT" list --repo "<repo-dir>"

# Create a sibling worktree on a new branch (e.g. feat/auth-fix)
node "$WT" new feat/auth-fix --repo "<repo-dir>" [--base main]

# Clean up a finished worktree (optionally deleting its branch)
node "$WT" clean feat/auth-fix --repo "<repo-dir>" [--delete-branch]

# Inspect effective local governance policy (read-only)
node "$WT" policy --repo "<repo-dir>"

Inside the AGY Studio repository itself, shorthand scripts npm run wt:list, npm run wt:new -- <type>/<slug>, and npm run wt:clean -- <branch-or-path> are also available.


Adaptive Governance CLI (gov.mjs) ​

Inspect, dry-run, apply, or roll back per-repo governance policies (~/.gemini/config/plugins/maga-git-workflow/bin/gov.mjs):

bash
GOV="$HOME/.gemini/config/plugins/maga-git-workflow/bin/gov.mjs"

# Probe project archetype (app|infra|exploration|prototype|docs) & risk traits
node "$GOV" probe --dir "<target-dir>" [--intent "<summary>"] --json

# Replay local conversation history against a candidate mode (read-only, offline)
node "$GOV" replay --dir "<target-dir>" --mode protect-main --json

# Preview exact policy diff and fenced AGENTS.md snippet (zero disk writes)
node "$GOV" plan --dir "<target-dir>" --mode protect-main --archetype app --json

# Apply policy atomically (saves rollback snapshot; pauses for user confirmation in Agent hooks)
node "$GOV" apply --dir "<target-dir>" --mode protect-main --archetype app --reason "team repo" --json

# Undo the last policy change from the 10-entry snapshot history
node "$GOV" rollback --dir "<target-dir>" --json

# Inspect or update global user working-style profile
node "$GOV" persona --show --json

Global Decision Inbox Keyboard Shortcuts ​

Key (macOS / Windows)Action
⌘J / Ctrl+JOpen or close Global Decision & Landing Inbox from any screen (IME-safe)
j / ↓Move selection down
k / ↑Move selection up
Enter or aJump-and-Act (navigate to chat/subagent and mount native approval card; confirms inline landing when confirmation view is open)
rOpen full Evidence Receipt Drawer for the selected worktree
mOpen inline Headless Landing conflict check & merge confirmation
⌘Enter / Ctrl+EnterConfirm inline landing while editing the commit message field
dDismiss the selected alert/item
EscBack out of inline landing confirmation, or close the Inbox modal

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