dsh-reading-mode
Manifest validDSh Reading Mode Plugin: English Article Annotation Reading Panel (host analysis service + client panel)
dsh-reading-mode
DSh(DeepSeek Harness)阅读模式插件:英语文章批注阅读面板。Host 端提供模型分析服务,Client 端在阅读会话中渲染右侧批注面板,支持选中句子/文段提问、一键解析文章难点(词汇、句式、熟词生义、短语、修辞、背景与主旨结构)。
功能
- 📖 在
agentPreset === 'reading'的会话中显示阅读批注入口(会话头部按钮 / 侧边栏底部按钮)。 - 📝 粘贴英文文章后,文章按段落和句子切分渲染。
- ❓ 点击句子或选择文段添加批注问题,提交后由当前会话模型统一回答(答案内联显示在原文下方)。
- 🔍 一键解析:输出文章主旨与段落结构、难点句子、生僻词汇、熟词生义、特殊句式、地道短语、写作手法、文化背景。
- 🪟 右侧浮层面板,支持编辑、删除、折叠批注;模型未返回结构化 JSON 时展示原始输出。
目录结构
dsh-reading-mode/
├── lib/ # 构建产物(host + client bundle)
│ ├── index.js # host 插件:/reading-mode/start、/reading-mode/poll
│ ├── client.js # client bundle(由 scripts/build-client.js 生成)
│ └── types/index.d.ts
├── src/
│ └── client.js # client 源码
├── scripts/
│ └── build-client.js # 重新生成 lib/client.js
├── presets/
│ └── reading/ # 阅读模式 agent preset 示例
├── package.json
└── README.md
npm 安装(GitHub 直接安装,未发布到 npm)
npm install github:lidonwonk/dsh-reading-mode
安装到 dsh
- 将本仓库克隆/复制到
$DSH_HOME/plugins/dsh-reading-mode/($DSH_HOME默认为~/.dsh)。 - 将
presets/reading/下的两个文件复制到$DSH_HOME/.agent-presets/reading/:preset.ymlagent.cordis.yml
- 确保 dsh 配置中已有可用模型,例如
~/.dsh/settings.yaml中设置了agent-default-model;插件会优先跟随会话实际模型。 - 重启 dsh web(或按 dsh 的插件热更新机制加载)。
使用
- 在 dsh 中新建/切换到
reading预设的会话。 - 点击会话头部或侧边栏底部的 📖 阅读批注。
- 粘贴英文文章并点击 载入文章。
- 点击任意句子,或选中一段文字后点击浮出的 ❓ 添加疑问,输入问题并保存。
- 点击 提交问题 (N) 获取所有批注问题的回答。
- 点击 一键解析 生成全文难点分析。
开发
修改 src/client.js 后,重新生成 client bundle:
node scripts/build-client.js
验证语法:
node --check lib/index.js
node --check lib/client.js
说明
- 插件通过 HTTP 路由与 client 通信:
POST /reading-mode/start创建任务,POST /reading-mode/poll轮询进度。 - Host 端任务为后台流式调用模型;最大同时任务数 50,请求体上限 2 MB。
- 阅读面板的 CSS/状态全部内置于 client bundle,不依赖额外前端构建链。
- 本项目在termux环境下开发,不同平台上可能存在兼容性或者UI问题。
Comments
Loading…
Similar plugins
by uckkk
阅读灯光
★ 0
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-reading-lightby MrElysium
DeepSeek Harness plugin: quiz-style reading (答题式阅读) of any Markdown document — 5-stage game loop with a sidebar panel and a reading-area tab.
★ 6
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-md-quizAdds a Reading tab to the DSH web client that shows process steps and live reasoning in source order, collapses successful turns to the final answer, and keeps the original tabs, composer, and tooling
★ 2
NOASSERTION
TypeScript
dsh plugin --profile web add dsh-clearviewby lemonhall
DSH 右侧栏 RSS 阅读器:订阅源在配置里,未读/收藏双向状态,Agent 也能读(rss_panel 工具)。
★ 0
JavaScript
Oct 6, 2026
dsh plugin --profile web add dsh-rss-dock阅读代码 · DSH 独立插件:一个独立于普通工作区选择的代码阅读模式:先理解业务,再梳理调用链、精读实现,最后通过具体场景验证理解。
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-code-readingby XIAOZHAOXSXH
dsh-moyu-reader,dsh小说阅读器
★ 0
MIT
JavaScript
Sep 28, 2026
dsh plugin --profile web add dsh-moyu-reader