dsh-coding: A Stage-Gated Coding Agent for DeepSeek Harness
ygzhang-lab/dsh-coding
A DSH plugin that turns long coding tasks into a gated five-stage Codex contract, with a Pro model planning and isolated Flash sub-agents implementing and verifying to balance delivery quality and token cost.
dsh-coding is a coding agent plugin running on DeepSeek Harness that splits long coding tasks into five stages: requirements, plan, implement, verify and deliver. It targets the context loss and repeated rework of pure chat-style programming by letting the Pro model only analyze requirements and split tasks, while isolated Flash sub-agents handle editing and checking. Stage gates are decided on facts, tools are trimmed per stage, and handoff records persist with bounds, balancing delivery quality and token cost under the MIT license.
How to Install
dsh plugin --profile web add dsh-coding- Category
- Skills & Agents
- Platform
- DeepSeek Harness
- Author
- ygzhang-lab
- Distribution
- Plugin
dsh-coding Key Features
dsh-coding Repo Summary
What Does It Do?
DSH Coding is a DSH plugin for DeepSeek Harness that turns long coding tasks into an engineered, stage-gated workflow. It solves the context loss and repeated rework of pure chat-style programming: the Pro model only analyzes requirements and splits tasks, while isolated Flash sub-agents do the editing and checking. The plugin advances through a Codex five-stage contract (requirements, plan, implement, verify, deliver), and every delivery must pass a gate, balancing delivery quality with token cost. It is maintained by ygzhang-lab under the MIT license and was last updated in 2026-11.
Core Features
- Plugin-decided stage gates: the model can only request advancement, and the plugin decides based on facts (read-only observation done, task list present, edits written to disk, latest verification passed), returning the current stage, allowed stages and remediation when rejected.
- Two-layer gating instead of prompt discipline: tool pre-execution and the final boundary share one check function, so the layers never drift, and the model self-corrects after seeing the error.
- Tools physically trimmed per stage: during implementation the main agent keeps only delegation, handoff, todo and shell tools; editing tools are removed so file changes must go through a sub-agent, and even commands are withheld at delivery.
- Isolated sub-agents with model split: planner, implement and verify workers each have their own context, tool whitelist and routing, with Pro exploring and splitting while Flash edits and checks; missing or invalid routes fail loudly instead of silently falling back to the main model.
- Bounded handoff instead of conversation memory: goals, constraints, acceptance criteria, decisions and tasks are written into a handoff record persisted with checkpoints, recoverable after restarts and page turns, and trimmed per role with limits when injected.
- Semantic verification with loop protection: commands and package managers are auto-detected from the project manifest, command-level timeouts terminate and count as failures, failures are counted by signature, and exhaustion allows only one blocked delivery.
How to Use This Plugin?
After enabling it in DSH, simply state your coding requirement and the plugin starts from the requirements stage. Each round produces a session control card, and each Coding tool call shows a stage capsule, all replayed from persistent events so refreshes and reopens show the real stage and verification state. To adjust behavior, disable the mandatory planner step or change verification timeout and retry limits in configuration; when a task list exceeds three items (multi-file changes), the planner step is mandatory and implementation cannot start without a dispatched plan in the session.
How to Troubleshoot This Plugin?
When an advancement request is rejected, the returned reason gives the current stage, allowed stages and remediation, so complete the read-only observation, task list or edits and retry. Verification failures accumulate by signature, and once the limit is reached only one blocked delivery is allowed until a later verification passes and resets the count. If a sub-agent route is missing, malformed or the model is unavailable, the plugin fails directly with the field name and available models, so fix the routing configuration accordingly.
Sources
- GitHub plugin folderygzhang-lab/dsh-coding
- READMEygzhang-lab/dsh-coding README
This page is an independent rewrite of the repository README. For authoritative documentation and the latest changes, refer to the GitHub repository. Plugins are third-party code that runs on your machine once installed; inclusion does not imply endorsement — review the source before installing.
DSH Plugin Hub FAQ
