- 홈
- 플러그인
- 개발 및 플러그인 도구
- dsh-preset-composer
D
dsh-preset-composer
danonyvincit/dsh-preset-composer
Settings page for editing DSH agent presets as a plugin tree, with per-plugin parameter forms and custom presets.
설치
dsh plugin --profile web add github:danonyvincit/dsh-preset-composerREADME
dsh-preset-composer
English | 简体中文
A visual editor for DSH agent presets. It adds a Preset composer section to Settings, next to Agent presets.
![]()
What it does
- Lists every agent preset, shipped and custom, and shows its plugin rows, parameters and
!!jsexpressions read-only. - Edits a preset as a tree: add, remove, reorder and drag plugin rows, toggle them on or off, and put rows inside
cordis:groupgroups. - Opens a parameter dialog for a plugin row. Fields come from the installed DSH
docs/config-catalog.md(144 modules in DSH 0.2.2-rc.5) with defaults from the config schema. Plugins missing from the catalog fall back to raw JSON. - Groups the plugin library by purpose (tools, prompt, models, subagents, sessions, permissions, shell, host services, interface, experimental) and searches by name, title and description.
- Warns when a plugin needs a service that nothing in the preset provides (for example, persistent bash needs
terminals, which@deepseek-ai/dsh-terminalprovides) and offers a one-click button to add the provider. The plugin library marks such plugins withNeeds: …. The warning does not block saving. - Warns when a provider such as
dsh-terminalsits outside a group that isolates its service. The Host rejects that withPreset services require isolate realms: terminals. One click moves the provider and the plugins that use it into a group withisolate: { terminals: true }, the same layout as the built-in minimal preset. - Warns when two enabled plugins register the same tool name (for example
dsh-tool-bashanddsh-tool-bash-persistentboth registerbash, which the Host rejects withtool "bash" is already registered in this scope) and offers a button to disable the later one. - Creates and duplicates custom presets. Saving a shipped preset writes an override through the
configEditorservice; Reset removes it.
Preset changes apply to new sessions. Existing sessions keep the preset they started with.
Install
Requires DSH 0.2.x. Download dsh-preset-composer.tgz from the latest release, then:
dsh plugin --profile <name> add ./dsh-preset-composer.tgz
Or from source: dsh plugin --profile <name> add github:DAnonyvinciT/dsh-preset-composer (pnpm needs allowBuilds approval only if a build script exists; this package has none).
Restart DSH after installing.
Parts
lib/index.js: Host plugin. ServesGET /api/preset-composer/stateandPOST /api/preset-composer/{save,delete,reset}.lib/store.js: Host plugin (dsh-preset-composer/store). Registers valid custom presets from its ownpresetsconfig with theagentPresetsregistry.lib/model.js: validation, normalization, revisions and the plugin palette.lib/deps.jsandlib/deps.json: which plugins need a provider row for which service.lib/deps.jsonis generated byscripts/gen-deps.mjs; rerun it after upgrading DSH.lib/catalog.js: parses the installedconfig-catalog.mdinto per-plugin field lists.lib/defaults.json: parameter defaults generated byscripts/gen-defaults.mjsfromdsh web --dump-config-schema. Regenerate after upgrading DSH.client.js: the Settings section (React,dpc-prefixed styles, host theme tokens).
Develop
node --test test/
node --check client.js lib/*.js
Limits
- The read-only view shows configuration values as stored, including any secrets in plain text.
- Parameter defaults are missing for some modules; those fields show no default.
- Preset editing needs an editable profile (the plugin must be installed in the profile root).
License
MIT