DeepSeek Harness Plugin

converk/dsh-tweaks#prompt-history

Stars ★ 0 Downloads (30d) 108 Category UI Enhancements Added 2026-09-11 npm dsh-tweaks-prompt-history

Recalls prompts sent earlier in the current session with the up and down keys in an empty composer, and shows a position badge while browsing.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-tweaks-prompt-history

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:converk/dsh-tweaks#path:/plugins/prompt-history

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

在 DSH 的会话输入框里按 ↑ / ↓,翻出这个会话之前发过的提示词。

它能做什么

想改一改上次说过的话,不用翻聊天记录重打一遍——在输入框里按一下 ↑,上一次发过的提示词就回来了;接着按还能往更早翻。

怎么用

  1. 点进输入框,确保里面是空的。
  2. :自动填上你上一次发过的提示词;再按 继续往更早翻。
  3. 往回翻;翻过最新一条时,输入框恢复成你按 ↑ 之前的内容。
  4. 翻到想要的 → 直接编辑,或者回车发送。

翻的过程中,输入框右上角会显示 ↑↓ 历史 3/12,告诉你现在翻到第几条:

输入框里按 ↑/↓ 召回本会话的历史提示词

说明

  • 只在输入框为空时才接管 ↑:不会跟 / 命令菜单、@ 引用菜单抢方向键,也不会打断正常编辑(输入法打字中、按着 Ctrl/Alt 时都不管)。
  • 历史只属于当前会话:包含你在运行中插话发过的内容;刷新页面后依然在。
  • 直接开始打字就会退出历史浏览,已经填进输入框的内容会保留("回忆出来直接改")。
  • 最多记 200 条。
  • 角标文案跟随界面语言:中文「历史 n/N」,英文「History n/N」。

安装

npx @deepseek-ai/dsh plugin --profile web add "D:\你的目录\dsh-tweaks\plugins\prompt-history"

重启 DSH,并在浏览器中强制刷新(Ctrl + Shift + R)。

web 为 DSH 的 profile 名称,可在 C:\Users\你的用户名\.dsh\profiles\ 下确认。

开发者

本仓库的开发约定、DSH 契约与通用坑见 AGENTS.md

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.