dsh-paste-collapse

Codex-style paste collapse for the DeepSeek Harness composer: a paste of more than 1000 characters becomes a `[Pasted Content N chars]` placeholder, a second paste of the same size is numbered `#2`, and the host expands it back to the full text before the model reads it, so the model still receives every character. A pill on the top edge of the composer shows the preview, the sent message shows the same pill, and clicking either opens the whole paste in a side panel with a copy button. Pure in memory: nothing is written to disk and no token is saved.

Overview

Codex-style paste collapse for the DeepSeek Harness composer: a paste of more than 1000 characters becomes a `[Pasted Content N chars]` placeholder, a second paste of the same size is numbered `#2`, and the host expands it back to the full text before the model reads it, so the model still receives every character. A pill on the top edge of the composer shows the preview, the sent message shows the same pill, and clicking either opens the whole paste in a side panel with a copy button. Pure in memory: nothing is written to disk and no token is saved.

Installation

Install from GitHub

dsh plugin --profile web add github:matata2017/dsh-paste-collapse

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands