guanghu/docs/adr/0151-antigravity-add-dir-workspace-flag.md
Guanghu Domestic Migration 9b41d51231
Some checks are pending
Auto-update PR branches / Update open PR branches (push) Waiting to run
CI / Frontend Static Quality Checks (push) Waiting to run
CI / Frontend Tests & Coverage (push) Waiting to run
CI / Rust Tests & Quality Checks (push) Waiting to run
CI / Linux build verification (push) Waiting to run
Deploy docs / Build VitePress site (push) Waiting to run
Deploy docs / Deploy to GitHub Pages (push) Blocked by required conditions
Release (Alpha) / Compute alpha version (push) Waiting to run
Release (Alpha) / Build release artifacts (push) Blocked by required conditions
Release (Alpha) / GitHub Release (alpha) (push) Blocked by required conditions
Release (Alpha) / Update docs and release pages (push) Blocked by required conditions
chore: import sanitized domestic snapshot for REPO-004
Source snapshot: 514ab1975951d94342ea38e64101d5a0f1c51c77
2026-07-17 15:55:28 +08:00

1.5 KiB

type, id, title, status, date, supersedes
type id title status date supersedes
ADR 0151 Antigravity add-dir workspace flag active 2026-07-02 0147

Context

ADR-0147 introduced the Antigravity CLI adapter with agy -p <prompt> --cwd <vault>. Newer Antigravity CLI builds reject that workspace flag with flags provided but not defined: -cwd and list --add-dir as the supported workspace-directory argument.

Tolaria still needs app-managed Antigravity runs to start in the active vault, expose that vault as the only intended workspace, and preserve the Safe / Power User permission mapping from ADR-0103.

Decision

Tolaria launches app-managed Antigravity sessions with:

agy -p <prompt> --add-dir <vault>

The subprocess current_dir remains the active vault path, and Tolaria still writes the transient MCP config to <vault>/.agents/mcp_config.json before launch.

Safe mode continues to pass --sandbox=true --toolPermission=proceed-in-sandbox. Power User continues to pass --sandbox=false --toolPermission=always-proceed. Tolaria still avoids --dangerously-skip-permissions.

Consequences

  • Antigravity CLI versions that reject --cwd can start from the Tolaria AI panel.
  • The active vault remains both the process working directory and the explicit Antigravity workspace directory.
  • Adapter tests must reject regressions that reintroduce --cwd or drop --add-dir.
  • Future Antigravity CLI workspace flag changes should supersede this ADR with a new adapter decision and test update.