DeepSeek Harness 插件

dsh-input-history-wellorbetter

Arrow-key input history for the DeepSeek Harness web composer with a floating history dropdown.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
wellorbetter/dsh-input-history
最近更新
2026年8月14日
分类
界面增强
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/wellorbetter/dsh-input-history
插件名:dsh-input-history-wellorbetter
作者:wellorbetter

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<h1 align="center">Input History</h1>

<p align="center">

<a href="README.md">English</a>&nbsp;|&nbsp;<a href="README.zh.md">中文</a>

</p>

<p align="center"> <a href="https://github.com/wellorbetter/dsh-input-history/blob/main/LICENSE"><img alt="License MIT" src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square"></a> <a href="https://github.com/deepseek-ai/deepseek-harness"><img alt="For DeepSeek Harness" src="https://img.shields.io/badge/For-DeepSeek%20Harness-8257D0.svg?style=flat-square"></a> <a href="https://github.com/topics/dsh-plugin"><img alt="dsh-plugin" src="https://img.shields.io/badge/topic-dsh--plugin-0969da.svg?style=flat-square"></a> </p>

<p align="center"> <strong>Arrow-key input history for the DeepSeek Harness Web GUI.</strong><br> <em>Press <kbd>↑</kbd> / <kbd>↓</kbd> in the chat composer to walk back and forth through what you already sent — with a floating history dropdown.</em> </p>

<p align="center"> <img src="docs/screenshot.png" alt="Input history panel" width="520"> </p>

<p align="center"><em>Demo screenshot with sample data — message content is blurred.</em></p>

What this plugin provides

Installing this bundle adds one client (browser) plugin to every session of the target dsh profile. It registers a floating history dropdown above the composer (conversation.input.overlay) and a clock history button in the composer's tool row (conversation.input.right):

  • ↑ recalls the previous message when the caret is at the very start of the input (an empty input qualifies); ↓ steps forward, and past the newest entry restores the draft you were typing.
  • Enter accepts, Esc / click-outside cancels (restores the pre-recall draft), and clicking a row jumps straight to that message.
  • Date grouping (today / yesterday / earlier) plus per-row timestamps keep long histories scannable.
  • Long messages render as a 3-line clamped preview with the full text on hover (title), and recall puts the complete multi-line text back into the composer.
  • Consecutive duplicate messages are collapsed, and the list is capped at the latest 500 entries.

The plugin is pure client UI — no host-side behavior, no persistence, no network. The history is read live from the session's conversation snapshot, so it is always scoped to the session you are looking at.

How it behaves

composer caret ──↑ at start ──▶ open history (most recent)
        ▲                       │
        │                       ├── ↑  older
        │                       ├── ↓  newer  ── past newest ──▶ restore saved draft, close
        │                       ├── Enter  accept (keep draft)
        │                       ├── Esc    cancel (restore saved draft)
        │                       └── click  jump to that message
        └── ↓ at end ──────────▶ open history (oldest), then ↓ steps newer

Recall never fights the slash (/) or mention (@) menus: when the trigger menu is open, its own up/down arbitration owns the arrows. Modified chords (Ctrl/Cmd/Alt) and IME composition pass through untouched, and multi-line editing is unaffected until the caret reaches a boundary.

Install

Requires the dsh CLI (install DeepSeek Harness).

# from GitHub (recommended)
dsh plugin --profile web add github:wellorbetter/dsh-input-history

# or from a local checkout
dsh plugin --profile web add ./dsh-input-history

Restart the profile (dsh web / dsh --profile <name>) after installing. The plugin is a bundle: it declares dsh.bundle.patch, so dsh plugin reconciles it into the profile's dsh.profile.bundles layer list automatically, and dsh.client so the web shell loads its browser half. It ships plain JavaScript (lib/index.js + lib/client.js), so a GitHub install needs no build step or allowBuilds permission.

Use

Focus the chat composer in any session and press <kbd>↑</kbd> at the start of the input (or <kbd>↓</kbd> at the end) to open the history dropdown, then navigate with the arrows and press <kbd>Enter</kbd> to accept, or click a row to jump to it. You can also click the clock button in the composer's tool row to open the same panel.

Development

pnpm install
pnpm verify     # asserts the host half, the client bundle, and the patch manifest

License

MIT