Preface¶
When using opencode-go’s deepseek-v4-flash in DeepSeek Harness (DSH), the common practice is to start a new session and submit tasks directly. Although the Flash model itself is not weak, without proper guidance, it can easily fall into what the README describes as “ghost mode”—shallow thinking, premature action, and inconsistent delivery quality.
Manually copying the preset file to ~/.dsh/.agent-presets can solve the problem, but every upgrade requires you to manually check and modify files based on the repository, a repetitive and error-prone process. dsh-router-flash standardizes this as a DSH bundle plugin: after installation via dsh plugin add, it automatically syncs the router-flash preset, and a DSH restart makes it effective.
This article introduces the plugin’s positioning, capabilities, and complete activation steps.
What This Is¶
dsh-router-flash is a DSH agent preset distribution package maintained by xiaoxianyu-office, categorized as a workflow, with approximately 13 stars on its GitHub repository.
It adapts the optimal guidance (w7 persona + deep thinking anchors) established for Flash in the dsh-router-standard research to the deepseek-v4-flash model of the opencode-go provider. By adding the five anchors—“categorization + review + deviation correction + deep thinking + decision closure”—Flash can switch from the default “ghost mode” to what the README calls “god mode”—focusing more on deep planning and high-quality delivery.
Core Features¶
Automatic Preset Installation¶
The plugin runs as a DSH bundle. The host synchronizes the preset/ directory within the package to ~/.dsh/.agent-presets/router-flash at startup. The synchronization uses idempotent content comparison: no changes are written if unchanged; during upgrades, changed files in the package overwrite the target; files in the target directory not present in the package are not deleted.
Static Merge Guidance, Adapted for dsh rc.6¶
The three mechanisms relied upon by the original dsh-router-standard fail in dsh rc.6:
ctx.on('session/event')injection—session/eventis session-scoped, and agent-plane presets cannot receive it.target.inbox.append—the agent object does not have an.inboxproperty.- During assembly,
session.eventsdoes not yet contain user/message—a timing issue.
This preset fixes the issue by statically merging the guidance into the WEAK_FLASH persona, avoiding dynamic injection and remaining effective for fixed tasks.
Model Routing and Scope¶
- After matching
isFlashModel, it always enters weak mode (the author’s tests show w7 is optimal). - Non-Flash models (e.g., pro) are unaffected and continue using the original keyword-based classification logic.
- Complex build tasks (large projects, development from scratch) particularly benefit from the deep thinking anchors.
Cross-Platform Compatibility¶
The preset works across all three platforms, and DSH automatically selects the shell tool:
| System | Shell | Status |
|---|---|---|
| Linux | bash | Tested |
| macOS | bash | Auto-adapted |
| Windows | pwsh (PowerShell) | Auto-adapted |
agent.cordis.yml already includes a process.platform === 'win32' check, automatically disabling bash and enabling pwsh on Windows.
Installation and Activation¶
Requires DeepSeek Harness rc.6+ and the deepseek-v4-flash model (https://opencode.ai/zen/go/v1) from the opencode-go provider.
1. Install the Plugin¶
dsh plugin --profile web add -w github:xiaoxianyu-office/dsh-router-flash#v0.1.0
After installation, restart DSH. The router-flash preset will be automatically installed to ~/.dsh/.agent-presets/router-flash.
2. Configure Default Preset and Model¶
Edit ~/.dsh/settings.yaml:
agent-default-model:
provider: opencode-go
model: deepseek-v4-flash
reasoningEffort: max
agent-presets:
default: router-flash
Restart DSH again. New sessions will use the router-flash preset and deepseek-v4-flash model.
3. Upgrade¶
Repeat the add command with the latest tag; do not use update to select a Git reference:
dsh plugin --profile web add -w github:xiaoxianyu-office/dsh-router-flash#v0.1.0
After restarting DSH, changed preset files in the package will automatically overwrite the contents in ~/.dsh/.agent-presets/router-flash.
4. Uninstall¶
dsh plugin --profile web remove dsh-router-flash
Restart DSH after uninstalling. Note: The preset files installed via the bundle (~/.dsh/.agent-presets/router-flash) will remain; to remove them completely, manually delete the directory and remove the agent-presets.default reference in settings.yaml.
Typical Usage¶
After the steps above, new sessions will automatically load the router-flash preset and deepseek-v4-flash model. Simply submit tasks directly, and the persona will automatically inject the five guidance anchors.
After the session starts, the model’s system prompt should include a segment similar to:
You are a helpful assistant.
Before acting, decide the task type (build or fix)...
Before acting, briefly review what you have already done...
Do not run environment checks (echo, whoami, uname...)...
Think deeply about the architecture, edge cases...
Produce when your information is complete...
You can use the above content to confirm whether the preset is effective.
Use Cases and Notes¶
Who Is This For?
- Developers already using opencode-go’s
deepseek-v4-flashin DSH who want to consistently achieve deep planning and high-quality delivery. - Users who do not want to manually maintain the
~/.dsh/.agent-presets/router-flashdirectory and prefer one-click preset synchronization via a bundle.
Before Use
- This preset is designed specifically for Flash; other models use different routing logic—do not assume consistent behavior.
- The plugin runs with the current DSH process permissions; the host uses a
danger-full-accesspolicy to write to~/.dsh/.agent-presets. Before installation, read the GitHub repository source code and MIT License. - The DSH community plugin directory SkillHub is an independent site with no official affiliation to DeepSeek or High-Flyer; follow the installation commands in the repository README.
Summary¶
dsh-router-flash transforms the maintenance of the Flash “god mode” preset from manual copying to standard bundle distribution: install, configure, and restart in three steps to equip deepseek-v4-flash with the w7 persona and deep thinking anchors. If you are already using Flash in DSH but experiencing inconsistent output quality, follow the steps in this article to activate and verify the system prompt.
- Directory: https://www.skillhub.cn/plugins/xiaoxianyu-office/dsh-router-flash
- GitHub: https://github.com/xiaoxianyu-office/dsh-router-flash