dsh-anchored-preset-installer
其他 活跃维护

dsh-anchored-preset-installer

kirkchinese/dsh-anchored-preset-installer

支持一键安装dsh锚定标准实验预设包,预置经过验证的配置模板,无需手动调整参数即可直接使用,操作简单高效,可快速完成预设环境的部署。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
36 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:kirkchinese/dsh-anchored-preset-installer
git clone https://github.com/kirkchinese/dsh-anchored-preset-installer.git
git clone git@github.com:kirkchinese/dsh-anchored-preset-installer.git
README.md main

dsh-anchored-preset-installer

One-command delivery for the
dsh-anchored-standard
experimental presets. Installing this host plugin materializes the three
preset directories into the user preset root, so the session preset picker
shows Anchored Standard (experimental) / Zero-Anchored Standard
(experimental)
/ Whoami Standard (experimental) with no manual cp.

Install

dsh plugin --profile web add -w github:kirkchinese/dsh-anchored-preset-installer
# without a global `dsh` binary:
npx @deepseek-ai/dsh plugin --profile web add -w github:kirkchinese/dsh-anchored-preset-installer

Restart DeepSeek Harness (Ctrl+C, then dsh web / npx @deepseek-ai/dsh web),
create a blank session, and pick the preset. DSH preset discovery re-reads its
roots on every list, so the presets appear as soon as the plugin row has
applied once.

Behavior

  • Writes only into the user-trust preset root from
    agentPresets.resolvedRoots (normally $DSH_HOME/.agent-presets).
  • Create-only: a preset directory that already exists is left exactly
    as it is — user edits are never overwritten.
  • Every failure is contained per preset and logged; the plugin row never
    fails the profile boot.
  • No network requests, no telemetry, no runtime listeners — after apply the
    plugin is inert.

Verify

npx @deepseek-ai/dsh --profile web --dump-config | grep -A2 anchored-preset-installer

expects an id: anchored-preset-installer row (before the restart). After the
restart, the preset picker lists all three presets, and each installed
directory carries a .installed-by-anchored-preset-installer marker:

ls ~/.dsh/.agent-presets/

Uninstall

Removing the plugin leaves installed presets in place (they may be in use
by sessions). To remove them:

dsh plugin --profile web remove dsh-anchored-preset-installer
rm -r ~/.dsh/.agent-presets/{anchored-standard,zero-anchored-standard,whoami-standard}

Only remove a preset that no session currently uses.

Maintenance

presets/ is a byte-copy of the preset/, zero-anchored-standard/, and
whoami-standard/ directories from the upstream repository (this fork pins
the self-contained-variant + single-anchor fixes). After upstream releases
change those, sync the copies here and bump VERSION in index.mjs.

License

MIT. The vendored presets derive from the DeepSeek Harness Standard preset
and the xiaobright/dsh-anchored-standard repository (MIT); see NOTICE.