dsh-tool-antigravity
編輯精選維護狀態: 活躍jaylor-wang/dsh-tool-antigravity
將 Google Antigravity Code Assist 的 OAuth 賬戶接入 DeepSeek Harness,用於 Gemini 和 Claude 流式模型路由及 Imagen 3 影像生成。
$ dsh plugin add dsh-tool-antigravity12
星數
5
Fork
TypeScript
語言
MIT
授權條款
2026-09-18
建立於
2026-10-22
最近推送
README
dsh-tool-antigravity
English | 中文
High-performance, streamlined Antigravity capability bundle plugin for DeepSeek Harness (DSH).
Provides private Google OAuth 2.0 PKCE authentication, multi-model LLM routing (google-antigravity), session-persistent Nano Banana 2 image generation and editing (generate_image, list_images), and an interactive Web settings panel with live quota visualization.
Highlights in v0.4.5 (Light Theme UI Contrast Hardening & Switch Alignment)
- Light Theme UI Contrast Hardening: Resolves washed-out invisible controls in DSH light mode by binding the proxy input to
.agy-inputwith--dsw-alias-bg-module-platform,--dsw-alias-border-l3, and--dsw-alias-label-primary, eliminating hardcoded white-on-white text and transparent borders. - Switch Slider Contrast Alignment: Replaces nonexistent
--dsw-alias-bg-layer-4tokens with DSH standard switch tokens (--dsw-alias-border-l4,--dsw-alias-border-l3,--dsw-alias-switch-thumb, and--dsw-alias-brand-primary), rendering crisp, high-contrast toggle tracks and knobs across both light and dark themes. - Retains v0.4.1 capabilities: Provider tool-call ID recovery, resilient network retry (exponential backoff up to 3 times), and universal thought signature enforcement.
Features
1. High-Performance Core Architecture
- TLS Connection Pooling & Session Resumption: Built-in HTTP/1.1 Keep-Alive socket pool and TLS session resumption against Google endpoints, eliminating repeated TLS handshake roundtrips and significantly reducing Time-To-First-Token (TTFT).
- Sliding-Window Buffer SSE Parser: High-throughput binary chunking directly locates newline separators on raw Buffers, bypassing heavy string concatenations and drastically reducing V8 heap allocations and GC spikes during long reasoning chains.
- Granular Thinking Budgets: Fine-grained reasoning effort configuration (
low,medium,high) across Gemini and Claude models with graceful fallbacks. - Pre-flight Idempotent Retry: Automatically retries transient network interruptions (e.g. TLS RST / 502 / 503 / 504) up to 3 times with exponential backoff prior to first byte emission.
- Windows File Lock Recovery: Active PID probing (
process.kill(pid, 0)) detects stale locks from crashed processes and immediately frees them, preventing 30-second hang timeouts. - Stale-While-Revalidate (SWR) Quota Resilience: Robust quota normalization supporting 5h and weekly windows; retains and displays last-known valid quota with smooth shimmer animations during transient network disruptions.
2. Supported Models (google-antigravity)
| Model Identifier | Display Name | Capabilities | Thinking Budget |
|---|---|---|---|
antigravity-gemini-3.8-flash |
Gemini 3.8 Flash | Text, Vision, Tools | Low / Medium / High |
antigravity-gemini-3.7-flash |
Gemini 3.7 Flash | Text, Vision, Tools | Low / Medium / High |
antigravity-gemini-3.6-flash |
Gemini 3.6 Flash | Text, Vision, Tools | Default |
antigravity-gemini-3.1-pro |
Gemini 3.1 Pro | Text, Vision, Tools | Low / High |
claude-sonnet-4-6-thinking |
Claude Sonnet 4.6 | Text, Vision, Tools | Dynamic Reasoning |
claude-opus-4-6-thinking |
Claude Opus 4.6 | Text, Vision, Tools | Dynamic Reasoning |
gpt-oss-120b-medium |
GPT-OSS 120B | Text, Tools | Fixed Effort |
3. Nano Banana 2 Image Generation & Multi-Turn Editing
generate_image: Prompt-based image creation and iterative image-to-image editing powered by Nano Banana 2 (gemini-3.1-flash-image) using session references.list_images: Inspect and retrieve generated image attachments within the current session.- Fully integrated with DSH
AttachmentStoreandFileSystemwith TOCTOU path escape protection without polluting chat context with raw base64 payloads.
Installation
Via DSH Plugin CLI (Recommended)
# Add directly to your active DSH web profile
dsh plugin --profile web add dsh-tool-antigravity
Via npm / pnpm
# Using npm
npm install dsh-tool-antigravity
# Using pnpm
pnpm add dsh-tool-antigravity
Cordis Plugin Configuration
Add the plugin entries to your cordis.patch.yml or DSH config file:
- id: antigravity-auth
name: 'dsh-tool-antigravity'
- id: antigravity-image
name: 'dsh-tool-antigravity/image'
Usage & Commands
Slash Commands
Manage authentication directly from the DSH terminal / chat prompt:
/antigravity-auth login: Initiates Google OAuth 2.0 PKCE login and launches your default browser./antigravity-auth status: Check current authentication state, masked email, and project id./antigravity-auth logout: Discard credentials and revoke tokens./antigravity-auth cancel: Abort an ongoing login attempt.
UI Settings & Dashboard
Once loaded in the DSH Web client:
- Antigravity Auth Settings Card: View live login status, account identifier, and toggle capabilities.
- Quota Visualizer: Real-time remaining quota percentages and countdowns for 5-hour and weekly reset windows.
- Image Generation Card: Configure default image models and batch size.
Security & Invariants
- Credential Isolation: Access and refresh tokens are strictly held in host-side secure stores and are never forwarded to the frontend UI, logs, or command done events.
- Strict Loopback Guard: Account RPC endpoints fail-closed (
loopback-required) unless the web service is explicitly bound to127.0.0.1. - Immutable Wire Identity: Emits verified AGY CLI headers (
antigravity/cli/1.1.24) and attribution metadata. - Media Path Containment: All file references are verified against directory traversal and symlink escapes.
Disclaimer
This project is an unofficial, community-driven capability bundle intended strictly for personal research, educational purposes, and independent development. Please adhere to relevant platform Terms of Service.
License
更多「開發者工具」外掛
dsh-our-free-model
作者 ebony-vinyl
在 dsh 裡裝上這個外掛即可,無需登入、註冊或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在內的前沿模型——完全免費,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, DeepSeek V4.1 Flash and Kimi K3 among them. Completely free, with no usage cap.
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先裝執行時注入器,再載入任務感知的推理模式路由預設(已實測 P1-P23)。
dsh-ops
作者 t-auto
A toolkit for low-level operations in DSH, designed to reduce token usage and task execution time / DSH 底層操作工具外掛,旨在減少 Token 消耗與任務耗時
brooks-lint
作者 hyhmrright
基於 12 本經典工程書籍的 AI 程式碼評審工具,提供腐化風險診斷、書籍引用、嚴重度標籤及 6 種分析模式。
