dshbase

插件目录 / Developer / dsh-model-retry

dsh-model-retry

已验证 · 实测可装 502399493zjw-lgtm

✓ 持续维护 基于 8 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-20最近推送
跨平台平台

功能简介

DeepSeek Harness plugin for configuring the global model-request retry budget

✅
我们的评价
可用 — 实测通过,早期项目

DeepSeek Harness plugin for configuring the global model-request retry budget 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

@zhongjingwei/dsh-model-retry

CI

English | 中文

DeepSeek Harness Web plugin for configuring active providers' model-request retry budget from Settings → General.

Compatibility: pinned to stock DSH 0.1.0-rc.8. rc.8 moved retry ownership into provider profiles, so this version writes each active normal provider's retryPolicy.maxRetries through the published settings API.

Demo

Set the retry budget to 5, show retries 1/5 through 5/5, and recover when the sixth model request succeeds

The demo uses stock DSH 0.1.0-rc.8 and a plugin tarball packed from this source, all under an isolated DSH_HOME. It changes the retry budget from 2 to 5, then uses DSH's deterministic local LLM mock to return retryable server errors on attempts 1–5 and succeed on attempt 6. Session-title generation is disabled so those six mock requests belong only to the demonstrated model request. DSH executes and reports the retries; the plugin owns the shared retry-budget setting.

Install

For stock rc.8:

dsh plugin --profile web add @zhongjingwei/[email protected]

Restart Web after installation. Remove the plugin with:

dsh plugin --profile web remove @zhongjingwei/dsh-model-retry

Behavior

  • Adds one numeric retry-count row to Settings → General and shows its provider scope.
  • Accepts finite, non-negative integers, including 0.
  • Discovers active configurable providers through llm.providers and uses revision-fenced settings.mutate calls.
  • Writes retryPolicy.maxRetries for normal/default policies while preserving existing backoff and retryable-code fields.
  • Leaves always policies unlimited and leaves retry execution/backoff behavior owned by DSH.

Development

pnpm install
pnpm test
pnpm run build
pnpm run verify:package
pnpm pack

The package is an external Cordis plugin and does not patch DSH core.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-model-retry」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:502399493zjw-lgtm/dsh-model-retry

Headless(CLI)profile:

dsh plugin --profile headless add github:502399493zjw-lgtm/dsh-model-retry

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →