Skip to main content
Glama

antigravity-plugin-dsh

中文 | English

将 Google Antigravity 与本地 DeepSeek Harness (DSH) 环境深度打通的零外部依赖插件。同时支持 DSH 绿色便携整合版(<DSH_BASE_DIR>/runtime/dsh + runtime/dsh-home)与 标准全局安装版(~/.dsh)。

启用后,Antigravity 可以直接读写 DSH 的持久记忆与知识文档、复用 DSH 的规则与 SKILL.md 技能、直接调用 DSH 已安装的 Cordis 插件与挂载的 MCP 工具,也可以将多步任务委派给 DSH Agent 执行或续跑已有会话。


核心能力

模块

MCP 工具

说明

环境与路径探测

dsh_status

自动探测绿色版/标准版路径、Node 版本、DSH 版本、Web 服务在线状态与认证链接、已登记工作区、记忆库统计;支持通过参数持久化自定义路径

归一记忆与文档库

dsh_memory

基于 node:sqlite 毫秒级直连 dsh-omni-memory(omni.db + 归档目录):支持首轮快照 snapshot、混合检索 search(BM25 + 向量余弦)、回合召回 recall、分层记忆增删改(write / update / forget)、知识文档读写(doc_read / doc_write / doc_delete)、归档片段读取 archive_read、人格状态 persona 与技能建议 skills

规则、工作区与技能

dsh_context

直接读取 $DSH_HOME/prompt-inject.md、rules/user-rules.md、工作区列表,并扫描 $DSH_HOME/skills*、项目 .dsh/skills 与插件自带技能的完整 SKILL.md 及配套文件

插件与 MCP 工具直调

dsh_list_tools、dsh_call_tool

惰性拉起常驻 agy-host Cordis 宿主进程(自动同步 web profile 插件与 .credentials.yaml 凭据,绑定 127.0.0.1:0 临时 webServer,与正在运行的 DSH Web 零端口冲突),在 Antigravity 中直接列出并调用任意 DSH 插件工具、DSH 挂载的 MCP 工具或 /__dsh/* 内部路由

历史会话检索与读取

dsh_list_sessions、dsh_read_session

直接解压检索 .jsonl.zstd 会话日志(支持按工作区 cwd 过滤、按关键词 query 搜索标题与对话内容)并读取完整上下文

插件清单

dsh_list_plugins

查看 DSH profile 已安装插件、默认模型路由与已配置的 MCP 服务列表

Agent 委派与会话续跑

dsh_run

自动将 profiles/web 镜像为无头 profiles/agy,调用 dsh --profile agy --json 执行任务;支持单次覆盖 provider/model、传入 session_id 多轮续跑,并在 final 事件落盘后自动回收子进程


Related MCP server: Antigravity MCP Orchestrator

架构概览

Antigravity (IDE / CLI)
   │  MCP stdio (JSON-RPC 2.0)
   ▼
server/dsh-bridge.mjs  (零外部 npm 依赖,自动定位便携版/标准版 DSH 与 Node >= 24.9)
   ├── 直连数据层 (~10 ms,无需启动 LLM)
   │    ├── Omni Memory (omni.db + archive/)  ──► dsh_memory
   │    ├── Rules / Workspaces / SKILL.md     ──► dsh_context
   │    └── Sessions (session.v4.jsonl.zstd)  ──► dsh_list_sessions / dsh_read_session
   ├── 常驻插件宿主层 (按需启动一次,后续调用 ~20 ms,保持有状态工具会话)
   │    └── server/dsh-host-worker.mjs (profile: agy-host, webServer: 127.0.0.1:0)
   │         └──► dsh_list_tools / dsh_call_tool
   └── 自主 Agent 委派层
        └── dsh --profile agy --json          ──► dsh_run

防弹窗保护:镜像生成的 agy 与 agy-host profile 默认禁用 remote-web-ui 与 mcp-chrome-devtools,避免后台工具调用意外弹出浏览器窗口;确需复用 DSH 的 Chrome MCP 时,在调用参数中显式传入 enable_chrome_mcp: true 即可。


安装方式

环境要求

  • 本地已安装 DeepSeek Harness (DSH)(绿色便携版或标准全局版均可)

  • Node.js >= 22.13(推荐 Node 24 LTS;若系统 PATH 中的 Node 版本较低而 DSH 绿色版自带 runtime/node/node-v24*,插件会自动转发至便携版 Node 运行)

一键安装到 Antigravity

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

默认安装到 ~/.gemini/config/plugins/dsh(Windows 下即 %USERPROFILE%\.gemini\config\plugins\dsh)。安装后在 Antigravity 的 Customizations -> Plugins 页面即可看到 DSH (DeepSeek Harness)。

如需卸载:

node scripts/install.mjs --uninstall

路径自动发现与自定义配置

插件按以下优先级自动定位 DSH,无需硬编码任何本机路径:

  1. 持久化配置:${PLUGIN_DATA}/config.json(可通过对 Antigravity 说「把 DSH 路径设为 ...」,由 dsh_status 的 set_base_dir / set_dsh_home 自动写入)

  2. 环境变量:DSH_BASE_DIR、DSH_HOME、DSH_BIN、DSH_NODE、DSH_OMNI_MEMORY_DIR

  3. 工作区向上探测:若当前工作区位于 <base>/workspace/... 下,自动识别上层绿色版根目录 <base> 并缓存至 ${PLUGIN_DATA}/detected.json

  4. 常见便携目录与全局安装回退:探测常见便携目录(如 ~/deepseek、<Drive>:\deepseek)及全局 npm/pnpm @deepseek-ai/dsh 与 ~/.dsh


开发与验证

# 运行跨平台单元与 MCP 端到端集成测试
npm test

# 运行工作区与全量 Git 历史隐私/密钥审计
npm run audit:privacy

开源协议

MIT License

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 Claude Code, Codex, Antigravity, and Grok hosts to dispatch tasks to DeepSeek Harness agents that appear as native subagents with live progress, tier and effort selection, workspace guardrails, and a jobs board. It also bridges the text-only harness to vision by describing pasted images and generating images through DeepSeek's VL model, local CLIs, or custom providers.
      354 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables orchestrating hosts such as Claude Code, Codex, Antigravity and Grok to dispatch work to DeepSeek Harness agents that surface as native subagents with live progress, per-tier presets, effort control, guardrails and a jobs board. It also lends text-only harness models vision and image generation through a multimodal bridge that prefers native DeepSeek VL models and falls back to local CLIs or OpenAI-compatible endpoints.
      354 npm
      MIT