zyf2492313716-cloud

Dsh Session Hub — Development skill for Claude Code

Development community

Cross-agent session hub for DeepSeek Harness (DSH) - seamless import & search across OpenCode, Claude Code, Antigravity, and DSH.

How to install Dsh Session Hub

This entry records only its repository, not the path inside it, so there is no exact command to give. Open zyf2492313716-cloud/dsh-session-hub and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Dsh Session Hub does

Cross-agent session hub for DeepSeek Harness (DSH) - seamless import & search across OpenCode, Claude Code, Antigravity, and DSH.

Alternatives in Development

  • Oh My Agent — Portable multi-agent harness for .agents-based skills, workflows, and standards-aware agent teams across Antig 786 ★
  • Harness Remote — Native-session control plane for Codex, Claude Code, OpenCode, OMP and PI 356 ★
  • Dsh Plugin Cc — Bridge Deepseek-harness into Claude Code for review, critique, delegation, and session import 80 ★

README

dsh-session-hub

**跨工具会话互通插件** for [DeepSeek Harness (DSH)](https://github.com/deepseek-ai):把你在 **opencode**、**Claude Code**、**Antigravity** 等其他 AI agent 工具里的历史会话,直接显示在 DSH 侧边栏,**点击即导入为 DSH 原生会话**——完整消息、原生渲染、可继续对话。

设计遵循 Cordis 编程范式(可回退效应 + 反应式余效应):插件作为 cordis 组件经声明式配置挂载,`apply(ctx)` 注册的所有资源(HTTP 路由、工作区)随纤程生命周期自动回收。

功能特性

特性 说明
🔍 只读浏览 跨源列出/搜索外部会话,绝不写入源工具的数据
📥 一键导入 点击外部会话行 → 自动导入为 DSH 原生会话并打开(含工具调用显示)
🔁 幂等缓存 重复点击同一会话直接打开已导入版本,不重复创建(缓存于 state.json)
🗂 自动归组 导入会话按原工作目录归入对应 DSH 工作区分组(官方 attachSession API)
🧹 智能过滤 自动过滤空会话;外部会话以原生行样式混排,无内外分界

支持的数据源

源 存储位置 解析方式 保真度
opencode ~/.local/share/opencode/opencode.db (SQLite) SQL 结构化读取 ★★★ 完整(消息+工具调用+标题)
Claude Code ~/.claude/projects/*/*.jsonl JSONL 解析(兼容新旧格式) ★★★ 完整(含 aiTitle 官方标题)
Antigravity ~/.gemini/antigravity/conversations/*.db SQLite + protobuf 字节级有损提取 ★★ 文本流(无角色/工具结构,已清理格式噪音)
DSH ~/.dsh/sessions/**/*.jsonl.zstd zstd 多帧解压 ★★★(仅用于跨源搜索展示)

系统要求

  • macOS / Linux
  • DSH >=0.2.0(已在 0.2.1-rc.5 验证);Profile:web
  • Node.js >=22.15(需要 node:sqlite、node:zlib 的 zstd API)
  • 侧边栏混排(可选):DSH 源码仓库($DSH_HOME/source/current)+ pnpm + git

权限与边界

权限 用途 范围
文件 读 + 受控写入 浏览/搜索只读 opencode.db、~/.claude/projects、Antigravity 会话库和 ~/.dsh/sessions;用户主动使用「导出」时才会写入目标工具目录(Claude Code ~/.claude/projects/*.jsonl / ~/.claude/history.jsonl,Antigravity ~/.gemini/antigravity/brain//),并更新插件自己的 state.json
网络 仅同源 浏览器端只访问 DSH 自身的 /session-hub/api/*,不连接外网
命令 无 不执行子进程或 Shell
凭据 无 不读取 API Key、Cookie、Keychain 或凭据文件

浏览和搜索不会修改源工具数据;导出功能会写入上述目标目录,首次导出前请自行备份。插件不修改 DSH 核心或官方包。

安装

方式 A:`dsh plugin` 命令(适合 CLI 部署的 web profile)

git clone https://github.com/zyf2492313716-cloud/dsh-session-hub.git
cd dsh-session-hub
dsh plugin --profile web add ./plugin    # 换成你的 profile 名

`plugin/package.json` 已声明 `dsh.b