Zzzzkd/dsh-prompt-rail 预览 preview

Zzzzkd/dsh-prompt-rail

Prompt Rail 是 DeepSeek Harness Web 会话页的紧凑纵向提示词快速跳转条。每一条横杠对应一条当前已加载的普通用户提示词。悬停或键盘聚焦会展示预览;点击会滚动跳转到对应提示词。

Project Overview项目介绍

DSH Prompt Rail is a native plugin built exclusively for DeepSeek Harness, that adds a compact vertical quick-jump rail to the DSH web conversation view. Each mark on the rail corresponds to one loaded ordinary user prompt. When you hover your cursor over a mark or focus it with your keyboard, it displays a preview of the prompt, and clicking the mark scrolls the conversation view directly to that prompt. The rail stays vertically centered next to the session sidebar, and automatically excludes non-user prompt rows like assistant responses, tool calls, commands, and injected context. Even a one-prompt conversation will render a single mark correctly.

This plugin is designed for anyone who works with long DSH conversation sessions and needs to jump between user prompts quickly. In default state, each mark has a 10px high click hit area, and its visible default form is an 8px by 3px light line. When you hover or focus a mark, it becomes 28px wide and dark, while nearby marks taper in width to 20px, 14px, and 10px, creating a clear visual hierarchy. After you click a mark, the selection is recorded; when the pointer leaves the rail, all marks reset to default length except the selected one, which stays dark.

To install the plugin, clone or copy this repository into the plugins directory at the root of your local DeepSeek Harness checkout. Then, for Windows, run the provided batch file .\plugins\dsh-prompt-rail\install-and-restart.bat; for macOS or Linux, run node ./plugins/dsh-prompt-rail/compat/install.mjs then restart DSH with pnpm dsh web. You must keep the plugins/dsh-prompt-rail directory after installation for the plugin to continue working. Pre-built files are committed to the lib/ directory so no build step is required for regular use, and the project is released under the open source MIT license with no additional restrictions.

dsh-prompt-rail 是专为 DeepSeek Harness 开发的原生插件,作用是在 Web 端会话视图侧边添加一个紧凑的垂直快速跳转轨道。轨道垂直居中停靠在会话侧边栏旁,每个标记对应一条已加载的普通用户提示,鼠标悬停或键盘聚焦标记时会显示对应提示的预览内容,点击标记即可直接滚动到该提示所在位置。它会自动排除助手回复、工具调用、命令和注入上下文这类非用户提示行,就算只有一条用户提示的会话也会正常渲染对应标记。

对于需要在长对话会话中快速定位特定用户提示的开发者和普通用户来说,这个插件能大幅提升长会话的导航效率。默认状态下,每个标记带有10像素高的点击热区,可见部分是8像素高3像素宽的浅色线条;悬停或聚焦时,当前标记会变为28像素宽的深色线条,附近标记宽度依次递减为20、14、10像素,视觉层级清晰易读。点击选中标记后会记录选中状态,鼠标离开后所有标记恢复默认长度,仅选中标记保持深色高亮。

安装该插件需要将仓库克隆或复制到 DeepSeek Harness 根目录下的 plugins 文件夹中,之后根据不同操作系统运行对应脚本完成安装并重启 Harness 服务。安装完成后需要保留插件目录才能正常使用,开发阶段则需要将 dsh-prompt-rail 和 DeepSeek Harness 检出到同一工作区目录,再执行依赖安装和代码检查。该插件采用 MIT 许可证开源,不存在使用成本或额外版权限制。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Zzzzkd/dsh-prompt-rail

把 Zzzzkd/dsh-prompt-rail 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH Prompt Rail

English | 中文

Prompt Rail is a compact vertical quick-jump rail for the DeepSeek Harness Web conversation view. One mark represents one loaded ordinary user prompt. Hover or keyboard focus shows its preview; clicking scrolls to that prompt.

Prompt Rail

Behavior

  • The rail stays vertically centered beside the session sidebar.
  • Every mark has a 10px high hit slot, while its default visible mark is an 8px by 3px light line.
  • Hover/focus makes the current mark 28px wide and dark; nearby marks taper to 20px, 14px, and 10px.
  • Clicking records the selected prompt. When the pointer leaves, all marks return to their default length while the selected mark stays dark.
  • Assistant, tool, command, steering, and injected-context rows are excluded. A one-prompt conversation still renders one mark.

Install

Clone or copy this repository into the Harness root plugins directory:

deepseek-harness/
└─ plugins/
   └─ dsh-prompt-rail/

Then open a terminal in the deepseek-harness root and run:

Windows

.\plugins\dsh-prompt-rail\install-and-restart.bat

macOS / Linux

node ./plugins/dsh-prompt-rail/compat/install.mjs
pnpm dsh web

Keep the plugins/dsh-prompt-rail directory after installation.

Development

The development layout expects sibling checkouts:

workspace/
├─ dsh/                       # DeepSeek Harness checkout
└─ dsh-prompt-rail/

Then run:

pnpm install
pnpm run check

lib/ is committed because profile installation loads the prebuilt Host and browser files without running package build scripts.

Release checklist

  1. Add an exact compatibility patch for every supported pre-slot Harness revision.
  2. Run pnpm run check and exercise node compat/install.mjs --apply-only in a clean matching checkout.
  3. Commit source, lib/, compat/, README files, screenshot, and lockfile.
  4. Push a v0.1.0 tag and create a GitHub Release from that tag.
  5. State the compatible Harness versions and revision hashes in the release notes.

License

MIT

← 上一个 Prev dsh-image2-draw 下一个 Next dsh-chat-imagine →