dsh-composer-input-history

DSH PLUGIN会话与消息

仓库 liumorrisclaw/dsh-composer-input-history

会话与消息 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件

为 DeepSeek Harness Web 输入框带来 Shell 风格的输入历史:按 ↑ 召回本会话已发送的消息,按 ↓ 前进并在越过最新消息后恢复原草稿。

一句话选型结论

按资料字段整理

dsh-composer-input-history 是会话与消息类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 4 项功能,没有现成安装命令,需要按仓库 README 接入。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类会话与消息 收录类型可安装插件 验证等级未标注验证等级 安全审查未标注
验证等级 UNKNOWN 未标注验证等级
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-08 创建于 2026-10-07
README 7.7 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-composer-input-history:给 DeepSeek Harness 的 Web 输入框补上方向键历史召回

  • ↑ 召回本会话已发送消息
  • ↓ 前进并恢复原草稿
  • 草稿非空时先记忆再召回
  • 与斜杠菜单和输入法兼容

上游标签

composerdeepseek-harnessdshdsh-pluginhistoryinput-historyplugin

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有现成安装命令,要按仓库 README 手动接入。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在会话与消息场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-composer-input-history当前 未做沙盒验证 未标注 0 未标注 无
dsh-desktop L3 · 安装规范通过 低风险 3.0 万 未标注 无
openpets L4 · 沙盒安装通过 低风险 1,274 未标注 有
deeptide L4 · 沙盒安装通过 低风险 1,104 0.1.1-rc.2 有
jingyun-dsh L3 · 安装规范通过 低风险 1,004 未标注 有
study-mate 未做沙盒验证 未标注 856 未标注 无

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方liumorrisclaw仓库 dsh-composer-input-history · 默认分支 main
分类会话与消息session
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-07 · 2026-10-08最后推送 2026-10-08
本站收录2026-10-09首次进入本站目录的时间

README 全文

7.7 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-composer-input-history

Shell-style input history for the DeepSeek Harness Web composer — the behaviour you know from opencode and other terminal agents.

> Press ↑ in the composer to pull back a message you already sent in this Session.
> Press ↓ to walk forward again; past the newest message your original draft comes back,
> and one more ↓ discards it and clears the composer.

What it does

Gesture Behaviour
↑ with an empty draft recalls the newest sent message
↑ again walks one message older each time
↑ on the first line of a single-line draft recalls; the draft you were writing is remembered
↑ inside a multi-line draft, below the first line left to the editor, so the caret still moves
↓ while browsing walks one message newer
↓ past the newest message restores the draft you were writing before browsing
↓ again, after the draft came back discards the draft and clears the composer
typing anything while browsing leaves browse mode; the recalled text becomes your draft

History is what you sent in this Session, oldest to newest, read from the Chat node store the view itself renders (snapshot.nodes, ordered by anchor sequence): ordinary user messages, steering messages, and the message that woke a turn. Skipped: hidden nodes (compacted or interrupted), attachment-only messages, and everything the Harness authors on your behalf — goal rounds, skill catalogs, runtime snapshots, job notices, model notices, approval answers, and compaction checkpoints. The visible window is also persisted per Session in localStorage (capped at 300 entries) and merged with the live store, so messages a compaction pruned stay recallable, including after a restart.

Why it is a keyboard observer

The Harness composer deliberately leaves ↑/↓ to its shell-owned Lexical editor, so no slot or command seam owns them. This plugin therefore:

  • registers an invisible Session-scoped occupant in conversation.composer.dock;
  • reads the Session's Chat nodes through the standard useChat hook (snapshot.nodes) and the draft through the standard useInput hook;
  • writes the recalled text through the standard inputActions.setDraft API, so the edit stays part of the composer's own draft history;
  • watches the key on two paths: a document-level keydown listener and the shortcuts service's observeFixedInput seam. The document listener runs after the composer's own keymap, so a slash menu or an IME that already handled the key still wins; the fixed-input seam covers compositions where a native Desktop adapter owns the DOM feed. Exactly one path acts, because the first one to act cancels the event.

Replacing a draft commits paragraph by paragraph, so intermediate empty or partial drafts are expected; the plugin treats a published draft that matches what it wrote (ignoring whitespace) as its own and keeps browse mode. Only a genuinely visible slash/reference menu (a mounted role="listbox"), an IME composition, or a held modifier keeps the key — a caret move the editor already marked as handled does not. Editing keys (Backspace, Delete, Enter, printable characters, Ctrl+V/Ctrl+X) end browse mode; navigation keys and shortcuts such as Ctrl+C do not. The browse state machine itself is cached per composer editor element, so re-rendering or remounting the dock entry never drops the browse state or the remembered draft, and starting browse again from an already-recalled message never overwrites the draft you were writing — walking past the newest message always lands on that draft, a blank composer included. When the host re-seeds a stale stored draft over a restore, the plugin re-asserts the restored text (the counter-punch yields only to genuine text editing, not to arrow keys), and every handled key re-arms that defense for the text it just published.

A key is declined when an open menu owns it, when an IME is composing, when a modifier is held, when the event is outside the composer editor, or when the composer is submitting/adjudicating. The plugin imports no Harness Client package and styles nothing.

Install

From npm (short form):

dsh plugin --profile web add dsh-composer-input-history

Or straight from this repository:

dsh plugin --profile web add https://github.com/liumorrisclaw/dsh-composer-input-history

You can also add it in the Web UI's Plugins page, or list the package directory with the plugin manager. The bundle ships off until the profile selects it.

For a local checkout, install by path:

dsh plugin --profile web add /absolute/path/to/dsh-composer-input-history

Relationship to other plugins

The npm name dsh-input-history is already taken by a different community plugin that also recalls prompts with ↑/↓. The two differ in mechanism and behaviour:

dsh-composer-input-history (this plugin) dsh-input-history
History source the Session transcript the Chat view already loads a separate local store of submitted prompts
Non-empty draft recalls and remembers the draft, restoring it below the newest message recalls only from an empty composer
Attachments not part of the recalled text persists and re-attaches them
Menu/IME yields the key to an open slash/reference menu and to IME composition —

Pick this one if you want recall driven by the conversation you can see, including from a draft you are already typing.

Compatibility

Developed and verified against @deepseek-ai/dsh 0.2.0-rc.2. The plugin uses only documented seams: ctx.slots, the Session standard props (useChat, useInput, inputActions), ctx.shortcuts.observeFixedInput, and the activation context's uiSession binding source (declared in dsh.client.inject). It declares dsh.client.inject on dsh-client-ui-conversation, dsh-client-ui-chat, and dsh-client-shortcuts so activation order is deterministic.

Verified

  • 48 tests (npm test): 40 unit tests over the pure history reader, the browse navigator, and keystroke arbitration, plus 6 simulated-composer integration tests that mount the real bundle against a stub React host and stub DOM — whole-draft publish, the stale-draft refill and its counter-punch, compaction pruning merged with the persistent record, manual edits, menu yields, and IME declines.
  • The composed profile contains the bundle row (dsh --profile --dump-config).
  • The browser boot graph announces the bundle with its inject list and immediately: true, and the web host serves the bundle body byte-for-byte.
  • End-to-end in a real harness Web instance driven over the DevTools protocol: the dock entry mounts in a session composer, ↑ recalls the sent message, walking down lands on the draft and a further ↓ clears it, a typed draft survives rapid up/down walks, and the console stays clean.
  • Recalling a message with ↑ was confirmed by hand in a running Desktop composer.

Limitations

  • History is per Session. Cross-session recall (recent Sessions' inputs) is not implemented yet.
  • History reflects the loaded transcript window plus the persisted per-Session record; a message never seen by this plugin (sent while it was uninstalled) is not recalled.
  • The recalled text is plain text: reference chips and attachments from the original message are not restored.
  • One resident composer per Web page is assumed, matching the shell's own design.
  • On the home screen (no Session open) there is no recall: the composer dock only renders inside a session.

License

MIT

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
dsh-composer-input-history 怎么安装?

本站没有抓到该条目的安装命令,请到仓库主页确认安装方式;这类条目多数是生态应用或尚未发布安装包的项目。

dsh-composer-input-history 的验证等级是什么意思?

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-composer-input-history 安全吗?

未标注。

dsh-composer-input-history 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-composer-input-history 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-composer-input-history 有哪些功能?

↑ 召回本会话已发送消息、↓ 前进并恢复原草稿、草稿非空时先记忆再召回、与斜杠菜单和输入法兼容。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。