DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Chat History — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
C

@violet/dsh-chat-history

Chat History

Adds CLI-style history to the DSH chat input: press the up and down arrow keys to recall previously sent content. Persists across restarts.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:VioletScar-Hui/dsh-chat-history#232d7244cfe25e4838036018c92f4c02c672b90b
READMECompatibilityVersions
dsh-chat-history 使用示意

Description

Adds CLI-style history to the DSH chat input: press the up and down arrow keys to recall previously sent content. Client-only plugin; history persists across restarts.

Compatibility and provenance

Chat History is published as @violet/dsh-chat-history and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/2/2026

Versions

1.1.0stable
9/2/2026
1.0.0stable
9/2/2026

Related plugins

Loading related plugins…

Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
9/2/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Contextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)

README

dsh-chat-history

给 DeepSeek Harness (DSH) 聊天输入框加上 CLI 风格的历史记忆:在输入框里按 ↑ 召回上一条发过的内容、按 ↓ 前进或还原草稿,就像在 shell 里翻历史命令一样。

纯客户端插件(无宿主副作用),装上之后重启不丢。

使用示意

dsh-chat-history 使用示意

插件本身没有可见按钮(组件只挂副作用、返回 null),所以这是一张「使用示意」图:左侧正常输入发送,右侧光标停在行首按 ↑ 逐条召回历史、按 ↓ 前进或还原草稿。

✨ 特性

  • 上下键历史召回 —— ↑ 回到更早的消息,↓ 回到更新的消息,翻到最新再按 ↓ 还原你正在编辑的草稿
  • 启动即预填 —— 打开会话时自动把当前会话里你之前发过的消息载入历史,马上就能翻
  • 新消息自动记入 —— 发送后自动追加到历史,连续重复去重、上限 200 条
  • 不打扰输入 —— 光标不在行首时不抢 ↑/↓(不影响编辑中文本);输入法合成、斜杠命令菜单里也不触发
  • 纯内存 —— 不写磁盘、每会话独立,重启宿主后从会话历史重新预填
  • 消息定位 —— 会话头部点 定位,左侧浮出面板按会话顺序列出你发过的所有消息,点任意一条直接滚到它在会话里的位置(短暂高亮)

📦 安装

dsh plugin --profile web add github:VioletScar-Hui/dsh-chat-history

装完刷新页面即可(浏览器刷新生效,无需重启宿主)。发布到插件市场后,也可直接在侧边栏「插件市场」里搜索安装。

🚀 使用

  1. 打开任意会话,点击聊天输入框。
  2. 光标在行首时按 ↑:召回你上一条发过的消息;继续按 ↑ 往前翻。
  3. 按 ↓:往后翻;翻到最新时再按 ↓,还原成你本来在编辑的草稿。
  4. 直接改文字即可退出浏览状态,正常发送。

消息定位:点击会话头部右上区域的 定位 按钮 → 左侧浮出面板列出本会话发送过的消息 → 点任意一条跳转到对应位置(Esc 或点击外部关闭)。

🔧 实现

  • 注册 conversation.input.left(list 槽,工具行内,additive),组件返回 null 只挂副作用,绝不做 DOM hack。
  • 键盘监听在 document 捕获阶段,只认 textarea[data-phase](composer 文本域唯一稳定属性)。
  • 历史来源:ConversationSnapshot.nodes 里 kind === 'user' 节点;发送检测靠 InputState.phase 的 submitting → plain 迁移。
  • 纯逻辑(trim、连续去重、上限 200、提取用户文本)抽在 src/client/history.js,附单测。
  • 消息定位注册 conversation.session.header.actions(list 槽),用 useSession 读 chat.order / chat.nodes,DOM 定位走 [data-conversation-scroll] + data-chat-anchor-key;面板为 position:fixed 悬浮层,不动会话 DOM。

更详细的架构说明见 docs/architecture.md。

❓ FAQ

为什么看不到任何按钮? 历史召回是纯键盘交互,输入框左侧不新增 UI 元素——这正是「不打扰输入」的设计:功能就在 ↑/↓ 上,没有可见入口。

历史存在哪里?会不会跨会话串? 历史只保存在浏览器内存里,每个会话独立 seed。切换会话会重新从当前会话的历史消息预填,不会串。

重启宿主的会丢吗? 不会。宿主重启后浏览器重新加载插件,会再次从当前会话已发送的消息里预填历史。唯一「丢」的是你尚未发送的草稿,那本就不属于历史。

为什么按 ↑ 没反应? 只有光标在行首(selectionStart === 0)时才触发;输入法合成中、斜杠命令菜单打开时也不会触发。先点一下输入框开头再按 ↑。

🤝 Contributing

bun install        # 仅需 bun 作为构建/测试工具,无运行时依赖
bun test           # 单测
bun scripts/build.js  # 重新生成 lib/

改动 src/ 后记得跑一次构建,lib/ 是提交的预构建产物(安装端免 bun、免构建)。

📄 License

MIT