DSH V4.1 Pro: An Evidence-First, Engineering-Grade Reasoning Enhancement Suite

Preface

DeepSeek Harness (DSH) brings the “everything is a plugin” philosophy to agent development, but in engineering scenarios, several typical challenges persist: lack of verifiable evidence for output results, limited context memory, difficulty controlling reasoning paths during complex tasks, and the absence of acceptance and retrospective mechanisms before delivery. V4.1 Pro addresses these issues with a complete engineering-grade reasoning enhancement solution. Guided by the “Evidence-first” principle, it integrates acceptance, calibration, retrospectives, and code shrinking into a reusable plugin suite.

What Is This

chengzhouSAMA/dsh-v41-pro is a plugin suite for DeepSeek Harness, version 1.12.0. It does not train models or alter underlying model capabilities. Instead, it constrains and guides the reasoning process through 17 host modules, a client-side thinking menu, hierarchical reasoning orchestration, and an engineering loop (acceptance → calibration → retro → shrink). It also provides language and fiction Skills, a long-form novel workspace, and an all-modality media toolkit.

Core Capabilities

1. Thinking Modes & Reasoning Max 3.0

In DSH’s model menu, select Thinking mode, or send a command to switch thinking modes:

  • /thinking auto: Divergent understanding first, then focused execution; backtracks up to two times after two consecutive tool failures
  • /thinking divergent: Fixed divergent mode; requests at least low level
  • /thinking focused: Fixed focused mode; requests at least high level
  • /thinking thorough: Fixed thorough mode; enforces max; requires root cause, implicit assumptions, counterexamples, and cross-validation
  • /thinking off: Disables mode control for this session and restores changes made by this module
  • /thinking status: Displays current mode and phase

The thorough mode requires the model to explicitly declare max; otherwise it throws an error and preserves the input, without downgrading to high/xhigh or a custom top level.

Reasoning Max 3.0 is a reasoning orchestration layer embedded in the thinking module, invoked via the reasoning_max tool and the /reasoning-max command. It does not alter model weights or affect single-response capability. Key features:

  • Hierarchical computation: Selects low/medium/high based on question length and keywords. low uses one candidate plus a judge; returns when confidence ≥ 0.7. medium and high add parallel candidates, step trees, and synthesis.
  • Multi-path: Generates four perspectives in parallel (independent solution, alternative paths, counterexamples & boundaries, practical verification), then passes them to an independent judge.
  • MCTS: Uses UCT selection, parallel expansion, step-level PRM scoring, and path value backpropagation; prunes low-scoring branches; terminates search on confidence, plateau, budget, or iteration cap.
  • PRM & Judging: LLM-as-judge samples are averaged with standard deviation; the final review takes the strictest verdict, average confidence, and deduplicated issues.
  • Budget & Routing: Based on token estimation and wall-clock budget; multi-model routing uses UCB1+ε, with rewards written to router.json.
  • RL Logging: Each solve appends to rl.jsonl and audit.jsonl; /reasoning-max export exports prm_steps.jsonl, preference_pairs.jsonl, sft_best.jsonl.
  • Relationship to DSH effort: low/medium/high are orchestration budgets, not DSH reasoning tiers; actual invocations map to the model’s declared levels (low→≥low, medium→≥high, high→max; otherwise uses the highest declared level).
  • Honest boundaries: PRM is a noisy LLM judge proxy; token counts are estimates; the RL layer only learns routing and exports data—it does not fine-tune the model; a single solve involves multiple model calls and is not suitable for simple questions.

The state directory for Reasoning Max 3.0 is $DSH_HOME/v41pro/reasoning-max/.

2. Engineering Loop: acceptance → calibration → retro → shrink

Module Capability
acceptance Executable acceptance criteria: cmd checks exit codes via a real shell, file checks existence and non-emptiness, manual requires human intervention; pending items escalate from reminders to hard reminders at turn end, then to ⚠ unverified banners in the response
calibration forecast records probability and expected duration before work begins; settle closes after work and reports Brier score, overconfidence, and duration MAE
retro Records what happened, verifiable root causes, and lessons learned; subsequent tasks can recall reusable rules via keywords
shrink After code is written, each file requires a remove/merge/keep decision with justification; line counts on disk are recorded

Available tools and commands: acceptance, forecast, settle, retro, rules, code_shrink; corresponding commands are /accept, /calibration, /rules, /shrink.

3. 17 Host Modules

Module Capability
escalator Handles repeated calls, consecutive failures, identical cross-step failures, duplicate edits, and drift; only suggests or temporarily switches models
ledger Persists goals, edits, real command results, and failure summaries; versioned, serialized, atomic writes
verifier pro_verify and end-of-turn gating; distinguishes failure, timeout, zero test runs, and valid passes
acceptance Executable acceptance criteria and end-of-turn gating
tempo Step, wall-clock, and tool-failure budgets for limiting automatic interventions
forker Parallel independent proposals; the main agent selects only one
critic Independent read-only, fail-closed review; unexecuted reviews do not report as passed
cartographer Rebuilds file index and unverified evidence state from real reads/writes, used for reconstruction after session compaction
language Language skills
fiction Fiction skills
novel Long-form novel workspace
thinking Thinking mode menu and orchestration
ethical-conduct Persistent code of conduct
omni All-modality media tools (video/audio/image)

4. Client-Side Thinking Menu

After installation, Thinking mode is available in DSH’s model menu. If the menu does not appear, refresh the existing DSH page; do not start a second server. The session log retains mode state, and divergent/focused/auto modes preserve the user’s selected high-level effort.

Installation & Enablement

Requirements: DSH 0.2.2-rc.5 (currently verified version), Node.js ≥20; installation requires pnpm.

git clone https://github.com/chengzhouSAMA/dsh-v41-pro.git
cd dsh-v41-pro
node install.mjs --dry-run     # Preview configuration changes
node install.mjs --install     # Add link dependency and run pnpm install

Alternatively, select this directory via Plugins → Add plugin in DSH. Do not use both the command and menu path simultaneously. install.mjs only modifies the profile’s package.json and is reversible:

node install.mjs --uninstall

If new patch lines were added, restart DSH (or reload the host); if only existing module implementations were modified, DSH’s hot-reload is usually sufficient. If the menu does not appear, refresh the page; do not start a second server.

Typical Usage

  1. Find Thinking mode in DSH’s model menu and select thorough, or run /thinking thorough; the model will be forced to use max, requiring root cause, implicit assumptions, counterexamples, and cross-validation.
  2. For finer-grained reasoning, invoke Reasoning Max 3.0 via the /reasoning-max command; select low/medium/high based on problem complexity and budget, or use the default routing.
  3. Before starting a task, use forecast in /calibration to record probability and expected duration; after completion, use settle to close and review calibration metrics.
  4. Before each delivery, declare executable acceptance criteria (cmd, file, manual) via /accept; pending items may escalate to hard reminders or ⚠ unverified banners at turn end.
  5. After completion, use /retro to log events, root causes, and lessons learned; subsequent tasks can recall rules via keywords with /rules.
  6. After code is written, use /shrink to make remove/merge/keep decisions for each file with justification; line counts are measured on disk.

Use Cases & Caveats

Suitable for agent development scenarios requiring verifiable evidence, recoverable memory, controllable reasoning paths, and engineering retrospective capabilities.

Note: The plugin runs with the current DSH process permissions; review the source code and license before installation.

Conclusion

Through evidence-first design, hierarchical reasoning orchestration, and a complete engineering loop, V4.1 Pro elevates DeepSeek Harness from a “conversational” tool to an “engineering-grade” one, making it well-suited for developers who want to introduce verifiable workflows into high-reliability tasks.

  • Catalog page: https://www.skillhub.cn/plugins/chengzhouSAMA/dsh-v41-pro
  • GitHub: https://github.com/chengzhouSAMA/dsh-v41-pro
羽毛球分组比赛记分
小程序二维码

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

Xiaoye