Preface¶
When writing prompts in DeepSeek Harness (DSH), logs, diffs, JSON exports, or entire documents are often pasted into Composer all at once from the clipboard. When the text is long, the input box gets filled up, and with multiple pasted segments mixed into the draft, it becomes difficult to retrieve or delete them individually. The outbound side already has capabilities like dsh-spill to handle tool outputs leaving the model; the inbound side—large chunks of content that users paste into the input box—needs a different set of rules. Below is an introduction to the community plugin dsh-paste-spill (maintainer winditer, category: client), which automatically follows one of two paths—“collapsed chip” or “real attachment + deliverable card”—based on paste volume, without modifying the DSH session format or the model-side protocol.
What Is This¶
dsh-paste-spill targets inbound large pastes in the DSH Composer: the behavior is determined by the number of UTF-8 bytes in a single paste; what is measured is the text of this paste, not the entire draft.
| Size (UTF-8 bytes) | Behavior |
|---|---|
| Less than 4,000 | Not processed, kept as-is |
| 4,000 – 50,000 | Fold: this paste is moved out of the editor and becomes a chip |
| ≥ 50,000 | Spill: uploaded as a real attachment; the message carries a file block, and a clickable deliverable card appears at the end of the turn |
The two layers are independent of each other: Fold changes the appearance of the Composer; Spill changes whether what the model actually receives is inline text or an attachment on a read-only host path.
Core Features¶
Fold Layer (4 KB – 50 KB)¶
When a single paste is 4 KB–50 KB, only the continuous fragment of this paste leaves the editor, and the plugin holds a chip for it; the text you have already typed, as well as chips produced by earlier pastes, will not be overwritten.
Each chip provides:
- Preview line: the first 20 characters of the pasted content (whitespace collapsed);
Show in text box ›: writes the full original text of this chip back to the corresponding position and releases it;×: only deletes this one chip and releases its text (Delete this text).
The chip is a real editor node, not a decoration; it registers an inputTriggers source, and serialize(ref) returns the full original text. What is submitted at send time is the paste itself, not a placeholder, nor an attachment. One paste corresponds to one chip; pasting a second 6 KB segment appends a chip rather than replacing the first.
The chip floats above the input area, and via the CSS variable --dshps-chip-band it hands its height to the Composer card as padding-top, avoiding obstruction of the first input line; when multiple chips wrap, they rearrange.
Spill Layer (≥ 50 KB)¶
When a single paste is ≥ 50,000 bytes, the text is synthesized into a File and goes through the Composer’s existing attachment upload path; the filename is sniffed from the content as pasted-text-<n>.json, .md, .py, .js, .html, .csv, .txt, etc. The message contains a legal file block, and the model obtains a read-only host path through the stock attachment logic.
The host side listens for paste attachments in agent/inbox/inserted, resolves the host path from the attachment store, publishes deliverables/presented on agent/pre-step, and the built-in deliverables UI renders a clickable card at the end of the turn; clicking it opens the file in the right sidebar. The original text is cleared to "" in place from the span of this paste within the Composer, without clearing the entire draft; other chips, typed text, cursor, and undo history are preserved.
Implementation Notes (and Compatibility)¶
- Single package, two halves:
lib/client.js(browser,dsh.client.platform: "web") handles draft watching and paste;lib/index.js(host) handles inbox and pre-step. - Does not patch or replace stock packages; uses only public extension points:
inputTriggers,conversation.input.overlay, existing attachment upload,agent/inbox/inserted/agent/pre-step. package.jsondeclaresengines.dsh: ">=0.1.7-rc.2 <0.3.0-0"; the README states it is verified on DSH 0.1.7-rc.2 and 0.2.0-rc.2 (web and desktop). Web UI capabilities (fold, chip band, attachment upload) run in the browser half; the host half can run in the environment where the bundle loader resides.- npm package version 0.2.0, license MIT.
Installation and Activation¶
The plugin is installed with the web profile; the CLI will reject --profile desktop, as desktop is managed by the application itself.
Install from the DSH CLI (npm published name dsh-paste-spill):
dsh plugin --profile web add dsh-paste-spill
To install the same package from a GitHub source:
dsh plugin --profile web add github:winditer/dsh-paste-spill
On DSH Desktop, you can install it via the in-app plugin manager (Settings → Plugins) or the plugin marketplace.
After installation, the browser half is a page-level module: refresh the page (or restart the app) for it to load.
Typical Usage¶
Usage is “auto-triggered by volume”; no extra configuration options are needed (the materials do not list any standalone config files or environment variables).
- Paste a log fragment or JSON of about 4 KB–50 KB into the Composer at once: that segment becomes a chip above the input box; when you need to edit it, click
Show in text box ›; when you don’t need it, click×to delete only that segment. - Paste a large dump ≥ 50 KB at once: an attachment chip like
pasted-text-173.jsonappears in the Composer; after sending, the model reads the attachment path; a deliverable card appears at the end of the turn; click it to preview in the right sidebar. - Normal pastes smaller than 4 KB: behave the same as without the plugin installed, and do not become chips or attachments.
For development and troubleshooting, the README mentions that in-app diagnostics are written to localStorage["dsh.paste-spill.diag"] (keyed per session); a local checkout can use the repository’s scripts/install-into-profile.sh to link into the desktop profile (for plugin authors, not a required step for end users).
Use Cases and Notes¶
Suitable for: DSH users who often paste medium-sized fragments (a few KB to tens of KB) into the Composer without wanting the input box filled with wall text; or who have single pastes exceeding 50 KB and want to use attachments and deliverable cards to reduce inline context volume.
Notes:
- The plugin runs under the permissions of the current DSH process; before installing, review the source code and MIT license of the GitHub repository yourself to confirm they meet your security and compliance requirements.
- Classified as a client-side plugin; the Fold/Spill interactions and upload happen in the Web UI; it complements the outbound
dsh-spilland does not replace the stock behavior of attachments and deliverables. - The community directory SkillHub plugin page is not officially affiliated with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin”, and the directory is an independent community site.
Conclusion¶
dsh-paste-spill splits Composer inbound pastes into two tiers at 4 KB / 50 KB: medium pastes are collapsed into chips that can be expanded or deleted individually, and oversized pastes become real attachments with a deliverable card given at the end of the turn; at send time it still goes through public extension points and the existing attachment path. For installation commands, screenshots, and architectural explanations, refer to the repository README.
- Community directory: https://www.skillhub.cn/plugins/winditer/dsh-paste-spill
- GitHub: https://github.com/winditer/dsh-paste-spill