为 agent 增加 http_probe 工具:探测 HTTP(S) 端点的状态码、延迟与关键响应头,HEAD 被拒时自动降级 GET,不下载响应体。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:po-et/dsh-http-probe
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
A DeepSeek Harness plugin that adds an http_probe tool: the agent can check the status code, latency and key response headers of any HTTP(S) endpoint without reading response bodies. Useful for API health checks and quick "is this site up?" questions.
一个 DeepSeek Harness 插件,提供 http_probe 工具:让 agent 可以探测任意 HTTP(S) 端点的状态码、延迟和关键响应头(不读取响应体)。适合 API 健康检查和"这个服务挂了吗"类问题。
HEAD is the default; a 405 (method not allowed) or 501 (method not implemented) response is retried once as GET. This supports servers that implement GET but omit HEAD. An explicit GET returning either status is reported without a retry. The probe cancels its unread GET body after receiving headers, including streaming bodies. This releases an unshared response promptly. If middleware has cloned the body, only the probe's branch is cancelled; upstream downloading can continue while another reader keeps its branch open. Latency measures the time to receive the headers. If an unread body has already failed, the received status and headers are still reported. Cancellation is started without awaiting it: when middleware clones a streaming response, completing cancellation can depend on the other reader, which must not block the probe result.
默认使用 HEAD,遇到 405(不允许该方法)或 501(未实现该方法)时回退一次 GET,兼容只实现 GET 的服务。显式 GET 若返回这些状态码,则直接报告,不再重试。获取响应头后会取消探测所持有的 GET 响应体,包括持续流式响应;未共享的响应会及时释放。若中间件克隆了响应体,只取消探测自身的分支;另一位读取者保持其分支开启时,上游仍可能继续下载。延迟统计为获取响应头耗时。未读取的响应体若已失败,仍保留已经收到的状态码和响应头。取消操作会立即发起,但不等待其完成:中间件若克隆了流式响应,取消完成可能依赖另一位读取者,不应因此阻塞探测结果。
Cancelling the Harness tool call also aborts its pending HTTP request and prevents a HEAD-to-GET retry. Each request still has its own 10-second timeout.
Method names follow Fetch: DELETE, GET, HEAD, OPTIONS, POST and PUT are normalized to uppercase. Other methods retain their exact casing, so PATCH and patch can probe different server behavior.
取消 Harness 工具调用时,会同时中止尚未完成的 HTTP 请求,并阻止后续 GET 回退。每次请求仍保留独立的 10 秒超时。
方法名遵循 Fetch 规则:DELETE、GET、HEAD、OPTIONS、POST 和 PUT 会规范为大写,其它方法保留原始大小写,因此 PATCH 与 patch 可用于探测服务端不同的处理行为。
Install / 安装
Not on npm yet, so install straight from GitHub. pnpm will ask you to allow this package's build script once (dsh prints the exact line to add); that's the
preparestep compiling TypeScript.
dsh plugin --profile web add github:po-et/dsh-http-probe
Then ask the agent something like: "Probe https://example.com and tell me if it's healthy."
Development / 开发
npm install
npm run build
npm test # build and test with local HTTP servers; no external endpoint required
npm run dev # dsh web --patch ./dev.cordis.yml, then open http://127.0.0.1:3080
dev.cordis.yml loads the built plugin by absolute path; edit it if you cloned this repo to a different location. Rebuild after changing src/.
License
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 38796
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37348
dsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
yikart/AiToEarn#dsh-plugin-aitoearn★ 29024
帮你生成文案/图文/短视频,一键分发抖音、快手、小红书、公众号、bilibili、Facebook、TikTok 等海内外平台,覆盖自媒体运营从内容创作,内容发布到内容变现全链路。
superdesigndev/treg★ 10192
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
T-Auto/dsh-ops★ 6129
为 Windows 的 DSH 提供 bash、PowerShell 7 及 Rust 高性能工具,减少 token 消耗。
Hithink-Tech-Org/Financial-API#hithink-finance★ 4796
在 DeepSeek Harness 中查询同花顺金融数据、在对话中查看图表,并保存可刷新的看板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。