dsh-healthcheck: Read-only Health Check for DSH Session Store

Preface

When running long tasks in DeepSeek Harness (DSH), session logs accumulate continuously. Oversized sessions can easily trigger OOM during long-running tasks; abnormal process exits may also leave unclosed turns (crash tails). Upon recovery, although dsh attempts to repair them, you may not be aware that a problem has occurred. Manually digging through directories and checking file sizes is slow and prone to missing early warning signs such as event count explosions.

Below we introduce the community plugin dsh-healthcheck (maintained by neufagents), which scans the entire session library on a read-only basis and performs deep checks on individual sessions, helping you detect anomalies before major issues arise.

What Is This

dsh-healthcheck is a runtime health-check plugin for DSH: it performs a summary scan of the session library and can check a specified session for crash-tearing at the tail, pairing between tool-calls and results, and more. It does not modify any bytes and is usable with zero configuration.

SkillHub and similar entries are independent community directories and have no official affiliation with DeepSeek / High-Flyer; it is still recommended to review the source code and license yourself before installing the plugin.

Core Features

The plugin exposes only one tool: health_check.

Library-wide scan (no arguments)

Calling health_check (with no arguments) scans the entire session library and outputs, for example:

  • Summary: number of sessions, total size, total event count
  • The largest sessions by size
  • Oversized warnings: sessions ≥10 MB are flagged as watch, ≥30 MB as danger (a common precursor to OOM in long tasks)
  • Event count warnings: ≥3000 flagged as watch, ≥8000 as danger

Deep check of a single session

health_check session_id="<id>"

Performs an in-depth check of the specified session log, including:

  • Tail balance: if an unclosed turn exists, it usually indicates a crash tail; dsh automatically repairs this on resume—this only informs you that it occurred
  • tool-call / result pairing status
  • Event type distribution

All of the above operations are read-only and will not alter local session data.

Installation and Activation

Installation requires pnpm to be available on your PATH (dsh plugin installation forwards to pnpm). The command given in the official README is:

# requires pnpm on PATH (dsh plugin forwards to pnpm)
dsh plugin --profile web add github:neufagents/dsh-healthcheck

After installation, restart dsh, then let your agent run the check.

Typical Usage

After restarting, you can naturally ask the agent in plain language to call the plugin. The README example:

run a health check on my dsh sessions

When you need to monitor a specific session, have the agent call health_check with a session_id (the exact parameter form depends on how the agent passes arguments; the semantics are session_id="<id>").

Compatibility and Version Notes

  • Development was tested against dsh 0.1.5-rc.2 (developer preview); the rc line changes rapidly—if issues arise, open an issue in the repository.
  • Use v0.1.1 or later: v0.1.0 shipped raw TypeScript inside the package, and Node would report ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING when loading from node_modules; starting from v0.1.1, code is compiled to dist/ via tsc before publishing.

Peer dependencies (see package.json) include @deepseek-ai/cordis and @deepseek-ai/dsh-tools, and should roughly match the current dsh ecosystem versions.

Use Cases and Caveats

Who it’s for

  • Users who frequently run long tasks with steadily growing session sizes and event counts
  • Users who suspect a crash tail was left by an abnormal exit and want to confirm the log state before resuming
  • Users who want to perform a read-only library-wide health check before modifying or deleting files

Important notes

  • The plugin reads session paths under the current dsh process’s permissions; you should review the repository source code and the MIT license before installation to confirm it meets your security policy.
  • The warning thresholds (10/30 MB, 3k/8k events) come from the plugin’s built-in logic; the materials do not describe any configuration-file-based customization. If customization is needed, refer to subsequent repository documentation or source code.

Conclusion

dsh-healthcheck consolidates two kinds of silent risks—“sessions growing too large” and “crash-tearing tails”—into a single read-only tool health_check: first scan the whole library for totals and top sessions, then perform tail and pairing checks on a specific session_id as needed. Zero configuration, no data modification—suitable as part of an admin-security operational habit.

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

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

Xiaoye