Jaylor-Wang/dsh-tool-antigravity

Connect Google Antigravity Code Assist OAuth accounts to DeepSeek Harness for Gemini and Claude streaming LLM routing and Nano Banana 2 image generation.

Project Overview项目介绍

dsh-tool-antigravity is a capability bundle plugin built specifically for the DeepSeek Harness (DSH) ecosystem, shipping private Google OAuth 2.0 PKCE authentication, multi-model LLM routing under the google-antigravity namespace, and session-persistent Nano Banana 2 image generation and editing tools (generate_image, list_images). It integrates as a first-class DSH bundle through the official CLI command dsh plugin --profile web add dsh-tool-antigravity, via standard npm install dsh-tool-antigravity / pnpm add dsh-tool-antigravity, and by registering two Cordis plugin entries (antigravity-auth and antigravity-image) inside cordis.patch.yml. Once mounted, the DSH Web client renders an Antigravity Auth settings card, a live Quota Visualizer covering 5-hour and weekly reset windows, and a new Network Proxy card, while slash commands like /antigravity-auth login orchestrate browser-driven Google sign-in from the DSH chat prompt.

The intended workflow begins with /antigravity-auth login, which triggers a PKCE browser handshake and stores refresh tokens in host-side secure storage, after which users invoke antigravity-gemini-3.8-flash, antigravity-gemini-3.7-flash, antigravity-gemini-3.1-pro, claude-sonnet-4-6-thinking, claude-opus-4-6-thinking, or gpt-oss-120b-medium for text, vision, and tool-calling tasks, optionally tuning the per-model thinking budget across low, medium, high, or dynamic effort levels. Image creation and iterative image-to-image editing flow through generate_image and list_images, which write attachments through DSH AttachmentStore and FileSystem with TOCTOU and symlink-escape protection, keeping chat context free of raw base64 payloads. The target audience is researchers and independent developers who want to consolidate Google Gemini, Claude, and GPT-OSS model access together with Nano Banana 2 image generation inside a single DSH Web session.

Dependencies include DSH v0.1.7-rc.1 or newer, the Cordis v4 runtime (with explicit configForms injection to satisfy service property protection), and a strict TypeScript toolchain; the project ships 28 test suites covering 272 passing assertions, and is released under the MIT license as an unofficial, community-maintained capability bundle intended strictly for personal research, educational, and independent development use. Strict loopback binding to 127.0.0.1 is enforced for any account RPC endpoint, credentials are isolated from frontend UI, logs, and command done events, and the network proxy follows an adaptive priority ladder of UI manual binding, then HTTP_PROXY / HTTPS_PROXY environment variables, then direct connection, so users must configure a proxy endpoint such as http://127.0.0.1:7890 if they operate behind a firewall, and they are responsible for complying with the relevant Google and platform Terms of Service.

dsh-tool-antigravity 是面向 DeepSeek Harness(DSH) 的能力包插件,集成 Google OAuth 2.0 PKCE 私有登录、多模型 LLM 路由(google-antigravity)以及 Nano Banana 2 图像生成编辑(generate_image、list_images)。安装方式包括 dsh plugin --profile web add dsh-tool-antigravity、npm 或 pnpm 安装,并需在 cordis.patch.yml 中登记 antigravity-auth 与 antigravity-image 两个插件条目,加载后 DSH Web 客户端侧边栏会显示配额可视化与代理设置卡片,slash 命令如 /antigravity-auth login 可直接发起浏览器授权流程。

典型工作流是用户在 DSH 会话内调用 /antigravity-auth login 完成 Google 账户绑定,再通过 antigravity-gemini-3.8-flash、claude-sonnet-4-6-thinking 或 gpt-oss-120b-medium 等模型处理文本、视觉与工具调用,并使用 generate_image 进行多轮图像编辑。目标用户为希望把 Google Gemini、Claude、GPT-OSS 模型与 Nano Banana 2 图像能力统一接入 DSH Web 工作流的研究者与独立开发者,代理绑定遵循 UI 手动 > 系统环境变量 > 直连的自适应优先级阶梯。

依赖方面要求 DSH v0.1.7-rc.1 及以上、Cordis v4 运行环境,TypeScript 严格类型,仓库自带 28 个测试套件共 272 个用例。授权令牌仅存于宿主端安全存储,严格 loopback 防护需绑定 127.0.0.1,媒体路径含 TOCTOU 与符号链接越权检测,项目以 MIT 协议发布,定位于非官方社区能力包,仅限个人研究与教育用途,使用须遵守相关平台服务条款。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-tool-antigravity

把 Jaylor-Wang/dsh-tool-antigravity 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-tool-antigravity

English | 中文

npm version license GitHub release Tests TypeScript

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.3.1 (Proxy Persistence & Reconnect Reactivity)

  • Proxy Fetch Reactivity: Linked settings proxy retrieval with connection lifecycle resetTick, guaranteeing prompt re-fetching whenever the connection initializes or recovers from disconnects.
  • Isolated Test Suite Storage: Isolated proxy RPC integration tests into sandboxed temporary directories, fully protecting local environment persistence configurations from unit test interference.
  • Retains v0.3.0 capabilities: Volatile image capability switch, dynamic settings sync, and live tool unwrap.

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) once 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.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-project-orchestrator 下一个 Next dsh-medomni →