DeepSeek Harness plugin

dsh-capture-window

旁路捕获窗 + /recall 引擎:把想法投进一个安静的独立新会话,压缩当前会话最近 10 句作为背景(不进主线上下文、不切主线视图)

Jump to install

Source facts

Repository
Yidien/dsh-capture-window
Latest update
Aug 20, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Yidien/dsh-capture-window
Plugin: dsh-capture-window
Author: Yidien

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-capture-window(旁路捕获窗 + /recall 引擎)

把一条「发散想法」投进一个安静的独立新会话,不触碰主线上下文、不切主线视图。

  • 捕获窗:Ctrl+Shift+K 或右下角「⚡ 捕获」浮标呼出,可拖拽,深色模式适配。
  • 三种上下文模式:白纸 / 选择 / 近 10 条对话(默认近 10 条)。
  • 近 10 条:自动压缩当前会话最近 10 句,注入新会话作为「非回复背景」。
  • 对话视图:新会话内直接继续聊(Enter 排队 / Ctrl+Enter 插队 / Shift+Enter 换行),内嵌模型选择。
  • 便利贴:临时暂存想法(内存态,关闭窗口即清空)。
  • 会话落地:新会话继承当前目录/工作区,不会跑到「未分组」。

结构

dsh-capture/
├── src/host/index.ts     host 引擎:/recall 命令(近10条压缩 → 新建会话 → inject+followup)
├── src/client/index.ts   捕获窗 + 对话视图(官方 connection.api 数据层)
├── tsconfig.json         host 编译(tsc → lib/index.js)
├── tsdown.config.mjs     client 打包(→ dist/client.cjs)
└── install.ps1           构建/安装/接线/重启提示

架构

  • host 半边:包的默认导出(main: lib/index.js),由 cordis 插件 loader 加载。注册 /recall 命令,负责压缩、建会话、注入上下文(这些需要 host 侧的 llm.streamagent.inject)。
  • client 半边dsh.client 声明 + exports["./client"]dist/client.cjs),走官方 ctx.connection.apisessions.history/prompt/models/selectModelllm.*events.host/mux)与 connection.rpc(选择模式由 host 侧过滤消息,避免下发 chunk 碎片),无私有 harness RPC。
  • 纯外挂:不改官方源码,只用官方公开的 Service / 事件 / Slot / API。

安装

方式一:一键安装(推荐)

dsh plugin --profile web add dsh-capture-window

dshnpx @deepseek-ai/dsh。)装完重启 npx @deepseek-ai/dsh web,按 Ctrl+Shift+K 呼出捕获窗。

> 原理:本包声明了 dsh.bundle.patchdsh plugin add 会自动把它注册进 dsh.profile.bundles,无需手动改 cordis.patch.yml

方式二:源码安装

cd dsh-capture
.\install.ps1

脚本会:装依赖 → tsc 构建 host → tsdown 构建 client → pnpm add 装进 ~/.dsh/profiles/web → 在 cordis.patch.yml 追加插件行 → 提示重启。

信任边界

  • 召回上下文只做「忠实压缩」,不接受改写;注入内容标记 plugin/recall 来源(非回复 prelude)。
  • 会话本体由 DSH 持久化:关闭窗口 / 刷新 / 重启不会删除或归档已创建的会话;只有「便利贴」和本次运行期间的「最近列表」是内存态。