1250589385/dsh-stall-guard ↗★ 0
dsh-stall-guard
DSH 卡顿守卫:下载类命令(git clone / pnpm install / pip / curl)超时后自动中止,并把「换个下载源重试」的提示写进工具结果给智能体看,解决 GitHub 在国内网络不稳导致智能体一直干等的问题。另可按工具类型自定义超时秒数,并附一个只在卡顿时唤醒的 DeepSeek 监督员。 适合国内网络不稳、常因GitHub等下载卡死导致智能体干等的环境。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1250589385/dsh-stall-guardREADME
Read the full README ↗配置
面板里点监督员形象打开,或直接编辑 $DSH_HOME/stall-guard/config.json:
{
"version": 1,
"enabled": true,
"watchDownloads": true,
"downloadSeconds": 30,
"timers": { "fetch": 15, "search": 15, "read": 20, "write": 30, "exec": 30, "long": 120, "other": 30 },
"overrides": { "web_fetch": 45 },
"autoSwitch": true,
"scenes": {
"download": { "enabled": true, "seconds": 30 },
"fetch": { "enabled": true, "seconds": 15 },
"search": { "enabled": true, "seconds": 15 }
},
"supervisor": { "show": true, "display": "avatar" }
}
downloadSeconds—— 下载预算。GitHub 慢就调大,急着换源就调小。watchDownloads: false—— 完全关掉下载检测,下载命令就按exec类处理(只提示不中止)。overrides—— 给单个工具单独设秒数。