Preface¶
The DeepSeek Harness (DSH) conversation input box is designed for short messages: only a few lines are visible, pressing Enter sends immediately, and content once sent is not easily reused as a “draft”. When you need to write a system prompt of several hundred lines, an acceptance checklist, or multi-section Markdown structures, the common practice is to draft it in an external editor and then paste it, or to endure Shift+Enter line breaks and constant scrolling inside the input box.
dsh-enhanced-prompt-editor (directory display name: Enhanced Prompt Editor) is a community-maintained client-side plugin published by BlanCatOra. It adds a T button to the input box toolbar, moving “writing long prompts” into a large panel on the right sidebar, or into a natively enlarged input box, and supports opening .md drafts from the workspace with DSH’s built-in file reader. This article describes its positioning, capabilities, and installation configuration. For facts, refer to the GitHub repository README.
What is this¶
The plugin package name is dsh-enhanced-prompt-editor, current version 0.1.0, license MIT. It hooks into DSH’s conversation.input.left slot, providing a persistent T button on the left side of the conversation input area (independent of model and provider), cycling between Editor mode, Expanded input box mode, and Native; the two enhanced modes can be toggled independently on the plugin page, and the cycle order can be configured.
Compared with the “write only in the small box” approach, it addresses the three points summarized in the README: the box is too small, Enter sends immediately, and content is hard to retain after sending—handled respectively by a right-sidebar editing area, configurable Enter semantics, and optional workspace .md persistence.
Core Features¶
Three Modes¶
Clicking T cycles through enabled modes, finally returning to Native; switching modes collapses the previous mode’s UI (e.g., the right-sidebar panel closes when leaving Editor mode, without losing the draft).
| Mode | Effect |
|---|---|
| Editor mode | Opens a standalone Markdown editing panel in the right sidebar, viewed side-by-side with the conversation |
| Expanded input box mode | The native input box immediately expands upward to a set height; Enter behavior can be configured separately |
| Native | Neither enhancement is active; only used to cycle back to the default input |
When both modes are off, T becomes dimmed and unresponsive. When entering Expanded input box mode, a banner appears at the top and disappears automatically after about 6 seconds.
Button appearance: a 28px circular button with the glyph T, and a mode badge at the bottom-right corner (panel icon / upward arrow / no badge means Native). The current mode is conveyed via the badge and aria-label, not via a hover title tooltip.
Right Sidebar Editor¶
The panel contains a toolbar (draft name, save, open with reader, clear), a large editing area, and a status bar (word count, storage method, dictation, send). The editing area has line numbers and alternating row backgrounds by default; below it there is a symbol deck and indentation buttons (→ adds two spaces, ← reduces indentation by one level). When text is selected and a paired symbol is clicked, it wraps the selected content instead of replacing it with the symbol itself.
Enter inside the panel defaults to inserting a newline; it can be changed to send in settings; it does not interfere with the Enter settings of the expanded input box.
Expanded Input Box and Native Deck¶
In Expanded input box mode, the same symbol deck as in the panel appears above the input card; writing goes through DSH’s official programmatic insertion channel (inputActions.captureInsertion() + insertText), without directly manipulating Lexical internals.
If “Apply floating deck to native input box” is checked on the plugin page, the same deck is also shown above the native input box even without switching to Expanded mode. When “Enable advanced Enter in native input box” is checked, the native mode can also reuse the expanded input box’s Enter policy.
Drafts and Reader¶
By default, drafts are saved as .md files within the conversation workspace (default directory .dsh/prompts, relative to the workspace root), so they can be opened with DSH’s built-in file reader. This can also be changed to “Browser local only” or “Do not save”. When “Allow opening with built-in reader” is off, no workspace file is written.
Shortcuts¶
| Key | Behavior |
|---|---|
Ctrl/Cmd + Shift + T |
Toggle input box mode (equivalent to clicking T; can be rebinding in “Settings → Shortcuts”; can be disabled entirely on the plugin page) |
Enter / Cmd/Ctrl + Enter |
In the panel or expanded input box, Enter defaults to newline, the combo key sends; can be inverted in settings |
Shift + Enter |
Always inserts a newline |
The plugin deliberately uses Ctrl/Cmd + Shift + T to avoid conflicting with the core Ctrl/Cmd + T (open new browser tab).
Voice Dictation (Optional)¶
Dictation reuses the remote.speech of an already installed DSH speech-to-text plugin; if not installed, the dictation button does not appear. The microphone is accessed only after the user clicks “Dictation”; audio is recognized by the speech plugin, and this plugin does not retain recordings.
Installation and Activation¶
This plugin is a local package (file: dependency); its wiring is the same as dsh-cetus, dsh-email, etc., and not a remote one-click install like dsh plugin add github:....
Compatible Versions¶
- Verified on DSH 0.2.1-rc.2;
package.jsondeclaresengines.dsh: ">=0.2.0-0". - Node dependency
^22.19.0 || >=24.0.0, usually provided by the DSH runtime.
Steps¶
- Add the dependency and bundle to the profile’s
package.json(change the path to the absolute path of your local clone or extracted directory):
{
"dependencies": {
"dsh-enhanced-prompt-editor": "file:/abs/path/to/dsh-enhanced-prompt-editor"
},
"dsh": {
"profile": {
"bundles": ["…", "dsh-enhanced-prompt-editor"]
}
}
}
File location: ~/.dsh/profiles/desktop/package.json.
- Install dependencies:
cd ~/.dsh/profiles/desktop
/usr/lib/deepseek-harness-desktop/resources/runtime/primary-runtime/dependencies/pnpm/bin/pnpm.mjs install
- Restart the DSH desktop application. Client bundles are registered only at application startup; without a restart they will not take effect.
Before installing, it is recommended to read the repository source code and LICENSE to confirm acceptance of the MIT terms; the plugin runs with the permissions of the current DSH process, and file writing and reading are restricted to the current session workspace.
Configuration Reference¶
Path: Sidebar “Plugins” → “Enhanced Prompt Editor” → plugin-specific configuration page (not the DSH general settings page). Changes must be saved by clicking “Save” before being written.
| Setting | Default | Description |
|---|---|---|
| Editor mode | On | Click T to open the right-sidebar panel |
| Expanded input box mode | On | Native input box expands upward |
| Cycle order | Editor → Expanded input box | Effective when both modes are enabled |
| Enter in expanded input box | Follow DSH | Follow DSH (Enter sends) or Enter newline (Cmd/Ctrl+Enter sends) |
| Expanded input box height | 640px | 240–2000 |
| Draft storage | Workspace .md file |
Or browser local only / do not save |
| Save directory | .dsh/prompts |
Relative to the conversation workspace root |
| Enter in panel | Enter newline | Only affects the right-sidebar panel |
| Panel height | 420px | 180–1400 |
| Editing area font size | 16px | 11–28 |
| Shortcut button size | 100% | 80–180% |
| Allow opening with built-in reader | On | Off means no workspace file is written |
| Show dictation button | On | Depends on the speech-to-text plugin |
| Apply floating deck to native input box | Off | Shows the symbol deck in native mode too |
| Enable advanced Enter in native input box | Off | Native mode reuses the expanded Enter policy |
Enable Ctrl/Cmd+Shift+T shortcut |
On | When off, this key is not intercepted |
Note: DSH’s global “Enter behavior” refers to queuing or interrupting when the agent is busy, unrelated to newlines; a plain Enter in native mode always sends. “Enter in expanded input box” is a new capability added by this plugin for the expanded input box, and by default does not change host behavior.
Typical Usage¶
Below is a long-text editing path you can test yourself, without needing any extra services.
- Complete the installation and restart DSH, then open any conversation with a workspace.
- Find T on the left side of the input box (positioned after
[+], permission controls, and plan controls), click T to enter Editor mode, and a large editing area appears in the right sidebar. - You can copy the example long prompt from the repository’s
docs/demo-long-prompt.md(the README says about 126 lines), paste it into the panel, and check line numbers, alternating row backgrounds, and the symbol toolbar. - When you need in-place editing, click T again to switch to Expanded input box mode; the input box becomes taller and a deck appears above it; choose Enter-newline or Enter-send according to your settings.
- With draft storage at its default, after saving the file lands in the workspace
.dsh/prompts; selecting “Open with reader” on the toolbar lets you view it with the built-in reader. - After editing, click “Send” in the panel or flow; the text enters the current conversation via
setDraftandsubmit, rather than the plugin constructing model requests directly.
Use Cases and Notes¶
Who it’s for: developers who frequently maintain long system prompts, structured Markdown task descriptions, or acceptance documents with code blocks and tables in DSH, and want drafts to be persistable and viewable side-by-side with the conversation.
Permissions and data boundaries (README summary): file read/write is limited to the current session workspace; dictation uses the microphone only after clicking; persistence goes through a loopback HTTP route, validates Origin, with a 1 MiB single-request body limit; no network access, no telemetry. After uninstallation, already-persisted .md files remain in the workspace; if browser local storage was used, the keys are dsh.enhancedPromptEditor.draft and dsh.enhancedPromptEditor.mode.
Ecosystem note: The DSH community plugin directory is hosted on a separate site at SkillHub plugin page, with no official affiliation with DeepSeek / High-Flyer; installation and behavior depend on your local DSH version and the repository’s current commit.
Closing¶
dsh-enhanced-prompt-editor pulls long-prompt writing back into the DSH conversation from “small input box + external editor”: a large right-sidebar panel, an expandable input box, optional .md drafts with reader integration, and separate handling of Enter semantics in expanded scenarios. For UI screenshots and update history, see the GitHub repository and the SkillHub directory page.