YongjianWan/dsh-loadout ↗★ 0

dsh-loadout

On-demand tool loadout for DeepSeek Harness: keep a small always-visible core, hide the rest behind per-group activation, and offer search plus a proxy call for long-tail tools.

Package
dsh-loadout
Compatibility
Unverified
Version
1.2.1
License
MIT
Last updated
Oct 28, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YongjianWan/dsh-loadout

配置

配置文件 ~/.dsh/loadout-config.json,面板改的就是它,保存后立即重新分组,不必重启:

{
  "groups": [
    { "name": "email", "desc": "邮件:列信、读信、发送…", "prefixes": ["email_"] },
    { "name": "ops",   "desc": "宿主运维", "names": ["present", "workflow"] },
    { "name": "goal",  "desc": "长目标", "patterns": ["^(create|update|get)_goal$"] }
  ],
  "neverHide": ["loadout", "tools_search", "tools_call"],
  "hiddenGroups": null,
  "idleCalls": 30
}
字段含义
groups分组规则,纯数据。prefixes 前缀、names 精确全名、patterns 正则,三种按顺序匹配。null 表示用插件内置规则
neverHide永不隐藏的工具名(在内置 NEVER_HIDE 之上追加)
hiddenGroups新会话默认隐藏哪些组。null = 全部隐藏;写成数组后不在数组里的组默认可见
idleCalls一组激活后连续多少次工具调用没碰到组内工具就收回
trial新插件观察区开关。false 关掉,迟到工具退回直接可见(默认 true)
trialPromoteAfter观察区工具调用多少次自动转正回可见(默认 3,转正名单持久化在 ~/.dsh/loadout-trial.json)
gatedGroups可见性当权限:这些组 activate 要用户确认(模型需带 confirm:true 重试)。null = 内置默认 ssh/email/kimi-cu;[] = 不闸任何组
cut读外网切断外联总开关(默认 false,按需开)
cutLasts切断持续多少个工具调用,兜底自动恢复(默认 30;宿主发 turn/end 会当轮提前恢复)
cutGroups切断时隐藏哪些组。null = 内置默认 email/ssh/kimi-cu/bili/tieba/ops/mcp-connector/sandbox;[] = 不切
cutTriggers哪些组的工具算"读了外网"。null = 内置默认 chrome-devtools/search-ext
cutTriggerTools哪些裸工具名算"读了外网"。null = 内置默认 web_fetch/web_search
modes模式切换表:{ 名字: { label, activate: [], hide: [] } },同名覆盖内置、新名新增;null = 只用内置四档

MCP 工具(mcp____)始终按 server 名自动成组,不需要写规则;mcpGroups: false 可关掉这条。