dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
为 DeepSeek Harness Web UI 添加 Codex 风格的消息导航轨道,方便在长会话中快速定位历史提问。
Codex 风格的左侧消息导航轨道,用于在 DeepSeek Harness Web UI 的长会话中快速定位历史提问。
本项目 fork 自 wx-yss/dsh-message-rail。感谢原作者及所有贡献者为项目奠定的基础。
交互灵感来自 Codex 的消息导航栏。本项目与 OpenAI 无关联。
将鼠标悬停在刻度上,可以查看对应的用户消息及回答摘要;点击刻度可跳转到该消息。
轨道位于会话区左侧,并自动跟随 DeepSeek Harness 的明暗主题。
会话中少于 4 条可索引的用户消息时,导航轨道不会显示。
0.1.0-rc.6 或更高版本PATH;未安装时可运行 npm install -g pnpm)安装完成后请完整停止并重新启动 DSH Web UI。打开至少包含 4 条可索引用户消息的会话后,左侧会显示导航轨道。
# 方式一:已全局安装 DSH CLI
dsh plugin --profile web add dsh-message-nav
# 方式二:使用 npx,无需全局安装
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add dsh-message-nav
# 方式一:已全局安装 DSH CLI
dsh plugin --profile web add github:foooold/dsh-message-nav
# 方式二:使用 npx,无需全局安装
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:foooold/dsh-message-nav
git clone https://github.com/foooold/dsh-message-nav.git
cd dsh-message-nav
# 方式一:已全局安装 DSH CLI
dsh plugin --profile web add .
# 方式二:使用 npx,无需全局安装
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add .
# 已全局安装 DSH
dsh plugin --profile web update dsh-message-nav
# 使用 npx
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web update dsh-message-nav
# 已全局安装 DSH
dsh plugin --profile web remove dsh-message-nav
# 使用 npx
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web remove dsh-message-nav
更新或卸载后,也需要完整停止并重新启动 DSH Web UI。
安装并启动 DSH Web UI 后,轨道的主要交互如下:
loadOlder 分页,每页加载 50 条消息,最多加载 400 页;超出范围的消息不会进入索引。kind === 'user')和运行中插话(kind === 'steering'),不索引助手回复、工具调用、命令或注入上下文(kind === 'context')。当前仓库保留客户端实现和 DSH bundle patch,供阅读与后续开发:
├── package.json # 包元数据、DSH 客户端与 bundle 声明
├── cordis.patch.yml # DSH bundle patch
├── lib/
│ ├── index.js # Host 端入口占位
│ └── client.js # 轨道 UI、历史加载、虚拟滚动与消息跳转
├── assets/ # README 功能截图
├── LICENSE # MIT License
└── README.md
实现概要:
shell.overlay 为每个会话挂载独立轨道实例。MIT