dsh-granular-prompt
Manifest validPrompt composition manager for DSH: live census of every system-prompt section with suppress and replace, custom system prompts, and a persona library with a picker right in the chat composer
dsh-granular-prompt
A DeepSeek Harness (DSH) plugin: inspect and steer prompt composition while it happens, with system prompts and personas you author yourself.
See every section the next request will send. A Prompt tab inside Granular Settings lists the live census of sections, each with suppress, replace (from the scratchpad), view full text, and revert. Ship your own system prompts (or take over the whole prompt in complete mode). Keep a persona library and pick one per session, with a picker right beside the chat input.
What you get
- Live list: every section that will render in the next assembly, with a suppress checkbox, view, replace, and revert. Suppression and replacement are mutually exclusive per section.
- System prompts: a library plus an active selection, additive or complete mode. Complete makes your text the ENTIRE prompt (registry-enforced).
- Personas: a library with a global default and per-session selection;
inheritfalls back to the default. - Composer picker: the same Active persona choice, one click from the chat input (togglable in the Plugin tab, default on).
How to install
Requires a DeepSeek Harness checkout and a profile, here web. Clone the
dependencies and this plugin into a plugins folder:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-scratchpad.git
git clone https://github.com/joao-paulo-santos/dsh-event-relay.git
git clone https://github.com/joao-paulo-santos/dsh-granular-settings.git
git clone https://github.com/joao-paulo-santos/dsh-granular-prompt.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-scratchpad
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-event-relay
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-granular-settings
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-granular-prompt
# verify the profile still composes
pnpm dsh --profile web --dump-config
Restart the harness; the Prompt tab appears in Granular Settings.
Mechanisms
- Census runs
systemPrompt.assemblewith a bypass marker its own waterfall listener honors, so the control surface always sees the UNFILTERED table. - ONE waterfall listener applies suppress then replace, in that order; filter failures fall through unfiltered.
- The user system prompt (order -98) and persona (order 5) are registered sections with provider functions: switching applies to the NEXT request.
- Persona resolution: session setting, else default persona, else none.
- Store:
~/.dsh/settings/prompt-manager.json, write-through memory with serialized writes.
Debugging
The census behind the tab:
curl 'http://127.0.0.1:3080/granular-prompt/census'
curl 'http://127.0.0.1:3080/granular-prompt/census?session=<sid>'
Dependencies
- dsh-granular-settings hosts the Prompt tab and owns the persona settings this plugin registers and reads
- dsh-scratchpad is the pad this plugin opens for full-text viewing, section replacement, and diff review (required; the UI does not activate without it)
- dsh-event-relay carries change doorbells (optional; focus refetch covers its absence)
Plugins dependent on this
(none)
Comments
Loading…
Similar plugins
by FeatherHunter
Right-side prompt toolbox panel with 24 built-in deep templates plus user-defined ones, accessible via the /prompt slash trigger and a context-aware floating suggestion card; one-click inserts the sel
★ 31
↓ 4k/wk
MIT
JavaScript
Oct 11, 2026
dsh plugin --profile web add dsh-promptby LCQ-1024
Adds a prompt-enhancement button to the DSH composer that rewrites drafts into agent-ready prompts.
★ 3
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-prompt-enhancerby XXXXXQ-0206
Adds a composer button that optimizes the current prompt or designs the next one from the current session and project context.
★ 0
MIT
JavaScript
Sep 13, 2026
dsh plugin --profile web add dsh-prompt-for-meOne-click prompt polisher for the DSH composer: a ✨ button next to the message box opens a side-chat where an agent refines your rough draft over multiple turns, then you copy the result back. Replays
★ 0
dsh plugin --profile web add narrative-prompt-polishby konglong87
dsh 常用内容插件:保存、编辑提示词,点击回填输入框,不自动发送。deepseek harness 插件
★ 0
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-input-listby master1Sun
DSH(DeepSeek Harness)Web 插件:在 composer 工具栏注入一个「提示词库」按钮,管理可复用的 prompt 片段,点击即可插入当前输入框。支持自动学习:输入复杂 prompt 文案时,插件会自动识别并保存到提示词库。
★ 13
↓ 431/wk
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile web add @sunjuntao/dsh-prompt-library