DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Turn Doctor — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
T

dsh-turn-doctor

Turn Doctor

DeepSeek Harness 插件,解释失败回合由哪一层终止以及如何修复

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:d3vmeh/dsh-turn-doctor#7282f61460c7f18bff61a11f3cf2e05b879faf0e
README兼容性版本

兼容性与来源证明

Turn Doctor 以 dsh-turn-doctor 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/20

版本

0.1.1stable
2026/9/3
0.1.0stable
2026/8/30

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
65
最近提交
2026/9/3
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Plugindsh-pluginDeepSeek Harness 社区插件市场,遵循官方插件规范——无需离开应用即可浏览、搜索并安装 9000+ 个由人工精选的社区插件。· DeepSeek Harness 社区插件市场(遵循官方开发规范):9000+ 人工精选社区插件,每日更新。Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话

README

dsh-turn-doctor

A diagnostic plugin for DeepSeek Harness that tells you why a turn failed and which timeout or setting is actually responsible.

Why this exists

A dsh request can time out in several different places:

  • dsh's idle watchdog (streamIdleTimeoutMs)
  • the SDK request timeout (timeoutMs)
  • Node/undici HTTP timers
  • the model server
  • individual tool calls

The problem is that the UI usually only shows the final error message, and those messages aren't very specific.

For example, Request timed out. might be the SDK timeout or undici's 300-second headers timeout. terminated might mean undici gave up waiting for the response body, or the model server died.

That makes it easy to change the wrong setting and then watch the request fail at exactly 5:00 again. This has come up in discussions like #3157 and #4518.

dsh-turn-doctor measures each model request itself (time to first byte, longest gap between bytes, and total request time) and uses that timing to identify the most likely failure point.

Example:

turn-doctor: session=session-ccc41e50 turn 1 attempt 1
  verdict: Node's HTTP headers timer (undici) gave up waiting for the server's first response after 300.6 s.
  evidence: no reply bytes in 300.6 s
  fix: install dsh-fetch-timeouts to raise Node's HTTP timers; on llama.cpp this usually means the request was deferred behind a busy slot

It also catches a couple of failures that are otherwise easy to miss, including failed compactions and tool timeouts.

What it detects

LayerTypical messageSuggested fix
dsh idle watchdogpi-ai stream idle timeout after NmsRaise streamIdleTimeoutMs; if the request was queued, check the gate or --parallel
Node headers timer (undici)Request timed out. with no bytes at ~300 sInstall/configure dsh-fetch-timeouts
SDK request timerRequest timed out. at around timeoutMsRaise timeoutMs on the route
Node body timer (undici)terminated after ~300 s without data mid-responsedsh-fetch-timeouts, or configure the server to send data/pings
Server closed/crashedterminated or Connection error. after a short gapCheck the model server logs
Server unreachableConnection error. almost immediatelyCheck that the server is running and the URL/port are correct
Context overflowrequest (N tokens) exceeds the available context sizeCompact, increase context, or lower the compaction threshold
Empty responseRequest completes with no contentCheck maxTokens / reasoning effort
dsh-llm-gate queueQUEUE_TIMEOUT, QUEUE_FULLRaise queueTimeoutMs or reduce subagent concurrency
GPU faultErrorDeviceLost, decode() failedRestart the server; try a smaller context
llama.cpp router reload500 proxy errorCheck --models-max
Failed compactionsummarization truncated at the token capRaise the compaction preset's summary cap
Tool timeouttool call timed out after NmsRaise that tool's timeoutMs

Each retry attempt is diagnosed separately. dsh already shows retry countdowns, so turn-doctor doesn't duplicate them.

If the timing isn't enough to distinguish two possible causes, it says that rather than pretending to know.

Install

dsh plugin --profile web add dsh-turn-doctor

That's it.

Verdicts are printed in the dsh terminal. You can also run /why in chat to see recent verdicts for the current session, including subagents.

If you've changed your route timeouts from the defaults, add them to ~/.dsh/profiles/web/cordis.patch.yml so turn-doctor can classify failures correctly:

- id: turn-doctor
  config:
    providers:
      llamacpp:
        streamIdleTimeoutMs: 7200000
        timeoutMs: 7200000
        undiciTimeoutMs: 1800000   # if dsh-fetch-timeouts is installed
    keep: 10                       # verdicts kept per session for /why

If a provider isn't configured, turn-doctor assumes the standard 300-second defaults.

Notes

  • turn-doctor only diagnoses failures. It doesn't retry requests, change settings, or inject anything into the model context.
  • If the SDK timer and undici headers timer are both set to 300 seconds, a first-byte timeout can be ambiguous. In that case, turn-doctor reports undici because fixing it requires dsh-fetch-timeouts; dsh can't change that timer itself.
  • Verdicts live in memory for the life of the dsh process (the last few per session, for /why). They are not written to the session log: dsh refuses to load a log containing event types it does not know, so a plugin event there would make the session unresumable.
  • dsh-error-lens is related, but solves a different problem: it shows recent failures in a web panel grouped by HTTP status. turn-doctor uses request timing to distinguish the different timeout layers, and also covers compactions and tool calls.

License

MIT