The design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” In model inference scenarios, directly connecting to a remote API key often requires managing additional credentials and does not directly leverage locally logged-in CLI sessions. The dsh-agy-safe plugin solves this pain point by bridging a locally logged-in Antigravity CLI (agy) headless session into DeepSeek Harness, making it a first-class model provider.

Plugin Overview

dsh-agy-safe is a DeepSeek Harness plugin maintained by Jonah-Wu23. It does not involve third-party relaying or shared accounts; instead, it directly reuses the official Antigravity CLI session you are logged in to on your local machine. Both the main conversation and sub-agents can use this provider, maintaining a unified streaming generation and tool dispatch experience.

Core Features

  • Headless session bridging: Connects agy’s streaming interaction through subprocess pipes, with Harness uniformly driving the agent loop.
  • Sub-agent support: Both the main conversation and sub-agents can select agy models, sharing the same session bridge and tool dispatch pipeline.
  • Tool call adaptation: Injects tool contracts into the model, parses structured markers, and returns execution results.
  • History fingerprint management: Maintains a chain of session hashes, detects context forks, and replays full history when needed.
  • Accurate TPS measurement: Session-level usage deltas exclude hidden thinking; streaming speed is calculated based on actual visible output.
  • Native terminal invocation: The settings UI provides credential guidance and invokes the native terminal to complete login interaction.

Installation and Activation

The runtime requires Node.js 20 or higher. In the DeepSeek Harness environment, run the following command to install:

dsh plugin --profile web add dsh-agy-safe

After installation, restart the service:

dsh web

Configuration and Usage

  1. Open the web control panel and go to the “Antigravity CLI” section under “Settings.”
  2. Click the “Open login terminal” button. The system will launch a desktop terminal to run the login command.
  3. After completing login, click “Verify login credentials” to confirm the session status.
  4. Select a model under the agy group in the model list to start interacting.

Notes

  • The plugin only reuses the official Antigravity CLI session logged in on your local machine with your own account; all credentials and usage belong to your account.
  • Compatible with the dsh v0.1.2-rc.1 web UI.

This plugin bridges local processes, enabling developers to directly use local Antigravity CLI resources in the DeepSeek Harness environment. All credentials and usage belong to the user’s own account. For more details and source code, visit the project directory page.