dsh-history-viewer: Locally Browse, Search, and Export Session History in DSH Web

Preface

When using DeepSeek Harness (DSH) for agent or daily conversation development, sessions are stored as compressed JSONL logs in the local sessions directory. Reviewing a past conversation, searching for something said within a project, or exporting a piece of context as Markdown can be costly if you can only directly browse raw logs. Some official history plugins in the community may fail to load at startup on DSH 0.2.x due to peer dependency version mismatches.

dsh-history-viewer (maintained by xiao0xueAI, categorized as “Memory” in the community directory) takes a different approach: it does not depend on third-party history plugins, directly reads local DSH session files in read-only mode, and provides search, rendering, and export capabilities in a web sidebar. No data is uploaded; indices and configuration are written to the local cache directory.

What Is This

In one sentence: a DSH session history viewer—full-text search within projects, Markdown rendering in DSH’s interface style, one-click conversation export; offline, zero additional dependencies (relative to “installing another history service”).

  • Repository: xiao0xueAI/dsh-history-viewer
  • Community directory: SkillHub plugin page
  • Current npm package version (from package.json in the materials): 1.0.4, License MIT
  • Runtime requirements: Node >= 22.15; DSH engine declared as >= 0.1.7-rc.2 (peerDependencies covers 0.1.7-rc.2 and several rc/alpha lines in 0.2.x)

The primary data source read is ~/.dsh/sessions/**/session.v*.jsonl.zstd. Project ownership is determined by DSH’s storages/workspace.json, so renaming workspaces or moving directories won’t affect project-based classification.

Core Features

All capabilities below come from the project README and require use under the web profile after installation.

Entry Point and Layout

  • A clock icon at the bottom of the sidebar opens an in-app overlay for viewing; the overlay supports “Open in New Tab” for extended reading sessions.
  • Left panel: search box, project (workspace) dropdown, content scope (conversations only / including tools / all), pinned session filter, session list.
  • Right panel: session title and path, body content or search results, export and pagination.

Project-Based Filtering and Pinned Sessions

  • Project names come from DSH’s own workspace storage, not guessed from directory names.
  • You can pin frequently used sessions; supports switching between “Show only pinned N” and “All in this project”; pinned state is recorded per project.

Search and Reading

  • In-project full-text search: results grouped by session, with context and keyword highlighting; clicking a result jumps to the corresponding message in the original conversation with a flashing position indicator.
  • Adjustable number of hits displayed per session (8 / 20 / 50 / all).
  • Body content and search cards render Markdown in DSH’s interface style (headings, tables, code blocks, bold, etc.) without showing raw markup symbols.
  • Long conversations are paginated (earlier / later) to avoid loading excessively large content at once.

Export and Cache

  • “Export this conversation” downloads Markdown according to the current project, pinned filter, and content scope.
  • Index is cached in ~/.dsh/dsh-history-viewer/ and rebuilt in the background after expiration; new messages may have a brief delay (default approximately 5 minutes cooldown before refreshing the index).

Security and Privacy (Plugin’s Own Description)

  • Reads only <DSH_HOME>/sessions (default ~/.dsh/sessions) and storages/workspace.json; writes are limited to the plugin’s cache directory.
  • API serves only the local machine: loopback address, Host whitelist, same-origin validation, and runtime random tokens (/api/* requires x-hv-token); no external network requests are made.
  • Environment variables: DSH_HOME specifies the DSH data root directory; DSH_HISTORY_VIEWER_DIR specifies the cache directory.

Installation and Activation

Add the plugin under any profile (web usage requires --profile web):

dsh plugin --profile web add dsh-history-viewer

If your local npm registry is a read-only mirror and can’t install the latest version, you can temporarily specify the official registry (from README):

npm_config_registry=https://registry.npmjs.org dsh plugin --profile web add dsh-history-viewer

For local development, install from a directory link:

dsh plugin --profile web add link:/path/to/dsh-history-viewer

After installation, restart dsh web once, then refresh the browser page. The Host half may hot-reload, but the browser-side module manifest is assembled at startup; without restart, the sidebar entry may not appear.

Typical Usage

1. Open History

After refreshing the page, click the history entry at the bottom of the left sidebar → opens the full interface in an in-app overlay; use “Open in New Tab” for fullscreen or extended reading.

2. Focus on One Session

Hover over a session in the left panel, click pin → the top changes to a “Show only pinned 1” type button; click again to toggle between “Show only pinned” and “All in this project”.

3. Find a Phrase in a Project

Type keywords in the search box and press Enter → the right panel lists hits by session → click any hit to jump to the original text. To see tool calls or thinking processes, switch the scope to “Including tools” or “All”.

4. Export Markdown

Use “Export this conversation” in the top-right corner of the right panel; exported content is constrained by the current project, pinned filter, and scope settings.

Common Issues (README Summary)

Symptom Solution
No sidebar entry Restart dsh web after installation, then refresh
First-time opening lags for several seconds First-time index building in worker, cached afterwards
Empty list Check if you’re only viewing pinned sessions not in the current project, or switch to “All projects”

The README also mentions a standalone command-line version (not dependent on DSH process) suitable for sharing with users who don’t install the plugin; the plugin version starts with DSH Web without needing a separate service.

Use Cases and Considerations

Who It’s For

  • Developers already running on DSH 0.2.x or within the peer range listed in the README, who need to review, search, and export historical sessions locally.
  • Those who want history capabilities not tied to third-party history plugins that may drift with DSH versions.

Things to Know Before Use

  • The plugin reads and writes to the local session directory and cache with the current DSH process permissions; it’s recommended to review the source code and MIT license on GitHub before installation to ensure compliance with your security policy.
  • The index is a snapshot: newly generated messages may take some time to appear in search results after background rebuild; search display truncates overly long content, and the full content should be based on the original logs.
  • The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer; the plugin is published by community maintainers, not a built-in DSH component.

Conclusion

dsh-history-viewer transforms DSH session logs into a searchable, renderable, and exportable local resource, with clear installation commands and integrated web sidebar interface. If you need to supplement “Memory” capabilities in the Harness ecosystem, you can get package information and update notes from the community directory or GitHub:

  • Directory page: https://www.skillhub.cn/plugins/xiao0xueAI/dsh-history-viewer
  • Repository: https://github.com/xiao0xueAI/dsh-history-viewer
羽毛球分组比赛记分
小程序二维码

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

Xiaoye