rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:MaxHan0102/dsh-config-studio
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A settings page for the part of DSH configuration the built-in pages never reach. It lists every addressable Loader entry in the active profile, renders a form from that plugin's own Config schema, and writes the fields you change into the profile's cordis.patch.yml — through ctx.configEditor, the same writer DSH's own settings use, but without the volatile-only restriction.
The page appears in Settings → Plugin configuration (设置 → 插件配置) and follows the Harness language (English / 简体中文).
DSH's built-in settings forms write through settings.mutate, which only accepts fields a plugin declared with .volatile(); writing anything else throws Config field "<path>" is not volatile. Everything else is expected to be edited by hand in YAML.
That restriction is reasonable for live-reloadable preferences, but it leaves most of a real profile without a UI: plugin lists, timeouts, feature switches, provider tables, and the rest. This plugin takes the other road — the complete raw config — and lets the Host validate and apply it exactly as the Loader would.
configEditor.entries() returns, with package name, field count, override badge, and current status. Search by id or package; switch between editable only (default) and all; group by function (models, agents, tools, web, accounts, runtime, sessions, interface, platform, other) or by origin (built-in / third-party); collapse sections; the browsing state survives opening an entry and coming back.!!js expressions, unsupported schema shapes, and oversized entries are never writable here (table below).Published on npm as dsh-config-studio, and also a plain dsh.bundle bundle with no dependencies and no build step. Every source below installs the same code — pick the one that matches your host.
dsh plugin --profile web add dsh-config-studio
Replace web with your own profile name. Restart the host if it does not pick the plugin up, then reload the page.
DSH Desktop manages its own profile, so the command above cannot install into it: open Settings → Plugins, paste dsh-config-studio into the install box, make sure the plugin is enabled, then reload the page (Cmd/Ctrl+R).
The same version installs from the release tarball or straight from this repository — useful on a host that cannot reach the registry:
# release tarball (pinned to a tag, so the URL never rots)
dsh plugin --profile web add https://github.com/MaxHan0102/dsh-config-studio/releases/download/v0.1.0/dsh-config-studio-0.1.0.tgz
# or straight from the repository
dsh plugin --profile web add github:MaxHan0102/dsh-config-studio
On Desktop, paste either string into the same install box.
dsh plugin --profile web add dsh-config-studio@latest
On Desktop, use the update control on the plugin's card. A tarball or git install has no update check — remove and re-add it with the newer tag or commit.
dsh plugin --profile web remove dsh-config-studio
Any override the plugin wrote stays in cordis.patch.yml; removing the plugin does not touch your configuration.
| DSH | 0.2.1-rc.5 or newer (tested on 0.2.1-rc.5 and 0.2.2-rc.1) |
| Services | ctx.configEditor and ctx.connection.fetch — both ship with the Web composition |
| Node | 20+ |
| Browser | any current Web GUI; the section is a normal client plugin |
The package deliberately declares no DSH version range: it is plain JavaScript with no host imports, so it keeps installing on newer hosts instead of being gated out by a prerelease peer range.
| Badge | Meaning |
|---|---|
| Overridden (entry) | The profile patch has a config: record for this entry |
| Overridden (field) | This key is written in that record, so the value comes from the profile layer |
| Read-only | See the table below; the field is shown for context but will not be written |
| Third-party | The package is not under the @deepseek-ai/ scope |
A patch replaces the whole config. DSH applies a patch by replacing an entry's config object, not by merging keys. Saving one field therefore writes the entry's current config plus your change, and pins the other values it already had. If every field ends up equal to the inherited layer, the record is removed entirely — that is what Reset means for a whole entry.
Some changes reload the plugin. Every save goes through the Loader's normal lifecycle, so the plugin restarts with its new config. A few plugins only take effect after the host restarts; the page says so in the result line.
Decided on the Host; the browser cannot bypass them.
| Condition | Reason |
|---|---|
role('secret') field |
the value never leaves the Host — the page only learns whether it is set |
role('credential-ref') field |
a reference is not an editable value |
| An object with a secret somewhere below it | editing it as JSON could leak the secret |
An unevaluated !!js expression |
only YAML can express it safely |
| A schema type the form does not understand | no safe control exists |
meta.disabled on the field |
the plugin disables it |
| Entry larger than 64 KiB | too large to edit responsibly in one form |
| Entry disabled, failed, inactive, or a group | not addressable right now |
Plugin declares no Config |
nothing to generate a form from |
Two halves, both in this repository:
Host (index.js) — three POST endpoints registered through ctx.connection.fetch, so the /api fence, Host/Origin checks, and cookie authentication apply before dispatch. It imports nothing outside Node built-ins: the form shape is read from the live schemastery schema the Loader already holds.
| Endpoint | Body | Answers |
|---|---|---|
/api/config-studio/list |
{} |
entries, status, field counts, category, origin |
/api/config-studio/read |
{ id } |
revision, fields, values, read-only reason |
/api/config-studio/write |
{ id, expectedRevision, changes } |
{ ok, revision } or { ok: false, error } |
Client (client.js) — a settings.section registration written in the module-loader format, with no Harness client package imports. Controls are the plugin's own, styled with theme tokens.
Writes are validated twice: once against the plugin's schema in the request, and again inside configEditor.edit(), which holds the profile lock, preserves comments and !!js, writes atomically, reloads the entry, and rolls the file back if the reload fails. revision is a hash of the entry's inherited layer, profile override, and raw config, so a stale form is refused instead of silently overwriting.
| Symptom | Fix |
|---|---|
| No Plugin configuration section | Confirm the plugin is enabled and active, then reload the page. On the Desktop app, check the plugin's card in Settings → Plugins. |
| "The configuration service did not answer." | The Host half is not active: check the DSH version, and that the entry is active in the plugin list. |
| A field you need is read-only | It matches one of the rules above; edit cordis.patch.yml directly for secrets and !!js. |
| Save succeeded but nothing changed | Another layer wins: a home patch (~/.dsh/cordis.patch.yml) or a --patch overlay takes precedence over the profile layer. |
| Save failed with a conflict | Someone (or another tool) wrote the entry after the page read it; reload the entry and re-apply. |
| The page vanished after a DSH update | Check the upstream release notes for the settings surface; open an issue with the DSH version. |
cordis.patch.yml is ever written. Home patches, command-line overlays, and bundle layers are read but never modified.configEditor.entries() are addressable; everything else is invisible to this page.The repository is the installed artifact — plain JavaScript, no build.
index.js Host half: schema introspection, endpoints, validation
client.js Client half: settings section, form, diff, i18n
cordis.patch.yml Bundle patch that inserts the Host row
locale/*.json Display metadata for the plugins page
icon.svg Icon used by the plugin list
To run a checkout against a disposable profile:
cp -R ~/.dsh/profiles /tmp/dsh-home/profiles
DSH_HOME=/tmp/dsh-home dsh --profile web --no-open --port 0
Link the working copy into that profile (dsh plugin --profile web add <absolute path>) and reload the page after edits. The Host half is reloaded by re-enabling the plugin; the client half is re-fetched on page reload.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。