Foreword

After running agent tasks in DSH, you often encounter a specific type of issue: after the session finishes, how to quickly determine where time and tokens were spent, which tool calls are noteworthy, whether sensitive paths or dangerous commands were used, from which step the two sessions diverged after a fork, and how to share a complete session with a colleague for review.

dsh-replay is a DSH plugin maintained by MingoZhou, licensed under MIT. It provides replay, fork-tree, audit, and compare visualizations for DeepSeek Harness sessions. The plugin is described as:

Session replay, fork-tree, audit & compare visualization for DeepSeek Harness — time machine for your agent sessions

What It Is

dsh-replay is designed for DSH users who need to view, audit, and compare agent session records. It transforms session records into an actionable interface, covering timeline replay, overview, cost estimation, security audit, fork tree, comparison, export, search, and language switching.

Core Features

Below are the capabilities provided:

  1. Timeline replay: View the session process.
  2. Overview dashboard: View session overview.
  3. Cost estimate: Provide cost estimation.
  4. Security audit: Provide security audit.
  5. Fork tree: View fork structure.
  6. Compare: Compare sessions.
  7. One-click HTML export: Export to HTML.
  8. Filter & search: Provide filtering and search.
  9. EN / Chinese: Interface supports English and Chinese.

Try It Online First

You can check the effect via the online demo:

https://mingozhou.github.io/dsh-replay/

This demo provides three sample sessions and requires no installation.

Installation and Enabling

The npm package distributes a pre-built version: no need to clone, build, or handle allowBuilds approval.

The installation command is:

dsh plugin --profile <your-profile> add @mingozhou/dsh-replay

Here, <your-profile> is the name of your current DSH profile, which needs to be replaced with the actual value.

After installation, verify the configuration:

dsh --profile <your-profile> --dump-config

The output should contain a section similar to:

# == @mingozhou/dsh-replay

Then restart the harness:

dsh web --profile <your-profile>

If you are running with a local harness repository, you can also use:

pnpm dsh web

After starting, open:

http://127.0.0.1:3080

Once enabled, there are two entry points:

  • The Session Replay button in the bottom-left corner of the sidebar;
  • The Replay tab in each opened session.

Running the Demo from Source

If you already have the dsh-replay repository, you can build it first, then run the demo:

npm install && npm run build
npm run demo

The repository address is:

https://github.com/MingoZhou/dsh-replay

Use Cases and Notes

dsh-replay is suitable for scenarios where you want to view the session process, troubleshoot tool calls, audit sensitive operations, compare forked sessions, or export sessions as HTML.

Before installation, it is recommended to review the source code and license. The plugin runs with the permissions of the current dsh process, so do not just look at the interface—also confirm the plugin code itself.

Verified notes are as follows:

  • Peer dependencies include react ^18.2.0 and @deepseek-ai related packages; from v0.2.0 onwards, all harness packages are optional peers.
  • Client plugin sets are only scanned at startup, and negative results are cached; therefore, after client-side changes, a harness restart is usually required.
  • The plugin API may change during the preview phase; according to the plugin documentation, fixes will be applied in thin adapter files.
  • Dark mode follows the harness theme.
  • The plugin does not save state outside its own package.
  • The license is MIT.

Conclusion

dsh-replay organizes DSH session records into a viewable, auditable, comparable, and exportable interface. It is suitable as a supplementary tool for agent session troubleshooting and review.

Project repository:

https://github.com/MingoZhou/dsh-replay

Address in the plugin directory hint:

https://www.skillhub.cn/plugins/MingoZhou/dsh-replay

This directory page address is marked as unconfirmed in this material; it is recommended to refer to the GitHub repository information before visiting.