dsh-catpaw
CatPaw (妙手) model bridge for DeepSeek Harness: registers the CatPaw agent's 12 models as a selectable LLM provider.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Smartloe/dsh-catpaw配置
写在插件条目的 config 里(见 cordis.patch.yml):
| 键 | 默认 | 含义 |
|---|---|---|
models | 上表 12 个(定义在 index.js 的 DEFAULT_MODELS) | 模型目录;每项含 id、name、contextWindow、maxTokens、params、可选 defaultEffort。行配置里写 models 会覆盖内置表 |
cliPath | 自动解析 | CLI 二进制路径 |
authPath | ~/.meituan-catpaw/auth.json | 凭据文件 |
baseURL | https://ai.catpaw.meituan.com | 模型端点 |
gateway | https://catx.nocode.cn | 登录网关(模型调用仍用 baseURL) |
permissionMode | dontAsk | 妙手自身工具循环的权限模式 |
excludeNativeTools | true | 关掉妙手自带的工具(bash/read_file/… 共 19 个)。true 用内置名单,数组则按名单,false 保留 |
systemPrompt | transcript | transcript 把 DSH 的 system prompt 放进 ``;none 保留妙手原生提示 |
maxPromptChars | 120000 | 单轮 prompt 字符预算,超出丢最旧的消息 |
toolResultChars | 4000 | 单条工具结果上限,超出时保留首尾、省略中间 |
messageChars | 20000 | 单条消息截断 |
timeoutMs / idleTimeoutMs | 600000 / 300000 | 总超时 / 无内容帧超时(心跳帧不算进展) |
directory | 会话 cwd | 覆盖妙手的工作目录 |
debug | false | 打印 CLI 的 stdout/stderr |