guanghu/docs/adr/0151-antigravity-add-dir-workspace-flag.md
冰朔 8739805f99
Some checks failed
Auto-update PR branches / Update open PR branches (push) Has been cancelled
CI / Frontend Static Quality Checks (push) Has been cancelled
CI / Frontend Tests & Coverage (push) Has been cancelled
CI / Rust Tests & Quality Checks (push) Has been cancelled
CI / Linux build verification (push) Has been cancelled
Release (Alpha) / Compute alpha version (push) Has been cancelled
Release (Alpha) / Build release artifacts (push) Has been cancelled
Release (Alpha) / GitHub Release (alpha) (push) Has been cancelled
Release (Alpha) / Update docs and release pages (push) Has been cancelled
Deploy docs / Build VitePress site (push) Has been cancelled
Deploy docs / Deploy to GitHub Pages (push) Has been cancelled
光湖开源源码快照 · Tolaria AGPL 分叉基线 · 独立更新链
2026-07-05 17:45:16 +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.