Skip to main content
Glama

antigravity-dsh-bridge

给 Antigravity 发送下面这段话即可自动装好本项目的 Antigravity MCP 插件与 DeepSeek Harness Desktop 插件:

请克隆或下载 https://github.com/Asheblog/antigravity-dsh-bridge.git ,运行其中的 node ./scripts/install.mjs 为我同时安装 Antigravity MCP 插件(dsh-code-review)和 DeepSeek Harness Desktop 插件(antigravity-dsh-bridge),安装完成后运行测试验证并在最后提醒我重载 DeepSeek Harness Desktop;如我后续需要调整评审模型和思考强度,顺便告诉我怎么打开 Antigravity 里的 DSH Review Settings 设置面板。

IMPORTANT

切勿只在 DeepSeek Harness(或插件市场)内单方安装本插件。 单独安装 DSH 侧插件不会产生任何效果,因为驱动端位于 Antigravity 的 MCP Server 与全局规则中。请使用上方的一句话交给 Antigravity 自动完成双端安装。


作用与核心特性

本仓库包含配套的两端组件,用于让 Antigravity 在完成代码开发任务后,按需自动请求本地运行的 DeepSeek Harness Desktop (DSH) 执行深度 Code Review、自动修复问题、合并到默认主分支并推送远端仓库:

  1. Antigravity 原生设置界面(DSH Review Settings):

    • 安装后可在 Antigravity 左侧栏 / 辅助窗格 + 菜单直接打开 DSH Review Settings(或直接让 Antigravity 调用 dsh_settings_ui)。

    • 动态拉取你本地 DSH 里已配置的全部 Agent 预设、Provider / 模型、对应模型支持的 思考强度档位(如 xhigh / high / medium)以及 权限预设,保存后仅作用于评审会话,不覆盖 DSH UI 全局默认模型。

    • 支持在界面中一键探测状态 / 拉起 DSH Desktop,以及查看和解绑历史评审会话。

  2. 按任务严格隔离会话,同任务复审才续接:

    • 默认采用 per_task 策略(按 Antigravity 对话 ID + 仓库 + 分支 精准隔离):同一工作区的不同任务、不同对话或不同分支会自动开启全新的 DSH 会话,避免上下文过长拉低评审质量;只有同一任务内的二次复审才会复用原 DSH 会话。

    • 可在设置面板切换 per_task / per_branch / always_new。

  3. 按需触发,零日常打扰:

    • 不使用每轮都会触发的强制 Hook,仅在完成实际代码开发/修复/重构任务后按需触发;纯问答、调研、只读分析不触发。

  4. 100% 复用 DSH Desktop 真实环境:

    • 会话直接创建/运行在 DSH Desktop 对应项目工作区下(与左侧侧边栏工作区对齐,可随时点开实时旁观或中途接管),天然沿用你配好的预设(如 deep-ptc)、Plugins、Skills、MCP 与子代理。

  5. 自动发现与自动拉起 + 完整等待:

    • DSH 未启动时自动发现安装位置并拉起;等待主 Agent、子代理树与后台托管任务彻底空闲后才返回最终评审报告。

    • 零外部运行时依赖(Node 22+ 原生模块),仅监听 127.0.0.1 随机端口并使用 32 字节随机 Bearer Token 鉴权。


Related MCP server: DSH Crew

仓库结构

antigravity-dsh-bridge/
├── index.mjs                    # DSH Desktop Cordis 桥接插件(含 /catalog 与 /review/*)
├── cordis.patch.yml             # DSH Cordis bundle 挂载声明
├── package.json                 # DSH 插件清单 (dsh.bundle)
├── locale/                      # DSH 插件中英文元数据说明
├── ui-src/settings.js           # 设置面板源码(@modelcontextprotocol/ext-apps)
├── antigravity-plugin/          # Antigravity 侧完整插件包 (dsh-code-review)
│   ├── plugin.json
│   ├── mcp_config.json
│   ├── ui/settings-app.html     # 预编译单文件 CSP 安全设置页面
│   ├── rules/AGENTS.md
│   ├── skills/dsh-review/SKILL.md
│   └── scripts/
│       ├── mcp-server.mjs       # Stdio MCP Server + MCP App 资源与工具
│       ├── dsh-launcher.mjs     # DSH 安装位置自动发现与自动拉起
│       └── state-store.mjs      # 设置持久化与按任务隔离的会话映射
├── scripts/
│   ├── build-ui.mjs             # 预打包 settings-app.html(开发时使用)
│   └── install.mjs              # 一键双端安装 / 卸载脚本
└── test/                        # 单元测试与端到端测试 (node --test)

手动安装与卸载

git clone https://github.com/Asheblog/antigravity-dsh-bridge.git
cd antigravity-dsh-bridge
node ./scripts/install.mjs

如需在安装时顺便预置评审预设/模型/思考强度(也可装完直接在 Antigravity DSH Review Settings 面板下拉选择):

node ./scripts/install.mjs \
  --preset deep-ptc \
  --provider <provider> \
  --model <model> \
  --reasoning xhigh

常用参数:--dsh-home <path>、--dsh-profile <name>、--agy-plugins-dir <path>、--dsh-only、--agy-only、--uninstall。

安装完成后:

  1. 重载或重启 DeepSeek Harness Desktop(使 antigravity-dsh-bridge 在后台启动本地认证桥接);

  2. 在 Antigravity 中新开对话即可使用,或在侧边栏 / 右侧 + 菜单打开 DSH Review Settings 面板按需配置模型与思考强度。

验证测试

npm test

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables dispatching tasks from coding hosts such as Claude Code, Codex, Antigravity and Grok to DeepSeek Harness agents that appear as native subagents with live progress, tier/effort policy, escalation, and workspace guardrails. Also lends text-only harnesses vision and image generation through DeepSeek VL models or existing CLIs.
      354 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables coding hosts like Claude Code, Codex, Antigravity and Grok to dispatch work to DeepSeek Harness agents that appear as native subagents with live progress, tier/effort policy, escalation on failure, workspace guardrails and a jobs board. Also lends text-only harnesses vision and image generation via DeepSeek's VL model, the host's existing CLIs, or custom OpenAI-compatible endpoints.
      354 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables dispatching tasks from hosts like Claude Code, Codex, Antigravity, and Grok to DeepSeek Harness agents that run as native subagents with live progress, tier and effort presets, guardrails, and a jobs board. It also lends text-only models vision and image generation by routing through DeepSeek's VL model or locally available CLIs.
      354 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Dispatch tasks from Claude Code, Codex, Antigravity or Grok to real DeepSeek Harness agent sessions that surface as native subagents with live progress, tier/effort presets, escalation on failure and workspace-holding guardrails. It also lends the text-only harness vision and image generation via DeepSeek's VL model, host CLIs, or a custom OpenAI-compatible provider.
      354 npm
      MIT