Introduction¶
When running multi-provider, multi-model setups in DSH (DeepSeek Harness), the context window, max output, input modalities, and thinking levels are often scattered across config files or engine defaults. Changing one requires digging through settings.yaml or checking documentation, and it’s inconvenient to compare settings model by model. The community plugin dsh-model-tweaks (maintainer: AkotaP, category: model inference) adds a Model Capabilities page in the Web “Settings”, providing a card-style interface to manage these fields, along with a customizable global preset list. Below we introduce its positioning, capabilities, and installation/usage. For authoritative information, refer to the GitHub repository README. The plugin requires DSH 0.1.7-rc.2 or above (0.1.x); the current npm package version is 0.1.0, licensed under MIT.
What Is This¶
dsh-model-tweaks is a DSH Web plugin: it adds a Model Capabilities entry under Settings, used to manage each model’s context window, max output, input modalities, thinking levels, and the plugin-managed global presets. It does not replace DSH’s model registration flow, but builds on top of existing provider/model lists to centralize adjustable inference-related capabilities on a single page, using “draft + Apply” to avoid accidental writes.
Community catalog page: https://www.skillhub.cn/plugins/AkotaP/dsh-model-tweaks (an independent site, with no official affiliation with DeepSeek / High-Flyer).
Core Features¶
Model Capabilities Page¶
Location: Settings → Model Capabilities. Two tabs within the page: Model Capabilities / Presets.
The Model Capabilities tab uses a two-level collapsible card layout: click a provider card title to expand that group; click a model card title to select it and expand the capability editing area within the card, then click again to collapse it.
Four fields can be edited per model:
| Field | Description |
|---|---|
| Context window | Linked to preset or custom value |
| Max output | Linked to preset or custom value |
| Input modality | Only Text / Image (DSH has no audio/video) |
| Thinking level | Dropdown: Default / Global / named combos / Custom… |
Draft + Apply: Only when you click Apply in that model’s editing area will the change be written to llm-pi-ai in settings.yaml. Reset to Default only changes the draft; you still need to click Apply for it to be persisted.
Selecting Default means the field is deleted (not written as null/0/empty object); fallback behavior is determined by the DSH engine. After Apply, the dropdown shows the actual effective value.
Presets Page¶
The Presets page manages four plugin-managed lists, also in a card layout; each card has its own Apply button at the bottom (also draft mode; changes are not persisted immediately).
| Card | Built-in content |
|---|---|
| Context window | Default, 8K, 16K, 32K, 64K, 128K, 256K, 512K, 1M (decimal 8000…1000000) |
| Max output | Default, 4K, 8K, 16K, 32K, 64K, 128K, 256K |
| Thinking levels | off, minimal, low, medium, high, xhigh, max (can add/edit/delete, reorder up/down) |
| Thinking combos | DeepSeek · OpenAI Standard · Simple (all start with off; can create/edit/delete/reuse across models) |
Presets are persisted at: {DSH_HOME}/dsh-model-tweaks/presets.json. If the file doesn’t exist or is corrupted, it falls back to built-in defaults without errors. The Restore Default Presets button at the bottom of the page returns to the built-in list in one click. One Apply submits the entire preset document (partial saves of the same document are not allowed).
Installation and Activation¶
Installation modifies the profile config under %USERPROFILE%\.dsh and requires restarting DSH (restarting will interrupt running sessions). The plugin runs with the current DSH process’s permissions; please review the source code and MIT license yourself before installing.
Method 1: Plugin Page
In the sidebar, go to Plugins → Add Plugin, and enter the repository URL https://github.com/AkotaP/dsh-model-tweaks (the same field also accepts the npm package name dsh-model-tweaks, an absolute local directory path, or a tarball). DSH will first probe the repository with git ls-remote before handing it to pnpm; after installation, confirm the plugin is enabled in the list.
Method 2: Command Line (Equivalent)
dsh plugin --profile desktop add https://github.com/AkotaP/dsh-model-tweaks
# After publishing to npm, you can use the package name directly: dsh plugin --profile desktop add dsh-model-tweaks
After installation, restart DSH; the Model Capabilities tab should appear in Settings.
Uninstall: uninstall from the sidebar Plugins page, or run:
dsh plugin --profile desktop remove dsh-model-tweaks
and confirm the item has been removed from dsh.profile.bundles in the profile.
Typical Usage¶
- After installing and restarting, open Settings → Model Capabilities → Model Capabilities, expand by provider, and select the target model.
- In the editing area, adjust the context window, max output, input modality, or thinking level; when you need to restore engine defaults, select Default for the corresponding item (Apply will delete the field rather than write an empty value).
- After confirming, click Apply in that model’s editing area; the config is written to
llm-pi-aiinsettings.yaml. - If you frequently use manual values or the thinking-level list, switch to the Presets page, add/edit/delete/reorder in the corresponding card, then click the Apply at the bottom of that card to submit the entire
presets.json.
Use Cases and Notes¶
Who it’s for: developers who need to fine-tune per-model context, output limits, text/image modalities, and thinking levels in DSH Web, and want to reduce repeated input with unified presets.
First save and config conflicts: the first save writes the entire models array for that provider into the user layer of settings.yaml (an existing DSH mechanism; the official Models page behaves the same way). Afterwards, model changes to the same provider in cordis.patch.yml will be overridden by it. Recovery: delete the entire llm-pi-ai.providers.<provider>.models key in settings.yaml.
Development and contracts: the repository provides offline tests (node --test, equivalent to pnpm test); contracts cover manifest, host API, and client page semantics. See docs/CONTRACT.md in the repo for interface details, and docs/HANDOFF.md for engineering notes.
Summary¶
dsh-model-tweaks consolidates per-model context, max output, modalities, and thinking levels, along with global presets, into a single page in DSH Settings, and uses Apply to control when changes are persisted. For installation or source code, visit the community catalog page https://www.skillhub.cn/plugins/AkotaP/dsh-model-tweaks or GitHub: https://github.com/AkotaP/dsh-model-tweaks.