dsh-code-prompt: Claude Code-Style Prompt Rules for DeepSeek Harness
mashago/dsh-code-prompt
A DSH plugin that injects Claude-Code-style engineering rules and tool descriptions into DeepSeek Harness, with optional tool-result shaping and environment context to cut redundant edits and token use.
dsh-code-prompt is a prompt-tuning plugin for DeepSeek Harness that brings Claude Code-style engineering rules, tool descriptions, and environment context into a session. It targets models that make oversized edits, issue verbose tool calls, and lack environment awareness, shaping what the model sees without touching tool implementations, parameter schemas, or sandbox behavior. It offers nine global rules, description replacement for five tools, optional exit-code front-loading and environment injection, with only the first two switches on by default and PowerShell-specific text on Windows.
How to Install
dsh plugin --profile <your-profile> add dsh-code-promptReplace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.
- Category
- Skills & Agents
- Platform
- DSH Plugin
- Author
- mashago
- Distribution
- Plugin
dsh-code-prompt Key Features
dsh-code-prompt Repo Summary
What Does It Do?
It is a DSH plugin for DeepSeek Harness that brings Claude-Code-style engineering rules, tool descriptions, and environment context into the harness. It solves the problem of models making oversized edits, issuing verbose tool calls, and lacking environment awareness, letting you shape what the model sees without touching tool implementations, parameter schemas, sandbox behavior, or filesystem semantics. Maintained by mashago under the MIT license and written in JavaScript, it ships as a DSH bundle with no runtime dependencies beyond DSH itself.
Core Features
- Engineering rules (A1): nine global rules covering minimal change, no one-off abstraction, no impossible-scenario defenses, verify before done, diagnose before retry, parallel independent calls, confirm destructive actions, concise output, and edit over rewrite; on by default.
- Tool description replacement (A2): replaces the model-facing descriptions of bash, pwsh, read, edit, and write, on by default, with per-tool custom text supported.
- Result shaping (B2): front-loads shell exit codes and adds an edit no-match hint, off by default.
- Environment context (B3): injects platform, OS version, shell, and git repository facts into the session context, off by default.
- Measured impact: the README's comparison shows A1+A2 cutting average added lines from 4.8 to 2.8 while reducing tool calls, input and output tokens, and duration, with assertions still passing 36/36.
How to Use This Plugin?
After enabling it in DSH, the bundle installs one profile row with four switches: rules, toolDescriptions, toolResults, and environment, with only the first two on by default. Set enabled to false to turn the whole bundle off; customize a tool's description by writing replacement text under descriptions keyed by tool name; enable result shaping by setting toolResults to true or passing an object with editNoMatch and shellExitFront. On Windows, DSH registers pwsh instead of bash, so the plugin ships a PowerShell-specific description and front-loads pwsh exit codes; without PowerShell 7 it falls back to Windows PowerShell 5.1, where you chain commands with semicolons and check the exit-code variable.
How to Troubleshoot This Plugin?
Using && or || under Windows PowerShell 5.1 fails because that version lacks those operators; chain commands with semicolons and check the exit-code variable instead. If the Shell line in the environment context names something unexpected, note that it reports the DSH tool name rather than the underlying executable, which is expected behavior.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: mashago/dsh-code-prompt. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
