dsh-zen: DSH Web Zen Mode View and Screen Time Statistics

Introduction

When running agents in DeepSeek Harness (DSH), the conversation view constantly scrolls through tool calls, command outputs, reasoning lines, and context collapse information. As tasks progress in the background, the interface often commands more attention than the “final conclusion.” If you want to see only the status, your last message, and the final Markdown reply during agent execution—rather than the entire screen of intermediate processes—you need to perform view pruning on the Web client side, rather than modifying the agent itself.

Below is an introduction to the community plugin dsh-zen (directory name john-walks-slow/dsh-zen, npm package @johnnren/dsh-zen): It adds a Zen tab to the DSH Web GUI and provides foreground screen-watching duration along with daily/weekly “Zen value” statistics. The plugin is categorized as a client-side, purely frontend implementation. The README specifies zero permissions (no network, no file system, no external services).

What is this

dsh-zen is released by the maintainer john-walks-slow. The repository is at https://github.com/john-walks-slow/dsh-zen, and the community directory page is at https://www.skillhub.cn/plugins/john-walks-slow/dsh-zen. SkillHub is an independent plugin directory site with no official affiliation to DeepSeek or High-Flyer.

In one sentence: It adds a Zen view to the Conversation / Zen / Trajectory set within the default web profile DSH Web client, and automatically enters/exits Zen mode under optional configurations. Simultaneously, it uses the browser’s localStorage to record the ratio of “window in foreground” time to total task running time, converting it into a Zen value (100% − Screen-watching ratio).

Core Functions

The following capabilities are derived from the repository README. You can verify them in the GitHub source code and cordis.patch.yml before installation.

Zen View Tab

The plugin registers the conversation.view slot, providing an independent Zen tab with a deliberately minimalist interface:

  • Configurable running / completed status titles (and optional subtitles)
  • During generation, displays user messages, the previous reply, and dynamic prompts; upon completion, renders the AI’s final reply in Markdown
  • Single-line turn statistics: Steps N · Duration Nm · Stats (each block can be toggled in settings)

Data is sourced from existing session snapshots in the Web client (e.g., uiConversation.binding(sessionId).target("chat")) without making additional network requests.

Foreground Time and Zen Value

The Foreground time tracker records “window visible” duration and total task running duration per session, persisted in localStorage (key prefix dsh.zen.*). The settings panel displays Today’s Zen / This Week’s Zen and the current Zen level; Zen value is defined as 100% − Screen-watching ratio.

Conversation View Aids

  • Hide Intermediate Process: A Hide Intermediate Process button in the session header hides tool calls, commands, context, compression, reasoning, and other lines in the chat via CSS.
  • Auto-enter / Auto-exit Zen: Option to switch to the Zen tab when a task starts and return to the conversation view when it finishes.
  • Shortcut: Press Alt+Z anywhere to toggle between the Zen and conversation views.
  • Animation Toggle: Can disable the Zen view entrance animation for instant rendering.

Installation and Enabling

The plugin is distributed as a DSH bundle and requires a profile with Web capabilities (default web). You need to restart dsh web after installation; the bundle’s cordis.patch.yml writes the zen line into the profile composition, and the Web client is provided by the lib/client.js committed in the repository.

Replace <40-character-commit> with the 40-character commit SHA to pin (the README suggests pinning to a specific commit to avoid floating branches being force-pushed):

dsh plugin --profile web add github:john-walks-slow/dsh-zen#<40-character-commit>

Then restart dsh web.

Install from npm (Note in README: Available after release)

dsh plugin --profile web add @johnnren/dsh-zen

The current version in package.json is 1.1.0, License MIT.

Uninstall

dsh plugin --profile web remove @johnnren/dsh-zen

You can also remove the corresponding line from the profile composition. Clearing keys with the prefix dsh.zen. in localStorage will delete local statistics and settings.

Typical Usage

  1. Open any conversation in the DSH Web GUI.
  2. Click the Zen tab, or press Alt+Z to enter the Zen view; check status and final replies here while the agent runs in the background.
  3. If you remain on the conversation page, use the header bar Hide Intermediate Process to collapse intermediate nodes.
  4. Open Settings → Zen Settings and toggle options as needed:
    - Show in-progress title / subtitle, show end title
    - Show user message, previous reply, dynamics during generation
    - Show current turn count and duration, show screen-watching time stats
    - Auto-enter Zen / Auto-exit Zen, Animations

The settings page will synchronously display Today’s Zen, This Week’s Zen, and the current Zen level.

Scenarios and Notes

Who it’s for: Users who run DSH agents in the Web for long periods, wish to reduce interface noise, and want to know how much time they spend “watching the screen” while tasks are running.

Compatibility: The README states it requires a DeepSeek Harness with the Web client module system and has been verified on 0.2.0-rc.2 (see repository docs/issues/261011-dsh-02-compat). Slots used include conversation.view, conversation.session.header.actions, settings.section; when upgrading major DSH versions, verify if the target version’s slot contracts remain consistent.

Permissions and Security: The plugin declares zero permissions; the host-side apply() is empty, and data resides only in the browser’s localStorage. Before installation, it is still recommended to read the source code, cordis.patch.yml, and LICENSE, and confirm consistency with your current dsh process and profile—the DSH ecosystem is “everything is a plugin,” and third-party bundles will patch your Web profile.

Development Side: If you modify the plugin yourself, client-side changes only require a page refresh; host-side changes require a DSH restart. See the Development section in the repository README for build and e2e instructions.

Conclusion

dsh-zen separates “watching the process” and “watching the result” within the DSH Web conversation: The Zen tab provides a quiet surface during agent runtime, while the screen-watching statistics quantify foreground time into daily/weekly Zen values. Combined with hiding intermediate processes, auto-entering/exiting Zen, and Alt+Z, it serves as a suitable client-side enhancement for the default Web workflow.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye