Prompt library stored in the plugin config, with a Settings page and a composer picker: the ticked prompts are injected into every model step of that session, and a subagent inherits the selection of its nearest ancestor session.
Install
# from npm (prebuilt)
dsh plugin --profile web add @stmol/dsh-prompt-lib
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Stmol/dsh-prompt-lib
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
🥷 Keep your own prompts inside DeepSeek Harness, and switch them on for a chat in one click.
- Settings → Prompts: write, edit and delete your prompts.
- Chat composer: tick the ones you want for this session. The button shows how many are on.
A prompt that is ticked applies to every model step of that session, and to the subagents it starts.
Install
Published on npm as @stmol/dsh-prompt-lib.
Any bundle source works: the npm package, the repository, a tarball, or a local folder.
- GUI: Settings → Plugins → Add plugin, then
@stmol/dsh-prompt-lib. - CLI:
dsh plugin add @stmol/dsh-prompt-lib.
Restart DSH after the first install; later edits reach the running app through HMR. There are no automatic updates: remove the plugin and add it again.
dsh plugin add link:/path/to/dsh-prompt-lib
A linked checkout keeps its own node_modules, so the plugin's one dependency has to be installed there too:
cd /path/to/dsh-prompt-lib && npm install
Without it the plugin fails to load and nothing appears in Settings.
Usage
- Open Settings → Prompts. It is its own page, after Agent presets. Write a title and an instruction, then save.
- The title is a label for you. The list, the search field and the composer picker use it to keep prompts findable. It is never sent to the model, only the instruction text is.
- The instruction is stored in the plugin's config, so it survives restarts and is there in every session.
- Enable in every new chat marks the prompt as a default. It is off unless you turn it on.
- In a chat, open the Prompts control in the composer tool row, right of the permissions dropdown. Tick what you want. The button shows the count.
- The ticks apply from the next model step. No restart and no new session needed. Tick again, or press Clear, to take them out.
Prompts are matched by an id generated behind the scenes, not by title, so renaming a prompt keeps every session pointed at it.
Defaults for new chats
A prompt can be set to start enabled. Every session that has never been ticked by hand opens with those defaults already on, and the picker shows them ticked, so the count on a fresh chat matches what that chat will use.
The first hand edit to a session, whether that is ticking, unticking or Clear, becomes that session's own choice and takes over from then on. Unticking the last default prompt records "none here" instead of falling back to the defaults you just removed.
Subagents
A session that has ticks of its own uses exactly those, and an empty list counts as a choice. A session with no choice at all takes the choice of the nearest ancestor session, so a subagent inherits from the chat that started it. Only a whole line with no choice anywhere falls back to the defaults for new chats.
Good to know
- The settings file must be writable. The Prompts page says so up front and disables its controls. In the composer, a write the host refuses shows the reason under the list, so an edit is never dropped silently.
- The composer control hides itself until the settings remote is mounted and has answered its first read, rather than show a count that is about to change.
- There are size limits. The editor caps one instruction at 8000 characters. The host applies that same cap, uses at most 100 prompts and reads at most 500 library entries when it renders. Anything past those limits contributes nothing to the model. Settings still shows, edits and keeps every entry.
- Selections accumulate. The plugin keeps one entry per session that has ever been ticked in, and never prunes them. An entry whose prompts were all deleted still means "inject nothing", so removing it would quietly bring back the defaults for that session.
Links
More in this category
ranxianglei/billion-context★ 8746
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4848
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 860
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 435
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 407
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 335
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.