Edit a past prompt in place or branch from it, quote selected text into chips, ask aside in a throwaway panel that carries the compacted conversation, and permanently delete archived sessions. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:335555/dsh-session-manager-plus
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
把「问错了只能重开」「想追问又怕污染主线」「删不掉的测试会话」这三件事,一次解决。
DeepSeek Harness(DSH)Web 界面的插件。装上之后,会话里多出四个能力:就地改历史提问、划选即引用 / 引用追问、用完即删的旁路追问面板、彻底删除会话。
装
dsh plugin --profile web add github:335555/dsh-session-manager-plus
然后重开 dsh web(客户端代码要重新加载)。
卸载:
dsh plugin --profile web remove session-manager-plus
四个能力
1. 就地编辑历史提问
悬停任意一条自己发过的消息,右侧出现 复制 / 编辑 / 引用:

点「编辑」就在原位改(不弹大窗口),改完点「发送」:

发送时问你一句,选覆盖还是分支:
| 选 | 结果 |
|---|---|
| 覆盖 | 原会话继续,旧版本按你的设置归档(可在弹窗里勾掉) |
| 分支 | 从这条提问 fork 一个新会话,原会话保持不动 |
图片、文件这些附件会一起带过去,不用重新上传。
2. 划选 → 引用 / 引用追问
选中对话里的任意文字,浮动条上出现两个按钮:

- 引用:把这段原文做成胶囊放进输入框——按光标位置插入,能和已经打了一半的字混排;
- 引用追问:直接把这段原文带进右侧追问面板(见下一条)。
可以引用多次:一段一段选、一段一段插,一条消息里挂几个引用都行,每个胶囊各自独立,中间照常打字:

发送之后,消息里仍然保持这个胶囊,而模型收到的是结构化的引用块(几个引用就是几个块):
<chat_selection agent_id="session-…" turn="42" role="回答">
被引用的原文
</chat_selection>
3. 临时追问:一个用完即删的旁路会话
点「引用追问」,右侧栏开一个临时会话:
- 它带着主对话的上下文——而且是压缩摘要 + 压缩点之后的原文,跟主对话模型看到的完全一致;
- 面板开着也不会过时:每次追问前会先看主对话有没有新增回合,有就把新增的部分一起带上(只带增量,不重发全量);
- 引用每轮都算数:不是只有第一句能引用;开着面板再划一段、再点「引用追问」,那一段同样会被定位、带上前后文;
- 引用来自被压缩掉的部分也不怕:被选中的那句话会被定位回原文,并把前后各两条消息一起带上(标出「(被引用)」),所以它知道那句是在什么语境里说的;
- 回答实时流式输出,思考过程折在「思考」块里,正文按 Markdown 渲染(标题/列表/表格/代码块);
- 每个对话一个面板:面板跟着它所属的主对话走,切到别的对话再切回来,问题、回答、思考都还在,背后的临时会话也还活着;关掉标签页才算丢弃;
- 你觉得它答得不错,可以把结论复制回主对话;关掉标签页,这段对话连同它背后的会话一起销毁,主对话里不留任何记录。
两处额度都是 10 万字:主对话转录 10 万字(超出保留最新的部分),引用上下文同样 10 万字、每条消息最多 2 万字——引用是这次提问的核心,优先级高于背景,宁可多带也不截断。一般对话根本用不到,只有特别长的会话才会触发截断。
它很轻:只挂一个 read(能读文件),其余工具定义一个都不加载,所以第一句回答通常 1 秒级,成本也低。
面板头部会标出它属于哪个对话、以及从对话的哪个时间点开始:

4. 彻底删除会话
会话菜单的「…」里多一项红色 彻底删除:

它会先把会话归档、再删掉日志目录和索引缓存——不是"从列表里藏起来"。删除过程中任何一步失败会自动回滚,不会留下半个会话。
如果会话正开在某个标签页或进程里,需要重启 dsh 才能删除;
一点实现说明
ctx.agents.create() 建出来的 agent 只拿得到全局工具(memory / 待办 / 技能 / MCP…),预设里的文件工具根本不会挂上来。所以插件的做法是:把那些用不上的全局工具全部隐藏,再给它注册一个自己的 read。
顺带的好处是:没有几十个 MCP 工具的定义,请求更小、回答更快。
插件不新建数据库,全部读写 DSH 自己的东西:
- 会话日志
$DSH_HOME/sessions/<workspace>/<session-id>/ - 引文原文
localStorage(dsh.session-manager.quotes.v1,最多 80 条) - 临时会话账本
$DSH_HOME/session-manager-scratch.json(启动时清理上次残留)
已知限制
- 在 DSH 0.2.1-rc.2 + Web profile 上开发和验证,更早/更新的版本可能要对齐内部 API。
开发
.
├── index.js # Host 半边:HTTP 路由(删除、临时会话、文件转发)
├── client.js # 浏览器半边:气泡、编辑器、面板、菜单、对话框
├── cordis.patch.yml # 把插件挂进 profile
├── icon.svg
├── locale/{zh,en}.json
└── docs/images/ # README 截图
Host 半边在 webServer 上开同源路由;浏览器半边通过 window.__ModuleLoader__ 加载,往 conversation.chat.node、conversation.composer.dock、shell.overlay、sidebar.workspaces.session.menu.item、sidebar.right.pane.tab 这些插槽里挂组件。
本地调试:把仓库链接进 profile(dsh plugin --profile web add link:D:/path/to/repo),改客户端代码后 Ctrl+R,改 Host 代码后重新挂载插件或重启 dsh web。
English
A DeepSeek Harness (Web GUI) plugin that makes a session editable and disposable:
- Edit a past prompt in place — overwrite the session or fork a branch from that turn.
- Select text → Quote / Ask aside — quotes become chips in the composer, sent messages keep them, and the model receives a structured
<chat_selection>block. - Temp-ask panel — a throwaway side conversation that carries the main conversation's compacted context (summary + post-compaction turns), streams live, renders Markdown, reads files via a single
readtool, and is destroyed when you close the tab. - Permanent delete — archives a session, then removes its log and cache, with rollback on failure.
Requires DSH 0.2.1-rc.2 (Web profile). MIT licensed.
许可
MIT
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.