dsh-better-summary: Replace end-of-conversation output lines with Codex-style change summary cards

Preface

After running a round of tool calls in DSH Web, there is usually a “Output” (本次产出) chip at the end of the conversation stream: you can click it to access files, but the file count, lines added/deleted, and diffs often require opening elsewhere to see clearly. If the workspace itself is not a git repository, or if changes only exist as applied diffs within the session log, relying solely on git statistics is unreliable.

Below is an introduction to the community client plugin dsh-better-summary (Maintainer: yaodongH). It does not modify DSH source code. Instead, it replaces the native output row at the end of the turn with a Codex-like change summary card—displaying file counts, totals, per-file +added −deleted counts, collapsible sections, inline diffs per file, and a “Show in Folder” option. Line counts are derived from applied diffs within successful tool results for each turn, without relying on git.

What is this

dsh-better-summary is a profile bundle plugin for DSH Web (Category: Client). The current version is 0.2.0, requiring host DSH ≥ 0.1.6-alpha.2 (MIT License). It registers to the conversation.chat.turnTail list slot (priority default -2). The entry with the lower priority value within the same cell is rendered, thereby taking over native rows like ui-deliverables (0). Disabling the setting or uninstalling restores the original behavior.

Directory Page: skillhub.cn/plugins/yaodongH/dsh-better-summary
Source Code & Docs: github.com/yaodongH/dsh-better-summary

Core Features

What the card displays

  • Header Summary: e.g., “Edited N files” and total +a −d.
  • File List: One row per file with add/delete counts; collapsible (defaults to showing 3 file rows when collapsed, adjustable from 1–20 in settings).
  • “Review”: Expands inline diffs for all files (default max 200 lines per file, adjustable 20–2000).
  • Row Click: Follows DSH’s existing file opening logic.
  • “Show in Folder”: Plugin’s proprietary Host-side implementation; spawns processes using an argv array without going through a shell; includes WSL branch (wslpath + Windows Explorer / Invoke-Item); displays the reason on the card upon failure instead of failing silently.

Data Source

  1. The plugin registers a ConversationNodeDefinition (kind better-summary). It folds turn/start, tool/call, and append-semantics tool/result, attaching successful results’ {name, argsRaw, meta} to the Turn data in log order. It also reads DSH’s native deliverables for file ordering and fallback.
  2. Changes are derived via a “Source” strategy: built-in dsh.tool-result-diff-meta (reads applied diffs reported by tools) and dsh.tool-call-args (fills in for new files based on call arguments).
  3. Independent of DSH display mode: It does not publish view nodes; data remains readable from the folded definition even when tool nodes are collapsed in compact mode.

Settings (DSH → Task Output)

Config Item Default Description
Collapsed Rows 3 Number of file rows displayed when collapsed
Inline Diff Line Limit 200 Max lines rendered for a single file diff
Folder Button Icon + Text Or “Icon Only”, “Hidden”
Card Font Size Follow Body Or fixed 11–18px
Slot Priority (Advanced) -2 Lower value takes priority within the same slot
Enable On Restore native output row when off

Changes take effect immediately upon saving; no page refresh required. At the deployment level, the “Show in Folder” opener can be overridden via cordis.patch.yml (parameter {path} is the target to open).

Known Limitations (v1)

  • Coverage matches DSH’s native output list: write / edit / str_replace_editor; files changed via non-tool paths like bash are not included in the list.
  • No Undo (listed as a future plan in the README).
  • v1 Status: README states it has passed typecheck, 143 unit & component tests, and 5 E2E lanes.

Installation & Activation

The plugin is mounted to the Web profile as a profile bundle. Please review the repository source code and MIT license before installing; the plugin runs with the current process privileges of DSH and has no affiliation with any official app store.

Inside a DSH checkout (if local dsh is not in PATH):

pnpm -C <deepseek-harness path> dsh plugin --profile web add file:<absolute path>/dsh-better-summary-0.2.0.tgz

The command executes pnpm add in the profile directory and appends dsh-better-summary to dsh.profile.bundles based on the package’s dsh.bundle.patch.

Install from GitHub

dsh plugin --profile web add github:yaodongH/dsh-better-summary

The repository does not contain pre-built lib/, so installation relies on the prepare build script. If pnpm 10 does not execute dependency build scripts by default, you will encounter ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED. You need to allow it in ~/.dsh/profiles/web/pnpm-workspace.yaml, for example:

allowBuilds:
  dsh-better-summary: true

Installation success is confirmed when dsh-better-summary appears in dsh.profile.bundles; missing peer warnings may appear, but the peer is provided by the DSH app on the profile side, so these can generally be ignored.

Compatibility

Plugin Version Applicable DSH
0.2.0 (Current) ≥ 0.1.6-alpha.2 (turnTail is a list slot, requires options.id)
0.1.1 0.1.5-alpha.1 (chain slot, requires options.select)

If the wrong version is installed, the client will报错 (error) during the loading phase. The card will not appear, but the native output row will still show, for example:

list slot "conversation.chat.turnTail" requires options.id

Rollback

Remove the package from dsh.profile.bundles or disable “Enable” and restart dsh web; the original output row will be restored.

Typical Usage

  1. Install as described in the previous section and restart dsh web.
  2. In a Web conversation, have the agent modify files via write / edit tools; view the summary card instead of the chip row at the end of the turn.
  3. Click “Review” to see inline diffs when you need to inspect changes closely; click “Show in Folder” to locate files in the system file manager.
  4. Adjust collapsed rows, font size, etc., in DSH Settings → Task Output; if you need a custom open command, configure opener in the deployment’s cordis.patch.yml.

To extend support to other tools, you can register a source to ctx.betterSummary on the client side (README provides a registerNodeSource example) without modifying the card body itself.

Use Cases & Notes

Who is it for: Developers who frequently view single-turn file changes in DSH Web, want to see added/deleted lines and diffs at a glance at the end, and whose workspaces may not be git repositories.

Notes:

  • Only counts tool paths covered by the plugin; if inconsistent with git status, the card’s metrics prevail.
  • DSH and plugin versions must match the table above, otherwise loading will fail.
  • Installing from GitHub involves pulling and building third-party code; please review the repository before installation.
  • The community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-better-summary replaces the output chip at the end of the conversation with a collapsible change summary card. Statistics are not bound to git, and settings are centralized in the “Task Output” page. For details, screenshots, and design explanations, please refer to the GitHub README and docs/design.md.

  • Directory Page: https://www.skillhub.cn/plugins/yaodongH/dsh-better-summary
  • GitHub: https://github.com/yaodongH/dsh-better-summary
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye