在 DeepSeek Harness 里读取 Google Antigravity 的 SQLite 会话并导入为原生侧栏会话,提供 list/read/import 工具与斜杠命令。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-antigravity-bridge
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:qvsix/dsh-antigravity-bridge
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
A Cordis plugin that opens Google Antigravity conversations inside DeepSeek Harness.
Antigravity stores each conversation as SQLite + protobuf blobs under
~/.gemini/antigravity/conversations/<cascade_id>.db; this plugin reads them
and exposes them as native DSH tools and slash commands.
Tools
| Tool | Description |
|---|---|
antigravity_list |
Recent conversations (id, timestamp, steps, title). Supports limit/offset |
antigravity_read |
Read one conversation as cleaned text (user prompts, tool results, summaries, background task output). Supports max_chars |
antigravity_import |
Convert one conversation into a DSH session (session.jsonl.zstd), attach it to a workspace, and return a conversation:// link |
Slash commands (/ autocomplete)
Run directly, no need to ask the agent:
| Command | Description |
|---|---|
/antigravity-list [N] |
Recent conversations (find IDs) |
/antigravity-read <cascade_id> |
Read one conversation |
/antigravity-import <cascade_id | latest> |
Import as a DSH session. Bare command shows the 5 most recent plus usage |
Requirements
- Python 3 (stdlib only, no dependencies) — override via
ANTIGRAVITY_PYTHON zstdCLI (for import compression, ships with the DSH host)- Antigravity conversations default to
~/.gemini/antigravity/conversations(override viaANTIGRAVITY_CONVERSATIONSor theconversations_dirargument) DSH_HOME(falls back to the macOS default~/Library/Application Support/dsh-desktop/harness)
Install
dsh plugin --profile web add dsh-antigravity-bridge
Local path install (no build step — src/index.js + decoder/*.py run as-is):
dsh plugin --profile web add /path/to/dsh-antigravity-bridge
How it works
decoder/antigravity_decode.pycopies the.dbto tmp first (avoids SQLite journal issues) and heuristically decodessteps.step_payloadprotobuf blobs (type 14=user,132/15=tool,23=summary,101=background task).antigravity_importbuilds a spec-compliant DSH session log atsessions/<projectKey(cwd)>/session-<cascade_id>/session.jsonl.zstd(atomic tmp+rename write) and attaches it through the sanctioned path:workspaceRegistry.resolveByPath+attachSessionwhile running (same write-chain as native flows, sidebar updates without restart), atomicworkspace.jsonedit as fallback for profiles without a registry. (projectKey/encodeSegmentmirror@deepseek-ai/dsh-session-persistence-jsonl)session_projcacheis intentionally untouched. The backend materializes projections from the session log on first open (verified in practice).- Re-importing is idempotent — returns the existing link instead of overwriting.
Sidebar-plugin conflicts
Effectively none. attachSession is the same funnel native flows use, so
dsh-better-sidebar / dsh-archived-chats / dsh-rewind-plugin see imported
sessions like any ordinary session. Imports run once per explicit invocation —
no background writes, no projcache edits, no global state changes.
Check
npm run check # node --check + python py_compile
python3 decoder/antigravity_decode.py list --limit 5
License
链接
同类插件
ranxianglei/billion-context★ 4316
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
Minglink/dsh-infinite-gen-4★ 3977
DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投影在输入框上方显示实时破甲状态徽标。
liangmianya/dsh-synapse★ 676
DeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
MichengAI/dsh-archive-manager★ 304
在设置里增加已归档会话页,可按工作区搜索、恢复和删除已归档会话。
Nwflower/dsh-chat-import★ 287
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
SiriLee/dsh-rewind★ 242
对话回退:一键回到任意更早的用户消息,同窗口内完成,不新建分支、不残留副本;目标消息自动填回输入框,可一并还原工作区文件——即完整的 Claude Code /rewind 语义。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。