Dsh Session Recap
Description
Session recap plugin for DeepSeek Harness (Claude Code-style away summaries)
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
简体中文 | [English](README.en.md)
@dsh-external/dsh-session-recap
**DeepSeek Harness(DSH)会话回顾插件**。你把 Web 窗口切到后台,或者转到另一个会话,它就在后台生成一份简短回顾。等你回来,一张卡片会概括那个会话的当前任务、已完成进展和下一步。
当前版本:**0.0.4**
为什么需要它
人离开屏幕的理由很多,可能是一场会,也可能是一顿饭。回来时会话还停在原处,思路却断了。往上翻很久的消息记录,才接得上刚才做到哪里。离开一段时间后回来,先读一段短回顾,再决定从哪里继续——这个插件把这段行为带进 DSH Web。回顾由一次独立的辅助 LLM 请求生成,写好的正文不会追加进会话消息历史。
能力
- 仅在 Web 窗口失焦或切走当前会话时后台生成;窗口保持聚焦时,单纯空闲不会调用模型。
- 默认要求最后一个完成 turn 已过去 3 分钟,且会话至少有 3 个完成 turn,同一 turn 不会连续生成两次。这两道门槛挡住了短暂分心带来的无意义回顾。
/recap随时按需生成,并在同一张回顾卡片中显示;关闭自动回顾不影响手动命令。- 回顾正文跟随会话里用户消息的语言,英文提示词不会强制英文输出。
- 自动回顾以带“回顾 / Recap”标题和关闭按钮的卡片显示在 Web 对话输入框上方,最长 400 字符。
- 横幅按会话与回顾对应的完成轮次隔离;关闭后切换会话再切回,横幅不会重新出现。
- 发送新消息、切换会话或关闭横幅后,当前回顾会隐藏;后台标签页在重新可见时显示。
- 中英文界面标签;默认复用当前会话最近实际使用的 provider/model,也可覆盖模型、思考等级、temperature、输出预算、停止词和超时等参数。
- 回顾状态写入插件 sidecar,不向 DSH append-only session log 添加插件自定义事件。
工作方式
- Web client 把窗口 focus/blur、页面可见性和会话切换映射为当前会话的
active/away状态。 - Host 只在会话处于
away、最后一个完成turn/end已超过idleMs、完成轮数达到minTurns时启动自动回顾。三个条件同时满足才发起请求,短暂分心不会触发。 - 插件构造有界输入时先剔除工具结果消息(原始命令输出不算意图),再以最近一条用户请求锚定当前任务(不再复述早已完成的开场请求),通过一次独立辅助 LLM 请求生成不超过 40 词、一到两句的纯文本回顾,内容是当前任务、已完成进展和下一步。
- 如果会话在请求期间开始新 turn、完成了更新的 turn,或被销毁,旧请求的结果不会提交。你回来后看到的结果始终和当前进度对得上。
- 自动回顾和手动
/recap都把当前结果保存在本地 sidecar,由仅限 loopback 的同源 Web route 提供给卡片;不会向会话消息历史追加摘要正文。
安装
# GitHub 安装(推荐)
dsh plugin --profile web add github:DDDFXYqiming/dsh-session-recap
从本地源码安装的方式如下。
git clone https://github.com/DDDFXYqiming/dsh-session-recap.git
cd dsh-session-recap
npm install && npm run build
dsh plugin --profile web add <本目录绝对路径>
GitHub 安装会触发 `prepare` 脚本重新构建 `lib/`。pnpm ≥10 首次 `add` 会拒绝运行该构建脚本:把 pnpm 打印的包键复制进 profile 的 `pnpm-workspace.yaml` 后重新 `add` 即可,例如:
allowBuilds:
'@dsh-external/dsh-session-recap': true
请把这项授权视为「允许该包代码在安装时于你的机器上执行」;担心后续推送改变构建内容时,锁定 commit(`github:DDDFXYqiming/dsh-session-recap#`)。
插件自带 `cordis.patch.yml`,安装后会自动加入 `dsh-session-recap` bundle 条目。首次安装后重启 Web profile,再刷新页面。
配置
b
Related Skills
Algorithmic Art
Create generative art using p5.js with seeded randomness, flow fields, and particle systems
Design Brand Guidelines
Apply Anthropic's official brand colors and typography to artifacts
Design Canvas Design
Create beautiful visual art in PNG and PDF documents using design philosophy
Design Frontend Design
Create distinctive, production-grade frontend interfaces with high design quality
Design Slack Gif Creator
Create animated GIFs optimized for Slack's size constraints
Design Theme Factory
Style artifacts with professional themes including 10 pre-set color/font combinations
Design Related Agents
Codemod Runner
Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css
Designguru
Expert Design Guidance & Analysis Specialist who provides professional UI/UX insights, design system guidance,
Html Css
| Web standards for semantic markup, maintainable styling, and accessibility. | - | [wshobson/agents](https://