AI Agent Hub
Back to plugins
🖥️

dsh-turn-collapse

Client Updated 2026.08.18

Run the following command in DeepSeek Harness:

dsh plugin install mctang985211-coder/dsh-turn-collapse

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

Run dsh plugin install mctang985211-coder/dsh-turn-collapse in the DeepSeek Harness terminal to install this plugin; the source repository is at https://github.com/mctang985211-coder/dsh-turn-collapse

About this plugin

In a multi-turn DSH web chat, every assistant turn renders its reasoning chain and each tool call as separate collapsible rows. When a single turn involves several tool invocations, the interface quickly becomes a wall of tiny panels. dsh-turn-collapse borrows the Codex approach: it groups everything that sits between two visible outputs—the thinking rows and the tool-call nodes—into a single disclosure bar with a triangle toggle. The bar is collapsed by default; one click expands the whole group, while the individual Think rows and ToolRows inside remain independently usable.

The plugin is entirely client-side. It watches the conversation scroll container with a MutationObserver, detects where a node counts as a visible output (text that survives stripping think rows and tool chains), and rebuilds fold groups on every DOM change. Open and close state is persisted per session in localStorage, so it survives re-renders and page reloads. There is no host-side code, no server, and no API surface; the visual style reuses DSH design tokens and matches the native header rows.

It is well suited for anyone running long conversations in DSH and frequently scrolling through dozens of reasoning and tool-call rows. If you prefer the chat stream to show only key outputs and reveal the rest on demand, it cuts visual noise considerably.

Use Cases

  • Skim long conversations to key outputs without clutter from reasoning and tool-call rows
  • Batch-expand or collapse an entire turn of reasoning and tool-call details during multi-turn review
  • Keep fold state after a page reload so panels do not need to be re-toggled

Best For

  • Users running long DSH conversations with heavy reasoning and tool-call rows
  • DSH users who prefer the Codex-style fold-per-gap interaction
  • Developers who want to reduce visual noise and expand details on demand