Introduction¶
DeepSeek Harness (DSH) extends its capabilities through plugins. When working with Antigravity, most solutions either bypass the official entry point or rely on the legacy headless interface, lacking native alignment with the official CLI. This plugin aims to let DSH use the official, unmodified agy acp client directly to invoke Antigravity in interactive sessions, while preserving the traditional headless path when needed.
Plugin Overview¶
ckanner/dsh-subagent-antigravity is a DSH workflow plugin that connects to Antigravity 1.5.14 by default through the official ACP (Agent Client Protocol) entry point. It does not provide a custom LLM provider; instead, it acts as an external agent client, allowing users to initiate sessions via the official page or CLI commands while managing session lifecycle and worktrees within DSH. Maintainer: ckanner.
Core Features¶
- Official
agy acpusage: Accepts only the official 1.5.14 executable, identified via a provenance manifest. Arbitrary binaries or wrappers are not supported. - Interactive ACP sessions: Runs in ACP mode by default. Each new session creates an independent Git worktree using the current HEAD commit as the starting point, without copying uncommitted changes.
- Session persistence and recovery: Connections persist across multiple turns. Session recovery is supported (requires verification of the same worktree, owner, native session, and runtime identity). Native cancellation and disconnection are supported; after disconnection, the worktree and branch are preserved.
- Authentication and permissions: Login is performed through the official
acp --logincommand. Only the return code/callback is written to stdin; nothing is written to command history or ACP logs. Permission and tool selection are determined by the official agent. - Legacy headless support: Enable the traditional stream-json headless interface and the
subagent_antigravitytool by explicitly settingtransport: "headless". Requiresagy1.5.7+ (Orchestrator/explicit sub-agents and Swarm require 1.5.12+).
Installation and Activation¶
Environment requirements:
- Node.js 22.18+ (macOS or Linux, x64 or arm64)
- DSH >=0.2.2-rc.3 <0.4.0-0
- Official Antigravity CLI 1.5.14 (installed by the user; the plugin does not replace the CLI)
- A Git repository with at least one commit (new ACP sessions are created from the current HEAD)
Build and install a local candidate:
npm ci --ignore-scripts
npm run check
npm run test:package
This command outputs the exact .tgz file and its checksum. Copy this file to an absolute path, then install it in DSH:
dsh plugin --profile <profile> add /absolute/path/ckanner-dsh-subagent-antigravity-0.3.0.tgz
After installation, DSH creates an antigravity plugin entry that defaults to ACP mode.
ACP Interactive Usage¶
Open a DSH conversation in the target Git repository, navigate to the Antigravity page, use “Check CLI” to verify the runtime and account routing controls, then select “New isolated session.” The page displays the source directory, the new worktree, branch, and starting commit.
If authentication is required, click “Sign in with Google.” The plugin launches the verified executable to run acp --login, displays the official Google login URL, and accepts the returned authorization code or callback URL in the password field. This code is written only to that helper’s stdin and does not enter the command line, session history, or ACP logs. After successful authentication, you can explicitly connect to or recover a session. A successful helper exit does not equate to completing a model request; you still need to continue on the Antigravity page.
After selecting the Gemini model and configuration options, send a message. The page displays native text, thinking processes, tools, permissions, plans, and sub-activities; permission selection is provided by the official agent. When image support is available, you can upload PNG/JPEG/WebP/GIF files; the client sends bounded image bytes rather than file path text. The connection persists across turns; switching views detaches the display; click “Stop work” for native cancellation; “Disconnect session” requests a native shutdown and stops the process group while preserving the worktree and branch for review and integration (Disconnect does not equate to logging out).
Use the /antigravity command to access guidance and partial version 2 control actions (such as doctor, connect, list, status, cancel). All responses and configurations are handled within the authenticated view.
Legacy Headless Usage¶
To use the traditional stream-json headless interface and the subagent_antigravity tool, explicitly set the following in your DSH configuration:
transport: headless
command: agy
The agent proxy must also explicitly register subagent_antigravity in the selected preset. The plugin provides a second layer of whitelisting via the presets field. ./machine imports and the antigravity-machine wrapper are independent headless interfaces that do not use the new transport field.
Use Cases and Notes¶
This plugin is suitable for developers who need to directly use the official Antigravity CLI and ACP interaction, particularly for projects that require session persistence, worktree isolation, or official permission and tool control.
Notes:
- The plugin runs with the current DSH process permissions. Review the source code and license before installation.
- The official CLI 1.5.14 executable must exactly match all four digests in the provenance manifest, or it will be rejected.
- ACP mode does not support automatic personal account usage permissions; users must log in and authorize manually.
- 0.3.0 is an unreleased candidate version. The current published version on npm is v0.2.1. This article covers only the ACP and headless capabilities of 0.3.0.
Value and Links¶
This plugin provides an officially aligned interaction entry point between DSH and Antigravity, preserves the traditional headless capabilities, and facilitates stable invocation of Antigravity within DSH workflows. For more information, see:
- Plugin directory: https://www.skillhub.cn/plugins/ckanner/dsh-subagent-antigravity
- GitHub: https://github.com/ckanner/dsh-subagent-antigravity