Introduction

DeepSeek Harness (DSH) supports extending model reasoning capabilities through plugins. dsh-tool-antigravity is a plugin for Antigravity model routing and image generation. It addresses pain points in the DSH environment related to Google OAuth 2.0 authentication, long-text streaming performance, and image generation/editing, providing an integrated solution.

What Is This

dsh-tool-antigravity is a high-performance, lightweight Antigravity capability pack plugin designed to provide the following for DeepSeek Harness:
* Private Google OAuth 2.0 PKCE authentication and multi-model LLM routing support.
* Image generation and iterative editing capabilities based on Nano Banana 2.
* Optimized network transport and memory management mechanisms.

The plugin is maintained by Jaylor-Wang, follows the MIT license, and is a community-driven personal research capability pack.

Core Features

The plugin provides the following core capabilities:

  1. High-Performance Networking and Connection Management

    • TLS Connection Pooling and Session Resumption: Built-in HTTP/1.1 Keep-Alive and TLS session resumption reduce handshake overhead and lower time to first byte (TTFT).
    • Sliding-Window Buffered SSE Parser: Directly locates delimiters on binary chunks, reducing string concatenation and V8 heap memory allocation, and alleviating GC pressure during long-running inference.
    • Fine-Grained Thinking Budget: Supports configuring Low/Medium/High reasoning intensity on Gemini and Claude models, or using Dynamic/Fixed Effort.
  2. Image Generation and Editing

    • Nano Banana 2 Engine: Provides the generate_image (image generation and editing) and list_images (in-session image retrieval) tools.
    • Multi-Agent Image Offloading: Supports strict transport payload budgets (total transfer limit 12 MB, per-image limit 4 MP/1 MB), and can transparently negotiate client offloading via IMAGE_OFFLOAD_REQUIRED_CODE.
  3. Authentication and Visual Management

    • Google OAuth 2.0 PKCE: Supports standardized PKCE flows for authentication.
    • Web Interaction Panel: Provides quota visualization, real-time login status, and image generation parameter configuration interfaces.

Installation and Activation

It is recommended to install using the DSH plugin CLI.

# 添加插件到当前 Web 配置文件
dsh plugin --profile web add dsh-tool-antigravity

After installation, the plugin entry must be registered in the DSH configuration file to correctly load the antigravity-auth and antigravity-image services.

Typical Usage

The plugin provides both terminal commands and a Web interface.

1. Authentication Management
Enter the following commands in the DSH terminal or chat prompt:

/antigravity-auth login      # 启动 Google OAuth 2.0 PKCE 登录
/antigravity-auth status     # 查看当前认证状态、掩码邮箱和项目 ID
/antigravity-auth logout     # 丢弃凭证并撤销令牌
/antigravity-auth cancel     # 取消正在进行的登录尝试

2. Image Generation
In scenarios that support tool calling, invoke the generate_image and list_images interfaces.

3. Web Client Configuration
In the DSH Web client, you can view the login status through the “Antigravity Auth Settings” card, monitor quotas through the “Quota Visualizer” (supports 5-hour and weekly reset windows), and set the default image model and batch size in the “Image Generation Card”.

Use Cases and Notes

Use Cases:
* Developers who need to use Antigravity-series models (such as the Gemini 3.x series and Claude 4.6 Thinking) for complex reasoning.
* Researchers who need to integrate image generation capabilities (Nano Banana 2) into the DSH ecosystem for multimodal interaction.

Notes:
1. Unofficial Nature: This is a community-driven plugin intended solely for personal research and educational purposes. Please make sure to comply with the terms of service of the relevant platforms when using it.
2. Permissions and Security:
* The plugin runs under host process privileges. Credentials are stored in secure storage on the host and are never forwarded to the frontend UI, logs, or command events.
* Strict Loopback Protection: RPC endpoints deny access by default unless the Web service explicitly binds to 127.0.0.1.
* Path Protection: File references are subject to directory traversal checks to prevent media path escape.
3. Compliance: Before installing, it is recommended to review the source code and license to ensure compliance with local security and compliance requirements.

Conclusion

dsh-tool-antigravity enhances DeepSeek Harness with Antigravity model routing and Nano Banana 2 image generation. Through optimized connection pooling, fine-grained reasoning budget control, and secure authentication mechanisms, it reduces integration complexity and improves performance.

  • GitHub Repository: https://github.com/Jaylor-Wang/dsh-tool-antigravity
  • Community Directory: https://www.skillhub.cn/plugins/Jaylor-Wang/dsh-tool-antigravity