Skip to main content
V

dsh-antigravity-native

vaspike/dsh-antigravity-native

Uses existing Antigravity CLI logins for native DSH model selection, persistent ACP conversations, and streaming chat.

Install

dsh plugin --profile web add github:vaspike/dsh-antigravity-native

README

Antigravity native ACP

English | 中文

A DSH bundle that exposes existing Antigravity CLI logins through the native model selector, Workspace, Session list, and Chat. It is an append-only ACP client, not a DSH-history replay adapter or a subagent bridge.

Published as dsh-antigravity-native on npm.

Antigravity ACP conversation running in native DSH Chat

Install from npm

Requires DSH 0.2.2-rc.5, Node.js >=22.19, and an installed, already authenticated Antigravity CLI (agy).

# DSH Web
dsh plugin --profile web add dsh-antigravity-native

# DSH Desktop
dsh plugin --profile desktop add dsh-antigravity-native

You can also install dsh-antigravity-native through DSH's plugin manager. Enable the bundle, then create a new DSH Session and choose an Antigravity ACP model.

Use

  1. Sign in with the official agy outside DSH if it is not already signed in.
  2. Install and enable this bundle.
  3. Start a new DSH Session in any Workspace and select an Antigravity ACP model and thinking level.
  4. Send messages through the ordinary DSH composer and read responses in native Chat.

The first prompt creates an agy Session in the DSH Session's current working directory. Later prompts continue the same agy Session. Restarting DSH or the agy process restores it through the persisted binding.

Model and Session boundaries

  • Model and thinking choices come from agy configOptions; the plugin does not hardcode a model catalog.
  • Antigravity Sessions can switch among agy-advertised models but cannot switch to a DSH-native model.
  • DSH-native Sessions cannot switch to Antigravity.
  • An illegal cross-family selection is replaced by the latest legal selection and produces a native notice. agent/pre-step rejects any remaining cross-family request.
  • The bound working directory cannot change. Use a new DSH Session for another directory.
  • Existing DSH Sessions with prior messages cannot adopt Antigravity.

History and tools

DSH stores the messages needed for native Chat. Antigravity independently owns the model context and tool history. Only new user messages are forwarded; prior DSH history, system prompts, and DSH tool declarations are not sent to agy. ACP text and reasoning blocks become ordinary DSH stream chunks, and Markdown file:// links, images, autolinks, and reference definitions emitted by agy (outside fenced code blocks and inline code) are rewritten in-stream to local filesystem paths with #L... line ranges so DSH opens them in preview. ACP tool notifications are not re-executed or duplicated as DSH tool calls. Permission requests use DSH's approval service and allow only one matching action.

Duplicate retries, history edits, forks, regeneration, and DSH compaction are rejected instead of replaying an uncertain task. Title generation uses an independent agy Utility Session. When generateTitle is off, the plugin declines Antigravity title requests before starting that session and DSH retains its fallback title; the title service may record the declined automatic request in Host logs. ACP initialization reports the real dsh-antigravity-native package name and version, not Zed or another editor identity.

Preferences

Open Settings → Antigravity to edit every configuration field. Changes are staged locally and written together only when you select Save changes. Saving updates the live configuration without restarting the plugin, refreshes model discovery, and closes existing managed agy Sessions; later prompts restore their persisted bindings with the current settings. Only edited fields are submitted. External updates refresh untouched fields; a same-field conflict preserves your draft and shows a review notice.

Title generation is off by default. Turning it on first opens a risk dialog explaining the independent agy request, content disclosure, quota use, and provider terms; confirmation only stages the switch, and saving applies it.

The discoveryWorkspace editor is enabled while title generation is on. Turning title generation off only locks the editor: a previously saved custom directory still applies to model discovery and other Utility requests.

Configuration

FieldDefaultMeaning
generateTitlefalseAllow model-backed DSH titles through an independent agy Utility Session after risk confirmation; when off, DSH retains its fallback title
binaryPathagyExisting Antigravity CLI executable
discoveryWorkspace—Optional workspace for model discovery and utility requests; when unset, the DSH process working directory is used. Ordinary agy Sessions always use their own DSH Session workspace. The settings editor is locked while titles are off, but a saved path remains effective
sandboxtruePass --sandbox to agy acp
allowNonLocalhostfalseAllow model discovery and prompts when the Host's Web listener binds beyond a loopback address
requestTimeoutMs30000ACP setup and model configuration deadline
stopGraceMs5000EOF grace before managed process termination
contextWindow110000Conservative route metadata used by DSH
maxPromptBytes180000Maximum serialized utility prompt size

Model Experience

The plugin adds no text to DSH-native model routes. For an Antigravity-bound Session, DSH sends only newly appended human messages to the corresponding agy Session. Antigravity owns its system prompt, history, tools, token accounting, and KV cache. DSH retains the displayed assistant text and reasoning. Editing or compacting one history cannot be represented safely in this version.

Known limitations

  • Existing agy Sessions are not imported.
  • Editing, forking, regeneration, and DSH compaction are rejected for bound Sessions.
  • Rich ACP tool cards, diffs, plans, and artifacts are not rendered; native running status and assistant content remain available.
  • Image attachments (PNG, JPEG, WebP, GIF) are forwarded as ACP image blocks when both agy and DSH's attachment store support them; non-image file attachments are not forwarded natively.
  • Model-family filtering in the picker is supplemented by automatic selection restoration and execution-time rejection rather than a Core selection hook.
  • This integration has no Google or DeepSeek endorsement. Personal-subscription use remains subject to Google's terms and product-specific clarifications.

Verification

npm install --ignore-scripts
npm run check
node scripts/probe-real.mjs /Users/river/code/agy-acp-test

The real probe consumes Antigravity quota and requires an already authenticated CLI.

Related plugins