JHyugou/dsh-computer-use ↗★ 0

dsh-computer-use

将电脑控制能力重建为DSH插件 基于Windows原生后端实现桌面自动化,适合需要Agent操作电脑的用户。

套件
dsh-computer-use
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月16日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JHyugou/dsh-computer-use

4. 配置

配置读 /plugins/dsh-computer-use/config.json(不存在则用默认值), 也可以在 profile 的插件条目里用 config: 覆盖(内联优先)。损坏/缺字段时逐字段回退默认值。

字段默认含义
enabledtrue关掉后一个工具都不注册
tools"native"native = 25 个独立工具;single = 一个 computer_use(带 action),省 schema token
warmuptrue加载时预热后端;关掉则首次调用才拉起(多等约 1-2 秒冷启动)
installSkilltrue把随包技能装到 /skills/computer-use/(带所有权标记,不覆盖用户自写版本)
accessMode"auto"谁能调用电脑操控:auto 全自动 / ask 每次弹审批 / off 禁用(见 §5.4)
allowSubagentsfalse是否允许子代理调用电脑操控(默认关闭:子代理动用户鼠标键盘时用户看不见也难喊停)
indicatortrue是否显示屏幕最前端的「DSH 正在操作电脑」浮层(见 §5.5)
indicatorLocale"auto"浮层文案语言:auto / zh-CN / en-US
indicatorShowActiontrue文案后是否带上当前动作(「· 正在点击」)
indicatorAutoHideMs30000无操作活动多久后自动隐藏(兜底,防止浮层滞留)
requestTimeoutMs30000单次调用默认超时
screenshotTimeoutMs60000截图/取界面树超时
startupTimeoutMs20000等待后端 ready 上限
maxRestarts3后端崩溃后自动重启上限,超出后报明确不可用原因
screenshotMaxWidth1600模型可见截图长边上限(0 = 不缩放)
screenshotMaxBytes524288单张截图字节预算,超出按 png→jpeg→更小栅格降级重拍
screenshotFormat / screenshotQuality"png" / 80默认编码与 jpeg 质量
saveFrames / keepFramestrue / 40截图落盘到 plugins/dsh-computer-use/frames/,只保留最新 N 张
debugfalse把原生后端的 stderr 诊断写进 DSH 日志
// 示例:省 token 的单工具模式 + 更小的截图
{ "tools": "single", "screenshotMaxWidth": 1280, "screenshotFormat": "jpeg" }