DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Collapse History — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-collapse-history

Collapse History

DSH web client plugin: auto & selective folding of conversation turns — hide all assistant replies to see only your messages (or vice versa); the most recent N turns stay expanded.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:hengxiangdeheng-jpg/dsh-collapse-history#f1357e1129eebbfa02b3879ca7b05c8ef82f42b4
READMECompatibilityVersions
demoauto
assistant hidden
user hidden
content fold
settings

Compatibility and provenance

Collapse History is published as dsh-collapse-history and currently resolves to version 0.3.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/23/2026

Versions

0.3.0stable
8/23/2026
0.1.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.3.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
8/23/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessWeknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Reme@agentscope-ai/remeReMe client and memory integrations for TypeScript agents

README

🗂️ dsh-collapse-history

Fold entire conversation turns in DeepSeek Harness Web — automatically and selectively. Hide all assistant replies to see only your messages, or keep only the assistant's answers. Recent turns always stay expanded.

A zero-build, dependency-free client plugin for DeepSeek Harness Web (DSH). Long conversations become a tidy timeline of chips: every assistant turn (thinking + reply + tool calls) and every user message can be folded into one line — the most recent `N` turns remain fully visible.

⭐ Star this repo if you find it useful — it helps the project grow!


✨ Features

FeatureDescription
⚡ Auto fold (default ON)Older assistant replies fold automatically; the most recent `N` stay expanded (set `0` to fold every assistant reply). Your messages are never auto-folded, so browsing history stays natural.
🧑‍💻 Hide all assistant repliesEvery assistant turn (thinking, text, tool calls) collapses into a chip — you see only your own questions.
👤 Hide all your messagesThe reverse view: only the assistant's replies remain.
📄 Fold long contentAny single message longer than the threshold (default 800 chars) folds into a chip automatically — with a hover fold button for manual folding.
🖱 One-click expandClick any chip to expand that turn or block. Manually toggled turns are pinned — auto mode never undoes your choice.
🎛 Settings popoverTune `keep-recent N` for assistant replies and user messages, toggle auto mode, clear pins, reset defaults.
💾 PersistentSettings are saved to `localStorage` and survive page reloads.
🌗 Native lookStyled with the app's own design tokens (`--dsw-alias-*`), light & dark themes.
🌐 i18nUI follows the browser language (中文 / English).
🧩 Zero build, zero depsHand-written client bundle, no toolchain, no runtime dependencies.

🎬 Demo

demo

Auto fold (assistant-only) → hide all assistant replies → show all → hide all user messages → show all.

📸 Screenshots

Auto-folded historyOnly your messages (all assistant replies hidden)
autoassistant hidden
Only assistant replies (your messages hidden)Long content auto-folded
user hiddencontent fold
Settings
settings

📦 Install

Requires DSH ≥ `0.1.1-rc.1` and the `web` profile.

Option A — from this repo (recommended)

```bash dsh plugin --profile web add github:hengxiangdeheng-jpg/dsh-collapse-history ```

Option B — from npm (once published)

```bash dsh plugin --profile web add dsh-collapse-history ```

Option C — local directory

```bash dsh plugin --profile web add link:D:/path/to/dsh-collapse-history ```

Then register the loader entry — either:

  1. Add `dsh-collapse-history` to the `dsh.profile.bundles` list in `~/.dsh/profiles/web/package.json` (its own `cordis.patch.yml` registers itself), or
  2. Append to `~/.dsh/profiles/web/cordis.patch.yml`:

```yaml

  • insert:
    • id: dsh-collapse-history name: 'dsh-collapse-history' ```

Finally restart the web profile:

```bash dsh web ```

🎮 Usage

A small floating toolbar appears at the bottom-right of the conversation column:

ButtonAction
⚡Toggle auto fold on/off
🧑‍💻▾ / 🧑‍💻▴Hide / show all assistant replies (pins them)
👤▾ / 👤▴Hide / show all your messages (pins them)
⚙Open settings: keep-recent `N`, clear pins, reset

Per turn: click a chip to expand it; clicking the chip again (or using the toolbar) re-folds it. Your manual choices are pinned and survive auto passes until you clear pins.

⚙️ Configuration

Stored in `localStorage` (`dsh-collapse-history:settings:v2`), editable from the ⚙ popover:

KeyDefaultRangeMeaning
`auto``true`boolMaster switch for auto folding
`assistantKeep``1`0–10How many most recent assistant replies stay expanded (`0` = fold every assistant reply)
`maxChars``800`0–100000Fold any single message longer than this many characters (`0` = never fold by length)

🛠 How it works

  • Pure DOM-level client plugin: a `MutationObserver` watches the conversation column (`[data-pane="conversation"]`, stamped by the web-ui compat shim — the plugin stamps it itself if missing).
  • The message list is composed of flow items (`[class$="_flowItem"]`); each user message is one flow item, and each assistant turn is the consecutive run of flow items between two user messages (thinking rows, markdown, tool calls, context markers).
  • Folding hides the turn's content with CSS and shows a compact chip; the observer re-applies state after every React render.
  • Streaming turns (`data-state="running"`) are never folded.

⚠️ Limitations

  • Pin state is per-DOM-element: switching sessions or heavy re-renders may reset manual pins (auto mode re-applies immediately).
  • Works with the built-in conversation view. The details/trajectory panes are intentionally untouched.

🗺 Roadmap

  • Per-session fold-state memory
  • Collapse-all hotkeys
  • Visual settings page integration (`dsh-client-ui-settings`)

📄 License

MIT © dsh-collapse-history contributors