Introduction¶
The built-in standard preset in DeepSeek Harness (DSH) is a full-featured coding agent, but its lengthy system prompt consumes a significant portion of the context budget in tokens. During extended conversations or when handling large volumes of tasks, this becomes a bottleneck. dsh-focus-preset tightens several configurations on top of standard, bringing the preset closer to “a focused executor” while saving tokens.
What This Plugin Is¶
dsh-focus-preset provides a Focus Agent preset for DSH—a streamlined variant of the standard preset. Published by maintainer jiesou, it falls under the workflow category. The preset id is focus, displayed as Focus in the Web preset selector (order: 10, placed after standard).
Core value: the system prompt accounts for only about 586 tokens—roughly half of the standard preset and twice that of the minimal preset. The saved context budget is reserved for the actual work.
Core Features¶
The Focus preset applies the following tightening on top of the standard preset:
-
Shorter persona
Replaces the standard preset’s long prompt with a concise system prompt prefix, while retaining safety boundaries, tool usage discipline, and parallelism principles. -
Spawn-only delegation
Thesubagenttool is mounted with the spawn backend only;tool-subagent-forkis not mounted—there is exactly one delegation form. -
No background tasks
Bothtool-bashandtool-pwshare mounted withenableRunInBackground: false, and thejobstool is not mounted at all—one thing at a time, running in the foreground. -
No str-replace-editor
File modifications go through thewrite/edittools only; no third editing entry point is added. -
Compaction and tool result pruning unchanged
compaction-basic, the/compactcommand, andtool-result-pruner(thresholds at 8192/4096/1024) remain identical to the standard preset.
The preset itself is a composition layer: cordis.patch.yml registers a preset with id: focus and order: 10 via @deepseek-ai/dsh-agent-preset. Internally, it is a complete agent-plane composition in the standard shape (persona / shell / filesystem / skill / goal / compaction / delegation / todo / ask-user / web). The host-side registry, sandboxing, approval, persistence, and model routing are still provided by the profile’s host composition; the preset does not own them.
Installation & Activation¶
Install from npm (recommended):
dsh plugin --profile web add @jiesou/dsh-focus-preset
Or install from GitHub:
dsh plugin --profile web add github:jiesou/dsh-focus-preset
This is a pure composition-layer (bundle) plugin with no runtime code. After adding it to the profile’s layer stack, restart dsh for it to take effect.
Once installed, the preset id is focus. To make it the default preset for new sessions, modify one line in the profile’s cordis.patch.yml:
- id: agent-preset-registry
name: "@deepseek-ai/dsh-agent-preset-registry"
config:
default: standard
selectedDefault: focus
If you need to modify the preset content, first uninstall the npm package, then clone the repository locally and install by path:
dsh plugin --profile web remove @jiesou/dsh-focus-preset
git clone https://github.com/jiesou/dsh-focus-preset.git
cd dsh-focus-preset
dsh plugin --profile web add /path/to/dsh-focus-preset
Restart dsh after making changes for them to take effect.
Compatibility¶
The plugin declares its requirements in engines.dsh and dsh.compatibility within package.json:
- DSH:
>=0.2.0-rc.2 <0.3 - Node.js:
^22.19.0 || >=24.0.0 - Profile:
web/headless
The lower bound is not a preference: starting from 0.2.0-rc.2, agent presets follow the “preset row + entry-local realm” composition contract. Service rows must land in a group with isolate; otherwise they are published to the root realm and conflict with other presets. Earlier versions of dsh do not recognize this composition.
Use Cases¶
Ideal for coding scenarios that require long-running conversations or have tight context budgets. If your conversations need to persist for extended periods, or you need to process a large number of files in one go, the Focus preset can save tokens and allocate more of the context budget to actual work.
Note: the plugin runs with the current dsh process privileges. Review the source code and license before installation.
Conclusion¶
The Focus preset reduces token consumption by tightening configurations while preserving core capabilities. If you encounter context budget constraints while using DSH, give this preset a try.
- Plugin directory: https://www.skillhub.cn/plugins/jiesou/dsh-focus-preset
- GitHub repository: https://github.com/jiesou/dsh-focus-preset