dsh-thinking-language-zh
ayanJava111
deepseek harness思考过程中文插件
KeFan-J/dsh-chat-link
Peer-to-peer conversation linking for DeepSeek Harness (DSH): @-mention any session, wake it up, chat across conversations. Type @ in the composer, pick a session, send — the target agent is woken via agent.send. Persistent message board, native-feel inbox panel, 5 chat_link_* tools. dsh-plugin.
PROJECT TOPICS
PROJECT README
English | 中文
DeepSeek Harness (DSH) 多会话对等互聊插件 —— 让任意两个会话像 IM 一样直接对话,输入框打
@就能把消息发给另一个会话,对方会被自动唤醒并处理。
DSH 本身只有「会话内」的多代理协作(subagent 父子关系)。dsh-chat-link 补齐了缺失的一环:对等的、跨会话的实时对话。
@B 帮我查一下今天的任务 → 会话 B 被自动唤醒,把消息作为任务处理;~/.dsh/chat-link/),重启 DSH 不丢。@ 会话引用(像调用技能一样)@ → 弹出系统原生选择菜单(会话名 + 在线/未读状态,支持过滤);@会话名)—— 和 DSH 的技能引用/斜杠命令同一套机制;@会话名 内容,由 Agent 转发给目标会话。agent.send(message, 'next-turn', true) 立即唤醒处理;--dsw-* 主题变量,跟随皮肤);| 工具 | 用途 |
|---|---|
chat_link_send |
给指定会话发送联动消息(名称 / sessionId / 前缀寻址) |
chat_link_inbox |
查看并领取本会话未读联动消息 |
chat_link_history |
查看本会话的联动消息往来 |
chat_link_roster |
列出全部联动会话(名称/在线/未读) |
chat_link_register |
给本会话设置自定义联动名称 |
chat_link_register 可设置自定义名称(优先于标题)。bash -c "$(curl -fsSL https://raw.githubusercontent.com/KeFan-J/dsh-chat-link/main/install.sh)"
脚本自动完成:克隆代码 → 安装依赖 → 挂载到 DSH web profile。完成后只需重启 DSH(Ctrl+C → npx @deepseek-ai/dsh web)并强制刷新浏览器(Cmd+Shift+R)。
自定义安装目录:
bash -c "$(curl -fsSL <上面的URL>)" - /path/to/dir更新插件:重新执行一键安装命令即可(自动git pull)。
0.1.0-rc.6(npx @deepseek-ai/dsh web 启动的 Web GUI)corepack enable 或 npm i -g pnpm)# 1. 克隆本仓库
git clone https://github.com/KeFan-J/dsh-chat-link.git
cd dsh-chat-link
# 2. 安装依赖(仅 @deepseek-ai/dsh-tools)
pnpm install
# 3. 挂载到 DSH web profile(bundle 机制,自动加入插件层)
dsh plugin --profile web add link:$(pwd)
# 4. 重启 DSH
# 终端 Ctrl+C → 重新运行 npx @deepseek-ai/dsh web
# 5. 浏览器强制刷新页面(Cmd+Shift+R)
注:DSH 通过
~/.dsh/vendor/plugins/加载插件。若你使用 vendor 目录部署模式,更新代码后需同步:cp -r lib ~/.dsh/vendor/plugins/dsh-chat-link/
@(推荐)@;点击侧边栏底部「⇄ 会话联动」:
@名称;用 chat_link_roster 看看有哪些会话
给「XXX」发条消息说:……
┌─────────────────────────────── 宿主进程 (Host) ───────────────────────────────┐
│ lib/index.js │
│ ├─ 消息板: ~/.dsh/chat-link/messages.jsonl + identity.json(磁盘持久化) │
│ ├─ 5 个模型工具(全局注册,所有会话可调) │
│ ├─ 唤醒投递: agent.send(msg, 'next-turn', true) + 3s 轮询补投 │
│ ├─ 会话打开即已读(agent/session-start) │
│ └─ HTTP 路由: /api/dsh-chat-link/state · /mark-read │
└──────────────────────────────────────────────────────────────────────────────┘
▲ fetch / 事件
┌─────────────────────────────── 浏览器 (Client) ───────────────────────────────┐
│ lib/client.js(ModuleLoader bundle) │
│ ├─ '@' 输入触发器(框架标准 inputTriggers 协议,chip 引用) │
│ ├─ 侧边栏入口(DOM 注入 + MutationObserver 自愈) │
│ ├─ 收件箱面板(接管中间主内容区,--dsw-* 皮肤变量) │
│ └─ 与 dsh-ssh / 任务看板互斥(dsh-panel-activate 事件) │
└──────────────────────────────────────────────────────────────────────────────┘
~/.dsh/chat-link/(消息板 + 会话身份映射);dsh plugin --profile web remove @linxin666/dsh-chat-link)不影响历史会话。@deepseek-ai/dsh-tools@^0.1.0-rc.6(运行时);dsh.bundle.patch + dsh.client 声明),无需修改 DSH 源码;MIT © Jinkefan
Made for the DeepSeek Harness plugin community.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。