DeepSeek Harness Plugin

Free-corner/dsh-chat-tools

Stars ★ 3 Category UI Enhancements Added 2026-08-22

Chat column width and alignment control, numbered question history with keyboard navigation and auto-load of older questions, and markdown outline rails for both the conversation and the file preview.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Free-corner/dsh-chat-tools

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.

DSH(DeepSeek Harness)Web 客户端插件:对话列宽度/位置调节、带序号与快捷键的提问历史、以及对话区与文件预览区的 Markdown 大纲目录。

功能

界面调节(右上角)

  • 宽度:滑块按百分比调节对话内容列宽度(0% = 默认宽度,100% = 占满内容区且避开左侧大纲区)。
  • 位置:内容居中或靠左显示(靠左时自动避开左侧大纲区,不会相互覆盖)。

提问历史(右上角「提问历史」下拉菜单)

  • 每个提问带序号,按对话顺序排列(最新在底部)。
  • 打开菜单自动定位到最新提问。
  • 顶部 ↑ 上一个 / ↓ 下一个 按钮,或快捷键 Ctrl+↑ / Ctrl+↓ 在提问间跳转。
  • 点击任意条目跳转到对话中的对应位置。
  • 左边缘拖拽调宽度、底边缘拖拽调高度(设置持久化)。
  • 历史缓存:提问记录按会话持久化保存,服务重启后仍在;早期内容未加载时显示为「未加载」,点击会自动分页加载更早内容并跳转到对应位置(上限保护,不会拖垮浏览器)。

大纲目录(内容区左边缘)

  • 对当前回答的 Markdown 标题(#~######)以小横条展示结构:横条长度随标题层级递减。
  • 鼠标移入横条区域弹出完整大纲,点击条目跳转到对应标题。
  • 在 better-sidebar 等文件预览(Markdown 渲染)中,大纲横条显示在预览区右边缘,功能相同。

安装

从市场(待收录)

安装插件市场后,在 Settings → Plugin Market 中搜索 dsh-chat-tools,一键安装。

手动安装

dsh plugin --profile web add dsh-chat-tools

或(本地开发):

cd ~/.dsh/profiles/web
pnpm add "file:/path/to/dsh-chat-tools"

然后在 cordis.patch.yml 中加入:

- insert:
    - id: dsh-chat-tools
      name: 'dsh-chat-tools'

重启 dsh web 生效。

使用提示

  • 宽度/位置/菜单尺寸等设置自动保存到浏览器本地。
  • 提问历史跨会话按会话 ID 分别保存。
  • 大纲横条仅在内容包含标题时显示,无标题内容不打扰。

许可证

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.