dsh-zidev-toolbox:Install 46 offline deterministic tools with a single command

Introduction

When building agents or workflows in DeepSeek Harness (DSH), a common requirement is: hand JSON, logs, stack traces, paths, and similar inputs to the model, and expect stable, reusable structured results. Models can often write ad-hoc scripts to complete one-off tasks, but output format and boundary behavior (oversized data, truncation, coverage rates) may vary from run to run, and token usage and step counts will fluctuate.

dsh-zidev-toolbox is a bundled collection of workflow-class plugins published by maintainer ax2: with a single install command, it registers four independent plugins — 46 tools in total — in DSH, covering format handling and production diagnostics on the JVM, Python, and Windows sides. All tools run purely locally, with no network access, no install-time scripts, and no binary dependencies; the implementation carries 214 passing tests and is licensed under MIT.

What Is This

dsh-zidev-toolbox (npm package name dsh-zidev-toolbox, version 0.1.0 in the current documentation) is not itself the implementation of the 46 tools, but rather a bundling layer for four DSH plugins: at install time, four bundle lines are inserted in one pass via cordis.patch.yml, while the four plugins each retain independent versioning. The four sub-plugins correspond to ax2’s zi-devtools toolbox implemented in TypeScript for DSH, with contracts including a unified response envelope, budget gating, and boundary behavior.

Do not mix the bundle with the four npm plugins installed individually after bundling, otherwise tools with the same names will be registered twice.

Core Features: Four Plugins and 46 Tools

The following describes each package’s responsibilities as organized in the README (tool counts and test counts per the documentation).

dsh-deterministic-tools (29 tools, 35 tests)

Focused on “format work” such as JSON/YAML/CSV/text/encoding/regex — for example: JSON validation (exact line/column offsets), constrained JSONPath, structured diffs, CSV↔JSON, YAML↔JSON, text statistics, regex capture, base64/hex/URL encoding and decoding, hashing, plus checks for Unicode, number bases, colors, CIDR, JWT, timestamps, and more.

dsh-jvm-doctor (5 tools, 47 tests)

Focused on JVM diagnostics: thread dumps (including Java-level deadlock cycles), GC logs, Maven/Gradle dependency conflicts, exception chains (reconstructing ... N more), and Spring configuration diffs (payload sanitized before processing).

dsh-py-doctor (6 tools, 75 tests)

Focused on Python diagnostics: traceback root causes, pytest summaries, Django migrations/N+1/checks, and Celery reports; parse results carry coverage information.

dsh-win-native (6 tools, 57 tests)

Focused on the Windows environment: encoding detection and conversion (GBK/Big5/Shift-JIS confidence scores), Windows path validity, netstat interpretation, read-only disk inspection, and duplicate file detection.

Design Points (relative to “having the model compute it on the fly”)

The value emphasized in the documentation is not that “the model can’t compute it,” but rather: fixed implementations raise the probability of getting it right in one pass; identical inputs yield identical outputs; over-budget inputs are rejected (INPUT_TOO_LARGE); text truncation is done by code point with a truncated marker; parsing coverage and unrecognized lines are reported explicitly; some tools declare their capability boundaries (e.g., jwt_inspect does not verify signatures, netstat_parse does not fabricate process names or UDP states absent from the text); responses use a { result, meta } structure for downstream step consumption.

Among the 46 tools, only dir_usage and file_duplicates access the disk read-only (with file count/byte budgets, skipping and reporting symlinks and junctions, without following symbolic links); the rest are pure text/byte analysis and will not read data on their own if it is not provided. No network requests, no binary installation, no install-time scripts.

Installation and Activation

The Node engine requirement is >=20.10 (from package.json).

Installation for the web profile:

dsh plugin --profile web add dsh-zidev-toolbox

Restart the application after installation (the bundle list is read at startup). For the desktop edition, replace web with desktop:

dsh plugin --profile desktop add dsh-zidev-toolbox

For offline or pinned-version scenarios, a Release prebuilt tarball can be used (the example in the documentation uses latest):

dsh plugin --profile web add https://github.com/ax2/dsh-zidev-toolbox/releases/latest/download/dsh-zidev-toolbox.tgz

The four sub-plugins can also each be installed individually from GitHub via releases/latest/download/<repo>.tgz; choose either the bundle or the individual packages, but not both, to avoid duplicate registration.

Token and Tool Trimming

Tool schemas are sent with every request; after installation, even unused tools consume input tokens. README measurements: a clean headless base has roughly 75 tool names with about 11,931 inputTokens on first use; with these four plugins added, roughly 121 tool names with about 19,608 inputTokens (+7,677). One-off small tasks may actually end up costing more tokens overall than letting the model write its own scripts; it is better suited to scenarios with large inputs and small outputs, or where stable parsing and boundary semantics are needed.

If only a common subset is needed, entries can be overridden per plugin id in the profile. For example, keeping only 5 tools from deterministic-tools (example from the documentation):

# profiles/<name>/cordis.patch.yml
- id: deterministic-tools
  config:
    only: [json_format, json_validate, json_query, text_diff, csv_to_json]
    toolPrefix: zi

Typical Usage

After installation and restart, paste your question or a log snippet into the conversation, and the model will select the appropriate tool to call. The README provides several expected behaviors for reference.

Python Traceback

Example input:

Traceback (most recent call last):
  File "svc.py", line 42, in handle
KeyError: 'user_id'

The model can call python_traceback and obtain structured fields (measured outputs in the documentation include exception_type, exception_message, deepest_frame, cause_hints, coverage, etc.).

Other Common Phrasings Mapped to Tools

You say It calls You get
Validate {"a":1,}, I need exact line/column json_validate line/column/position + error text
Is the path C:\temp\CON.txt usable? path_inspect e.g., reserved_name (error) and positional info
Paste a jstack, is there a deadlock? java_thread_dump deadlock cycles, lock contention queues, state histograms, etc.
This is a GC log, what’s the p99 pause? java_gc_log pause quantiles, Young/Full breakdowns, etc.
Who is listening on 8080 in netstat -ano? netstat_parse listening entries and PID/process names (does not fabricate what’s absent from the text)
Which directory on drive D is taking the most space? dir_usage total bytes, largest file, extension histogram (read-only)

Suitable Scenarios and Notes

Suitable for: stably handling JSON/YAML/CSV/encoding/regex within DSH workflows; parsing JVM thread dumps, GC logs, and build dependency conflicts; Python tracebacks, pytest, Django, and Celery reports; Windows paths, netstat, encoding, and read-only disk inspection — and wanting reproducible results with clear boundary semantics.

Notes:

  1. The plugin runs under the permissions of the current dsh process; before installing, review the GitHub source code and the MIT license yourself to confirm compliance with your security and compliance requirements.
  2. Do not mix-install the bundle and the four sub-plugins.
  3. The community directory site (SkillHub) has no official affiliation with DeepSeek or High-Flyer; the DSH ecosystem philosophy is “everything is a plugin,” and the install commands in this article follow the repository README.
  4. Sub-plugin npm packages: dsh-deterministic-tools, dsh-jvm-doctor, dsh-py-doctor, dsh-win-native, each with an independent repository and Release tarball.

Links

  • Community directory page: https://www.skillhub.cn/plugins/ax2/dsh-zidev-toolbox
  • GitHub repository: https://github.com/ax2/dsh-zidev-toolbox
  • npm: https://www.npmjs.com/package/dsh-zidev-toolbox
羽毛球分组比赛记分
小程序二维码

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

Xiaoye