fix(agents): run Antigravity unattended in worktrees

Merged
KI
19h ago
+140-26

Summary

Antigravity (agy) could not finish a task unattended in a Paradev workspace. Two things stopped it:

  1. Trust dialog in every new workspace. agy does not carry a trusted main checkout's trust over to its worktrees, and the host only pre-trusted session folders.
  2. Silent stall on every shell command. The default launch was agy --mode accept-edits, which asks before each command. agy has no hook for approval prompts, so the workspace kept showing "working" while the agent waited.

Changes

  • Default launch is now agy --dangerously-skip-permissions, the same posture as Claude, Codex and Grok. A saved config still on the earlier default args moves to the new ones on the next agentConfigs.list; a config with any other edit is left alone.
  • When agy already trusts a project's main checkout, the host adds the worktree to agy's trustedWorkspaces before launch. An untrusted main checkout still gets the dialog.
  • Mobile icon for Antigravity.
  • terminal-scripts.mdx names Antigravity among the agents that default to bypass flags.

Verification

Dev desktop over CDP, agy 1.5.14, same scripted run on main and on this branch: fresh worktree of a trusted repo, prompt "create hello.txt, run sleep 5 && ls, reply done".

25 s105 s
maintrust dialogapproval prompt, status "working", no file in the worktree
branchdone, Stop receiveddone

Also on the branch: resume by conversation id, the saved config migrating on boot, and an untrusted main checkout still showing the trust dialog with agy's settings unchanged.

Not verified: the icon in the mobile app.

Chat support through agy acp is a separate PR.

Before and after, with screenshots: https://app.superset.sh/page/antigravity-in-a-paradev-workspace-before-and-afte-kn8oam