DeepSeek Harness Plugin

BrianHIO-x/dsh-think-expand

Stars ★ 1 Category UI Enhancements Added 2026-09-05

Auto-expands every Think row after switching sessions, with a header switch to turn it on or off.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:BrianHIO-x/dsh-think-expand

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

中文 | 英文

DeepSeek Harness Web plugin. While the switch is on, every Think row in the conversation opens, including after you change sessions. DSH 0.1.7 tucks Think rows into step groups and folded turns, so the plugin first opens the groups and turns that hold a Think row, then expands the Think rows inside. Tool cards, context injections, and compaction rows stay as they are.

Install

Needs dsh 0.1.7-rc.2 or later and the web profile. Tested on the official 0.2.1-alpha.2 web UI, with the dsh-claude-style theme installed.

dsh plugin --profile web add github:BrianHIO-x/dsh-think-expand

Local checkout:

dsh plugin --profile web add /path/to/dsh-think-expand

Restart dsh web. The host terminal should print [dsh-think-expand] plugin loaded!.

Uninstall:

dsh plugin --profile web remove dsh-think-expand

Behavior

  • Matches the official Think row only (data-variant="think").
  • The session header has a Think switch. On expands every Think row; off collapses them all.
  • A Think row you collapse by hand stays collapsed until you use the header switch again. Each header action clears previous manual choices and applies to every Think row.
  • While the switch is on, the plugin opens every step group and folded turn (its elapsed-time line) that holds a Think row, then expands only the Think rows. Tool rows inside stay collapsed, and groups without a Think row stay folded.
  • DSH folds a turn when it finishes; with the switch on, the plugin opens it again.
  • A group or turn you close by hand stays closed until you use the header switch again.
  • Turning the switch off collapses every Think row and refolds the groups and turns the plugin opened. Groups and turns you opened yourself stay open.
  • Opening groups and turns never moves focus, so the conversation does not jump.
  • Only your own clicks and key presses count as manual choices. When another plugin opens or closes a row programmatically (for example a theme folding a Think row once reasoning ends), that is not recorded as your choice, and with the switch on the plugin opens the row again.
  • Works with themes that animate folds, such as dsh-claude-style. Those themes swallow chat clicks while an animation runs, so the plugin toggles Think rows with their own Enter key handler instead of a click, and retries a swallowed group or turn click after the animation, up to 5 times per control.
  • The switch is stored in the browser, so it survives a refresh.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.