dsh-recent-prompts: Retrieve Your Exact Words to AI in DSH

Introduction

After collaborating with agents in DeepSeek Harness (DSH) for a long time, the truly reusable assets are often the constraints, specifications, or prompts you have written yourself. These contents are scattered across numerous sessions, and opening them one by one to check records is costly. The community plugin dsh-recent-prompts (Maintainer: hujiyo, Category: Memory) addresses this specific pain point: it allows read-only browsing, searching, and copying of the original text you sent to the AI across sessions directly in your browser. It supports view-level hiding by turn or session without altering Harness session logs.

The following introduces the plugin’s positioning, capabilities, installation methods, and usage notes. Please refer to the GitHub repository README for factual information; the directory page is available at SkillHub.

What is this

dsh-recent-prompts is a Web-side plugin for DSH: after installation, a speech bubble icon labeled “Recent Prompts” appears at the bottom of the sidebar. Clicking it opens a full page titled “What I recently said to the AI.” It is implemented as a pure client-side script (client.js); the Host-side index.js is empty. It only calls DSH’s existing read-only Session APIs. The plugin itself does not connect to the internet or write to session logs. Licensed under MIT, current package version is 1.0.0.

Core Features

Capability Description
Recent Window Loads the latest 6 sessions by default, with the latest 6 turns per session. Grouped by session and displayed in chronological order within groups, showing the full text of your original words (not summaries).
Load Earlier Each session group can paginate further back, fetching approximately 6 turns at a time until the first turn of the session is reached.
Search All History Search as you type, covering every turn of all sessions. Hits are grouped by session, displaying turn numbers and opening snippets.
Load Full Text After a search hit, click “Load Full Text,” then click the next turn’s starting point to precisely fetch the complete original text of that turn.
Copy Copies the entire segment to the clipboard with a “Copied” confirmation feedback.
Hide Message / Hide Session Hides specific turns or entire groups from the list and default search. The “Hidden” page allows restoring items individually or all at once.
Include Hidden A toggle on the right side of the search box, disabled by default. When enabled, hidden items appear in search results marked as “Hidden.”
Theme & Language Follows the host’s light/dark theme tokens; Chinese/English text follows the host language.

Content filtering rules: Only recognizes user/message where data.source.kind === 'user', excluding agent-injected context, goal continuation turns, tool results, etc. Hidden states are stored only in the browser’s localStorage (key: dsh.recent-prompts.hidden.v1).

Environment Requirements: DSH 0.2.x, relying on read-only APIs session.list, session.projections, and session.page.

Installation and Activation

Do not simply fill in hujiyo/dsh-recent-prompts in the DSH installation box (it will fail npm package name validation). Choose one of the following methods.

Install via DSH UI

In the sidebar, go to Plugins → Add Plugin. Select “Custom Address” for the installation source, paste the corresponding string from the left column of the table below, and refresh the page after installation.

Method What to fill in
Release Archive (Recommended for users) https://github.com/hujiyo/dsh-recent-prompts/releases/download/v1.0.0/dsh-recent-prompts-1.0.0.tgz
GitHub Repository (Latest from main) github:hujiyo/dsh-recent-prompts or https://github.com/hujiyo/dsh-recent-prompts
Local Directory (For developers) Absolute path to the repository
npm Package Name dsh-recent-prompts

Command Line Installation (web profile)

First, execute the official add command:

dsh plugin --profile web add https://github.com/hujiyo/dsh-recent-prompts/releases/download/v1.0.0/dsh-recent-prompts-1.0.0.tgz

Then, append "dsh-recent-prompts" to the end of the dsh.profile.bundles array in $DSH_HOME/profiles/web/package.json and refresh the page. If installed via the Plugins UI or the agent’s plugin_manager install_bundle, the bundles will be written automatically; pure command-line installation requires this manual step.

Uninstallation

  1. Delete "dsh-recent-prompts" from dsh.profile.bundles.
  2. Run dsh plugin --profile web remove dsh-recent-prompts, or uninstall via the Plugins UI.

Typical Usage

  1. After installation and refresh, click the speech bubble icon at the bottom of the sidebar to view the full text of what you said, organized by session in the recent list.
  2. When earlier content is needed, use “Load Earlier” in the corresponding session group.
  3. If you only remember keywords, use the top search bar; click “Load Full Text” on the hit line and then copy.
  4. Useless turns or entire sessions can be hidden; restore them in the “Hidden” page, or enable “Include Hidden” to restore them directly within search results.

Developers can install the repository into the profile via a local link, modify client.js, and refresh to debug; no build step is required.

Use Cases and Notes

Suitable for: DSH users who frequently reuse self-written prompts, need to retrieve their original text across multiple sessions, and prefer local read-only retrieval without modifying logs.

Known Limitations (from the README):

  • Search matches against a projection outline of approximately 50 characters at the beginning of each turn; keywords in the middle of long messages may not be found.
  • Old sessions not covered by the projection cache may not be searchable temporarily; opening the session once will populate the cache.
  • Default windows and search limits are constants at the top of client.js (e.g., latest 6 sessions × 6 turns, max 60 hit session groups for search); session.list() may be slightly slow on the first load if there are many sessions.
  • Hiding only affects this plugin’s view and does not change the DSH sidebar session list; switching browsers or clearing site data will result in the loss of hidden records.

Security and Trust: The plugin runs within the current DSH process and browser environment. Please review the source code and the MIT License yourself before installation. The community directory SkillHub has no official affiliation with DeepSeek or Huanjiao (High-Flyer) and is part of the community ecosystem distribution.

Adjustable parameters (modify constants at the top of client.js) examples:

const RECENT_SESSIONS = 6;
const WINDOW_TURNS = 6;
const WINDOW_MESSAGES = 400;
const SEARCH_GROUPS = 60;
const CACHE_MS = 60 * 1000;

Conclusion

dsh-recent-prompts consolidates “viewing recent original text, searching all history, copying, and hiding” into a single read-only Web plugin, making it suitable for centralized management of user prompts scattered across DSH sessions. For further information, visit the SkillHub Directory Page and GitHub: hujiyo/dsh-recent-prompts.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye