dsh-codemode
Code Mode preset for DeepSeek Harness: tools the preset's own composition does not register (MCP servers, profile-level plugins, per-agent tool sets) are kept out of context, and a plugin-owned code_run transport discovers and calls them.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MuWinds/dsh-codemode配置
cordis.patch.yml 负责挂载本预设;修改 codemode 这一行的 config 即可调整行为
(null 或省略表示使用默认值):
| 键 | 默认值 | 含义 |
|---|---|---|
nativeScope | true | 遮蔽一切不是本预设自身作用域注册的工具(MCP、profile 级插件、按 agent 注册的工具集) |
hiddenPrefixes | ['mcp__'] | 额外剥离的工具名前缀 |
nativeTools | [] | 例外:这些名字始终原生呈现(run_code 与 runToolName 永远原生) |
hiddenTools | [] | 例外:这些名字始终遮蔽 |
metaTools | [list, search, describe, debug] | 发现工具名;第一个同时用作 codemode 标记 |
runToolName | code_run | 本包传输工具的名称(不可用保留名 run_code) |
searchLimit | 8 | code_tools_search 默认返回的行数 |
maxDescriptionChars | 240 | 列表中描述文本的截断长度 |
maxParallelSubCalls | 10 | 一个程序内可并发的只读子调用上限 |
guard | true | 拒绝模型对被遮蔽工具的直接调用 |
sdkSection | true | 注入 / 替换 Code Mode 说明段落 |
debug | true | 注册 code_debug 工具 |