鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

bites-the-dsh

为 DSH 原生会话加入完全只读、可脚本控制的历史回放,支持模拟用户输入、正放与倒放、逐事件移动、变速、空闲间隔压缩,以及按事件、轮次或记录时间直接跳转。

会话消息
访问 GitHub
文档README

Bites the DSH

English | 简体中文

Powered by Harmony

Read-only, scriptable session playback for the DeepSeek Harness WebUI.

https://github.com/user-attachments/assets/3c9dfdcf-a454-4750-9edf-76771ed5a9a6

The demo shows Bites the DSH together with dsh-turn-fold.

The plugin turns the native conversation into a replay view without opening a separate panel. A single native session-header control enters replay. While replay is active, the conversation is fully read-only: the native composer and session-changing interactions are blocked, while UI and scripts may move time without mutating the source session.

Current implementation

  • Native session-header entry and compact playback controls.
  • Pause, forward play, reverse play, event stepping, speed selection, adjustable idle-gap compression, and direct event/turn/time seeking.
  • Optional simulated typing previews the next direct user message in the native read-only composer without touching its live draft.
  • A per-session observable controller exposed as ctx.sessionPlayback for time-only scripting.
  • Historical projection through DSH's native ChatView; the source session and live head continue independently.
  • Historical timelines expose playbackClock: { kind: 'historical', time: cursorTime } so projection consumers never treat an open historical turn as live wall-clock work.
  • Native composer, model, stop, branch, and assistant write actions are disabled during replay; viewing controls remain interactive.
  • English and Chinese labels using DSH theme tokens, without a separate panel.

The current compatibility target is DSH 0.1.0-rc.8. Harmony selector drift fails the automated test instead of silently changing the wrong component.

Install

▼
sh
复制代码
dsh plugin --profile web add @ch4acko3/bites-the-dsh dsh harmony status --profile web

All four Bites the DSH patches should report bound. Reload the WebUI, open a session, then use Replay session in the native session header.

Script control

Other DSH plugins can use the same per-session clock through the provided Cordis service:

▼
ts
复制代码
const playback = ctx.sessionPlayback playback.enter(sessionId) playback.seekTime(sessionId, Date.parse('2026-08-20T12:00:00Z')) playback.play(sessionId, 1) playback.pause(sessionId) playback.exit(sessionId)

Time values such as the argument to seekTime use Unix epoch milliseconds, matching JavaScript Date values and recorded event timestamps.

The service also supports event and turn seeking, reverse playback, rate and idle-gap settings, subscriptions, and position reads. It deliberately exposes no operation that mutates the source session.

Development

Requires Node.js ^22.22.3 || >=24.11.1 and pnpm 11.

▼
sh
复制代码
pnpm install pnpm check

CI/CD

Every push to main and every pull request runs pnpm check and verifies the npm package contents. Pushing a v<package.json version> tag runs the same checks, creates the matching GitHub Release, and publishes the public package to npm through Trusted Publishing (OIDC), with automatic provenance and no npm token stored in GitHub.

License

MIT

会话消息

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:CH4ACKO3/bites-the-dsh

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-btw
提供 /btw 一次性上下文旁问,不执行工具;回答显示在可复制、折叠或关闭的独立气泡中,不写入主对话。
billion-context
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
dsh-conversation-archive
在 Windows 上管理 DSH 已归档会话,支持搜索、批量取消归档与删除、AI 辅助文件保留,以及经过校验的本地或网络目录备份。
dsh-auto-continue
回答因达到单次输出 token 上限被截断时自动发送"继续"续写,无需手动操作;面向自部署 Ollama 等小输出上限场景。
dsh-branchmark#dsh-branchmark
Vibe Coding 时,如果突然想到另一个问题,或者看到一段以后还会用到的回答,可以先保存下来、在 Side Chat 里快速问清楚,或另开一个相关会话继续研究,不打断当前任务的开发思路和注意力。