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 leastlowlevel/thinking focused: Fixed focused mode; requests at leasthighlevel/thinking thorough: Fixed thorough mode; enforcesmax; 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/highbased on question length and keywords.lowuses one candidate plus a judge; returns when confidence ≥ 0.7.mediumandhighadd 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.jsonlandaudit.jsonl;/reasoning-max exportexportsprm_steps.jsonl,preference_pairs.jsonl,sft_best.jsonl. - Relationship to DSH effort:
low/medium/highare 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¶
- Find Thinking mode in DSH’s model menu and select
thorough, or run/thinking thorough; the model will be forced to usemax, requiring root cause, implicit assumptions, counterexamples, and cross-validation. - For finer-grained reasoning, invoke Reasoning Max 3.0 via the
/reasoning-maxcommand; selectlow/medium/highbased on problem complexity and budget, or use the default routing. - Before starting a task, use
forecastin/calibrationto record probability and expected duration; after completion, usesettleto close and review calibration metrics. - Before each delivery, declare executable acceptance criteria (cmd, file, manual) via
/accept; pending items may escalate to hard reminders or⚠ unverifiedbanners at turn end. - After completion, use
/retroto log events, root causes, and lessons learned; subsequent tasks can recall rules via keywords with/rules. - After code is written, use
/shrinkto 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