dsh-scratchpad
Manifest validScratch pad: one shared floating text surface in the middle of the screen, opened by other plugins through the client service scratchpad.
dsh-scratchpad
A DeepSeek Harness (DSH) plugin: one shared floating text surface in the middle of the screen that any plugin can open, for reading big text or editing it in place.
There is no UI of its own to visit. Other plugins open the pad through the
client service scratchpad:
// consumer client half, inject: ['scratchpad', 'slots', …]
ctx.scratchpad.open({
title: 'Section preview', // optional header text
text: bigText, // required string
editable: true, // false (default): read-only viewer
onSave: (text) => { … }, // edit mode: the ONLY channel back
})
Modes
- Read: text is not editable, there is no Save, Close is the only
action; a backdrop click also closes. Selecting and copying work
(
readOnly, neverdisabled). - Edit: Save + Cancel. Save calls
onSave(editedText)and closes. A backdrop click does not close (no stray-click data loss). Editable withoutonSaveis allowed: a draft pad, where Close discards. Escapecloses (discarding edits in edit mode);Ctrl/Cmd+Entersaves.
Contract
openreplaces whatever the pad shows (one pad per tab).- Validation:
textmust be a string of at most 2 MB;onSavewithouteditable: truethrows. Fail loud at the door. - No return value; no persistence. A throwing
onSavekeeps the pad open with the error surfaced in the footer. - Pad state survives session switches (module scope) but not page reloads.
How to install
Requires a DeepSeek Harness checkout and a profile, here web. The plugin
has no dependencies:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-scratchpad.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-scratchpad
# verify the profile still composes
pnpm dsh --profile web --dump-config
Restart the harness. Plugins that inject the scratchpad service can now
open the pad.
Dependencies
- dsh-diff-view renders
mode: 'diff'pads (optional; without it a diff pad degrades to a plain before/after view)
Plugins dependent on this
- dsh-granular-prompt opens the pad for full-text viewing, section replacement, and diff review
Comments
Loading…
Similar plugins
A sidebar assistant plugin for the Web interface, allows users to select any text, displays the model’s reasoning process and final answer in a floating panel.
★ 0
dsh plugin --profile web add dsh-sidehelperby heiheiha798
Web UI plugin that folds each staged response's think and tool calls into per-segment bounded, scrollable slide windows with a configurable height, keeping every intermediate response visible.
★ 1
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add dsh-plugin-response-windowby Han-1413141
DSH Web client plugin: collapse every expanded section (Think / tool cards) in the conversation in one click, with a customizable hotkey.
★ 2
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add dsh-sticky-disclosureby Rice00
Select text in a DSH conversation and explain it in a floating window — independent channel, no session pollution, can be saved as a real session. / 划词解释浮窗:选中即弹、不污染主会话、可保存成正式会话。
★ 1
↓ 559/wk
MIT
JavaScript
Sep 30, 2026
dsh plugin --profile web add dsh-loupeby He2way
DSH client plugin: flip the page over to a glass task console — live jobs, subagents, session and workspace cards, an infinite canvas that unrolls a card into its own controls, embedded web apps, and a conversation box that edits the canvas.
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-task-consoleby ns-zzj
DSH 投屏控制的共用核心:界面、设备列表、投屏面板与 AI 工具(配合其他 provider 使用)
★ 2
MIT
JavaScript
Sep 30, 2026
dsh plugin --profile web add @nszzj/dsh-scrcpy-core