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):
| Command | npm Script | Purpose |
|---|---|---|
node studio/cli.mjs plan | — | Preview managed paths and untouched host files with zero disk writes |
node studio/cli.mjs install | npm run install-all | Build user bundle, install daemon, deploy Studio & sync managed plugins |
node studio/cli.mjs deploy | npm run deploy | Rebuild & hot-deploy Studio JS/CSS bundle into live runtime |
node studio/cli.mjs doctor | npm run doctor | Verify daemon health, CDP attachment, plugin sync, host baseline & proxy diagnostics |
node studio/cli.mjs off | npm run studio:off | Pause UI injection & background Auto-Compact without uninstalling |
node studio/cli.mjs on | npm run studio:on | Resume UI injection cleanly |
node studio/cli.mjs safe-mode [status|off|on] | — | Inspect or toggle Host-Drift Safe-Mode |
node studio/cli.mjs rollback | npm run rollback | Strip Studio blocks, remove managed plugins & restore stock defaults |
node studio/probe-host.mjs | npm run probe:host | Run read-only host DOM / React Fiber / SQLite contract probe |
node studio/smoke-live.mjs | npm run smoke:live | Run 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 --jsonGlobal Decision Inbox Keyboard Shortcuts
| Key (macOS / Windows) | Action |
|---|---|
| ⌘J / Ctrl+J | Open or close Global Decision & Landing Inbox from any screen (IME-safe) |
| j / ↓ | Move selection down |
| k / ↑ | Move selection up |
| Enter or a | Jump-and-Act (navigate to chat/subagent and mount native approval card; confirms inline landing when confirmation view is open) |
| r | Open full Evidence Receipt Drawer for the selected worktree |
| m | Open inline Headless Landing conflict check & merge confirmation |
| ⌘Enter / Ctrl+Enter | Confirm inline landing while editing the commit message field |
| d | Dismiss the selected alert/item |
| Esc | Back out of inline landing confirmation, or close the Inbox modal |