Introduction¶
One of the core design principles of DeepSeek Harness (DSH) is “Everything is a plugin”. In agent development, a common requirement is to inject specific command or script capabilities into the model’s capability list. Traditional approaches typically involve writing files or relying on other registration mechanisms. The fufu1437/dsh-model-commands plugin introduces a new way of defining capabilities: it allows developers to declare shell commands directly in the DSH settings page and publish these declarations to the Harness skill registry, where they appear as a standard skill on the model side.
Plugin Overview¶
This plugin is a workflow plugin for DeepSeek Harness (DSH), maintained by user fufu1437. It does not provide tool execution capabilities; instead, it focuses on converting command definitions into text content that the model can read. The plugin is released under the MIT license.
Core Features¶
- Settings-page declarations: Manage skill entries via a table interface on the
Settings → Model commandspage. - Skill registration: Every entry written on the page is published to the Harness skill registry.
- Behavioral consistency: Published entries behave exactly like installed skills on the model side. The model only sees one row in the skill catalog (
name+description); the full skill content (Body) is read only when the model requests it. - Non-execution: This plugin performs no tool invocations. Skills are essentially Markdown text; the model reads the text instead of running commands.
Installation and Configuration¶
Use the dsh CLI to install this plugin. It requires DSH 0.2.1-rc.2 or later.
Installation¶
Run the following command in your terminal:
dsh plugin --profile web add @fufu1437/dsh-model-commands
After installation, you typically need to select the corresponding bundle in Settings → Plugins, or add the package name to the dsh.profile.bundles field in ~/.dsh/profiles/web/package.json, then refresh the Web UI.
Configuration¶
You can specify the storage path and the maximum number of skills in the Harness configuration using YAML.
- id: fufu-model-commands
name: '@fufu1437/dsh-model-commands'
config:
storePath: /home/me/.dsh/model-commands/skills.json
maxSkills: 200
storePath: Defaults to<DSH_HOME>/model-commands/skills.jsonand serves as the single source of truth for the skill table.maxSkills: Limits the maximum number of entries in the registry, defaulting to 200.
Usage¶
Fill in the following fields in the settings-page editor to define a skill:
- Name: Use kebab-case (e.g.,
disk-usage); this is the key used when the model loads the skill. - Description: Required. This is the only text the model sees when making decisions and determines when the model calls this skill.
- Body: Markdown text that the model receives after loading the skill. A common practice is to paste the output of a command-line tool’s
--helphere. - When to use: Optional trigger text that also appears in the catalog.
- Model can invoke: Enabled by default; controls whether the entry appears in the model’s skill catalog.
- You can too: Disabled by default; determines whether the entry is also shown in the human command interface.
- Enabled: When disabled, the entry remains but does not appear in the catalog.
Saving is atomic; it immediately republishes the skill catalog so the changes take effect for the model without restarting Harness.
Behavior and Limitations¶
- No execution environment: The plugin has no tool execution logic, no shell, sandbox, or code evaluation. All content is stored and read as text only.
- Single source of truth: The skill table is the only data source; the registry is derived data.
- Write safety: Writes are atomic (temp file + rename) and use only Node.js built-in modules (
node:builtins). - Authentication and routing: Related API endpoints perform authentication checks first; unauthenticated requests receive 401 or 403 responses.
- Name collisions: If a name has already been registered by another provider, the system emits a warning rather than an error; the registry determines which one to overwrite based on hierarchy and priority.
Migration Notes¶
In DSH 0.2.0 and earlier, this plugin may have used commands.json and registered tools available to the model. In the current version, all entries are skills stored in skills.json. Legacy commands.json files remain unchanged and are no longer read. To restore old configurations, manually paste the contents from the old file into the new settings editor.
Conclusion¶
The fufu1437/dsh-model-commands plugin simplifies the skill definition process by centralizing configuration in the DSH settings UI while ensuring safe and consistent model invocation. It does not provide execution capabilities but focuses on converting command definitions into readable skill text.
Repository: https://github.com/fufu1437/dsh-model-commands