ToolsT-Auto/dsh-ops5.7k
dsh-ops: lower-token file and shell tools for DSH
A low-level tool plugin for DeepSeek Harness. It adds an ops tool family for Native and PTC modes, loads rarely used tools on demand, and can stand in for PowerShell with Bash on Windows.
Install
dsh plugin --profile web add dsh-opsThe --profile value names the profile the plugin is added to. Change it if you run a different one.
At a glance
- Compact file tools
- On-demand tool loading
- ops-ptc mode
- Bash on Windows
- Optional TUI sidebar
What does dsh-ops do?
dsh-ops is a low-level tool plugin for DeepSeek Harness whose stated goal is token efficiency. It adds a family of ops tools for file, document and shell work, and hides part of the official tool set so the model uses the leaner versions.
The footprint is kept small: the component bundle inserts a single dsh-ops row into a profile, and that row's configuration decides which tools are always present, which are loaded dynamically, and whether Bash, file tools or the host PowerShell are replaced.
Core features
- Native mode tools: File tools return compact output with line numbers and clearer error feedback, intended to stop the model from looping on the same error.
- PTC mode tools: Tools return structured JSON so the model writes less TypeScript in PTC mode. The PTC SDK directory lists 18 APIs: 15 file and document tools plus batching, result references and a loader.
- Dynamic tool loading: The plugin turns on DSH's reserved
tools_additionmechanism and discloses tools progressively. Features such as PDF and Word reading or bulk edits across many files are loaded when needed. - ops-ptc mode: An extra mode that inherits the PTC tool surface and can add batching hints as context, without blocking or rewriting the program the model wrote.
- Shell handling: Bash and host shell hiding are configured separately. On Windows,
ops_bashcan replace pwsh, or you can keep the official shell. - OPS sidebar: With dsh-TUI, an optional read-only sidebar shows ops information without taking focus or making extra tool calls.
How to use dsh-ops
- Initialise the target DSH app first, and check that the host is DSH 0.2.2-rc.1 or later.
- Install from the app's plugin marketplace by entering the npm package name
dsh-ops, then enable it. Unless you know the official npm registry is reachable, the README suggests choosing a custom address and entering the Huawei Cloud mirror. - Alternatively, run the npx installer. A profile must be named explicitly:
npx --yes dsh-ops@latest install --profile desktop
npx --yes dsh-ops@latest install --profile web
npx --yes dsh-ops@latest install --profile tui
The desktop profile has to go through the CLI bundled with the desktop app. Adding --dry-run prints the plan without changing the profile.
- Reload when the app prompts you, and restart it if already loaded code was replaced.
- Check the result, or remove the plugin later:
npx --yes dsh-ops@latest status --profile desktop
npx --yes dsh-ops@latest uninstall --profile desktop
- To get the sidebar, enable the
dsh-ops/tuirow in dsh-TUI and restart.
Questions about dsh-ops
How do I install dsh-ops?
Run dsh plugin --profile web add dsh-ops in a terminal. The --profile value names the profile the plugin is added to, so change it if you run a different one.
Is dsh-ops free to use?
The source is public at T-Auto/dsh-ops under the MIT license. Check that license if you plan to use it commercially.
Is dsh-ops still maintained?
The last code push was on Nov 11, 2026, and the latest release is v0.5.4. We last refreshed this data on Nov 12, 2026. DeepSeek Harness changes quickly, so a plugin untouched for months may no longer load.
Has Plugin DSH tested dsh-ops?
No. It is listed from its public repository and we have not installed it. Read the source and recent issues before you run it.
Does dsh-ops remove the official DSH tools?
It hides some of them and publishes ops replacements instead. Bash, file replacement and host PowerShell hiding each have their own switch, and when a replacement is switched off the original tool stays available.
What is the ops-ptc mode that dsh-ops adds?
It is a fifth built-in mode registered by the plugin runtime that inherits the PTC tool surface, with optional batching guidance injected once on the first turn. The global.forceDefaultOpsPtc switch makes it the default mode; it is on by default and can be turned off.
Which DSH versions does dsh-ops support?
The README states that host support starts at DSH 0.2.2-rc.1. The 0.5 series of the plugin no longer supports 0.2.0, 0.2.1 or earlier 0.2.2 previews.