wenaixi/dsh-prompt-history
Brings Claude Code's composer habits to the DSH web GUI: arrow-key prompt recall, a double-Escape history picker and selection-to-quote.
Ports the habits of a mature terminal prompt into the web composer. On the first line of the composer, ↑ walks backward through historical prompts from the newest entry, parking the caret at the beginning of each recalled line and stopping at the oldest rather than wrapping; the README describes this as an accurate recreation of Claude Code's recall, including the multi-line-draft case where retyping a previous prompt was previously the only option. A double-Escape opens a history picker, and a second double-Escape gesture clears the draft intelligently instead of wiping it blindly. Text selection raises a toolbar for quoting the selection into the draft and auto-copying it, right-click pastes directly in the Linux style, and inline slash completion is unblocked — the README calls this "claimed" completion because it fills a gap in the shipped UI. The stated motivation is the train of thought: retyping prompts, navigating multi-line drafts and reaching for the mouse to copy all break it, and none of it should require leaving the keyboard.
Install
dsh plugin --profile web add @wenaixi/dsh-prompt-historyThe npm line from the README's Installation section; the README notes the examples use the web profile and that you should substitute your own profile name. A GitHub form (dsh plugin --profile web add github:Wenaixi/dsh-prompt-history), a local directory form (dsh plugin --profile web add ./), an offline tarball form (pnpm pack && dsh plugin --profile web add ./wenaixi-dsh-prompt-history-*.tgz) and an uninstall line are all documented. Version pinning is by suffix — @<version> or #v<version> — with npm view @wenaixi/dsh-prompt-history version given as the way to check current releases.
Compatibility
Requires the DSH runtime (npm i -g @deepseek-ai/dsh), Node.js >= 20 and pnpm >= 11, stated as badges and repeated in the install prose. It is a client-side composer plugin, and the README states the safety boundary explicitly: recalled and quoted text only populates the local composer draft and is never dispatched to the model until you press Enter. History persists across sessions, and the repository documents its own development gates (pnpm install && pnpm build && node --experimental-strip-types --test test/*.test.ts) plus a keybindings summary and configuration panel, so the behaviour is inspectable before it is trusted with a long-running session.
Details
- Repo: wenaixi/dsh-prompt-history
- Category: Web UI Enhancements
- Stars: 1
- Version: 2.6.2 (npm)
Alternatives
lhh010/dsh-input-history · ferrisching/dsh-prompt-predict · shengyvself/dsh-prompt-only-forge