baisama-cloud/dsh-composer-history
Command history for the DeepSeek Harness (DSH) web GUI composer — press ↑ / ↓ to cycle through your previously sent instructions, then restore the draft you were editing when you reach the end of the history.
项目介绍Project Overview
dsh-composer-history 是 DSH Web 界面输入框的命令历史插件。它用 ↑/↓ 方向键逐条浏览已发送的用户指令,越过最新记录时恢复此前编辑的草稿;多行、输入法组合、选中文本或按住修饰键时不会误触发。适合在会话中快速复用、修改过往指令。仅统计已完成的用户消息,系统注入的提醒会被跳过。
dsh-composer-history is a DSH web GUI plugin that adds command history to the composer. Press ↑/↓ to cycle through previously sent user instructions; moving past the newest entry restores the draft being edited. It ignores system-injected reminders and avoids triggering during IME composition, text selection, multi-line navigation, or modifier-key use. Use it to recall and resend past prompts. It only counts finished user messages.
请帮我了解并安装插件:【dsh-composer-history】【https://github.com/baisama-cloud/dsh-composer-history】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:baisama-cloud/dsh-composer-history
把 baisama-cloud/dsh-composer-history 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-composer-history
Command history for the DeepSeek Harness (DSH) web GUI composer — press ↑ / ↓ to cycle through your previously sent instructions, then restore the draft you were editing when you reach the end of the history.
DSH Web 界面输入框的命令历史插件:↑ / ↓ 上下方向键逐一浏览此前发送的指令,回到历史末尾时恢复你编辑前的草稿。
Features / 功能
- ↑ switches to an older sent instruction, ↓ to a newer one — the current draft is preserved underneath.
- When you reach the newest entry and press ↓ again, the draft you were editing is restored.
- Only finished user messages count; system-injected reminders are skipped.
- Multi-line drafts are safe: ↑ is taken over only on the first line, ↓ only on the last line.
- Never triggers during IME composition, with text selected, or with Ctrl / Cmd / Alt / Shift held.
Install / 安装
dsh plugin --profile web add github:<owner>/dsh-composer-history
or in DSH settings → Plugins market, add the repository. 或在 DSH 设置 → 插件市场中添加本仓库安装。
Usage / 使用
- Click into the composer textarea in any session.
- Press ↑ to step back through previously sent commands; press ↓ to move forward, and once past the newest entry your original draft returns.
- Edit a recalled command and send it as usual.
Development / 开发
This is a standard DSH bundle:
lib/index.js— host half (intentionally empty; all behavior is client-side)lib/client.js— browser half, a Cordis plugin registered viawindow.__ModuleLoader__.load; it hooks theconversation.input.leftslot to reach the composer textarea, draft state (props.input.draft), the write action (props.inputActions.setDraft), and the session messages (props.session.nodes)cordis.patch.yml— loader row inserting the plugin
Build the npm tarball with:
npm pack
Requires react and @deepseek-ai/cordis as peer dependencies (provided by the DSH installation).
License / 许可证
MIT
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS