AI Agent Hub
Back to plugins
⚙️

dsh-paste-collapse

Workflow Updated 2026.09.04

Run the following command in DeepSeek Harness:

dsh plugin install huenjie/dsh-paste-collapse

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install huenjie/dsh-paste-collapse to install the plugin, source available at https://github.com/huenjie/dsh-paste-collapse , then restart dsh web to activate.

About this plugin

Paste a few code snippets, log dumps, or config blocks into an AI input box and it quickly becomes an unreadable wall of text - hard to scan, hard to reference, hard to edit selectively. dsh-paste-collapse solves this by automatically collapsing multi-line pastes (or single lines of 100+ characters) into compact numbered tags, preserving cursor position and surrounding content so the input box stays visually clean.

Each collapsed tag ships with lightweight action chips: click to open a scrollable preview card; assign a custom name that updates the tag label in real time; or revert the tag back to plain text for further editing. To remove a block, simply delete the tag text. On send, every tag expands to the full original text for the model, wrapped only with minimal identifier lines and zero editorial commentary - no extra tool calls needed. Browser-side localStorage keeps up to 32 blocks (50,000 chars each) so tags and their numbers survive page refreshes; a Host-side in-memory cache provides a safety net, and nothing is written to disk.

Built for developers and AI-workflow users who regularly paste code comparisons, configuration fragments, or log excerpts into DSH. Multi-block content stays visually distinct with consistent numbering across input box and model side, while the plugin adds no explanatory prose to keep conversations clean.

Use Cases

  • Paste multiple code snippets into the AI input box for side-by-side comparison
  • Paste log dumps or config blocks then continue typing instructions
  • Send several long-text blocks with consistent numbering to the model

Best For

  • Developers who frequently paste long text into AI input fields
  • Engineers editing multiple code snippets side by side
  • AI-workflow users who value a clean, readable input box