Introduction¶
In DeepSeek Harness (DSH), a single session turn might not end normally due to errors, interruption, or the output reaching the token limit. In such cases, the session itself can still proceed; it only requires sending a “Continue” command to the original session.
Below is an introduction to Frog755’s DSH client plugin, @frog755/dsh-client-auto-retry. It is used to automatically send “Continue” when these types of turn-ending reasons occur, without switching models or providers.
What is this¶
@frog755/dsh-client-auto-retry is a DSH client plugin maintained by Frog755 with an MIT license.
It detects the reason.kind of turn/end. When this value belongs to error / interrupted / max-tokens, the plugin automatically sends configurable text to the same session; the default text is “Continue”.
The plugin comes with a settings card, and settings take effect in real-time, marked as:
applies: "live"
It is only responsible for automatically sending “Continue” and does not switch models/providers. If failover is needed, it should be completed in DSH’s model routing configuration.
Core Features¶
- Detect if
reason.kindofturn/endis one of the following types:
error
interrupted
max-tokens
- Automatically send configurable text to that session, defaulting to:
继续
-
Provides protections such as grace periods, cooldowns, consecutive attempt limits, and boot scanning to avoid runaway loops.
-
Settings take effect in real-time:
applies: "live"
-
Does not switch models/providers.
-
Comes with a settings card.
Installation and Enablement¶
The following are the steps to install via npm package.
- Execute in DSH’s profile directory:
pnpm add @frog755/dsh-client-auto-retry
This step installs the plugin package into the current profile’s dependencies.
- Edit
package.jsonin that directory and add@frog755/dsh-client-auto-retrytodsh.profile.bundles.
This step allows DSH to recognize this plugin when loading the profile.
- Execute:
pnpm install
This step completes the dependency installation.
- Restart DeepSeek Harness, then refresh the browser page.
Host-side plugins are loaded only once per process; changes to the Host-side lib/index.js require restarting DSH; refreshing the browser page is not enough.
When developing with local linking, you can use a similar configuration in dependencies:
{
"dependencies": {
"@frog755/dsh-client-auto-retry": "link:C:/Users/frog/.dsh/projects/dsh-client-auto-retry"
}
}
The path above is a local example from the documentation; it should be replaced with your own local plugin path in actual use.
Typical Usage¶
The entry point for settings is:
设置 → 通用 → 断联自动重试
After entering, you can see the plugin’s settings card. After the plugin triggers, it automatically sends the default text “Continue”, but the text can also be adjusted as needed.
Several protective items need attention:
maxConsecutiveis recommended to stay within the default 5 times to avoid repeatedly consuming tokens when the provider continuously reports errors.scanOnBootonly scans sessions within thefreshMswindow.- Currently written and verified for DSH
0.1.0-rc.7(web profile; desktop runtime is the same version); DSH interfaces may differ for different versions/shapes.
Applicable Scenarios and Notes¶
This plugin is suitable for handling simple continuation of turns in DSH sessions that are interrupted, errored out, or have reached max-tokens.
It is not suitable as an error fallback, nor is it responsible for model/provider failover. The plugin loads as a DSH profile bundle and executes within the current DSH process runtime environment; you should check the source code and license before installing.
If the plugin cannot be installed or does not work, first check if the DSH version and interface are consistent, then check the following:
- Whether
@frog755/dsh-client-auto-retryhas been added todsh.profile.bundlesinpackage.json. - Whether
pnpm installhas been executed. - Whether DeepSeek Harness has been restarted.
- Whether DSH has been restarted after changes to Host-side
lib/index.js.
Links¶
GitHub Repository:
https://github.com/Frog755/dsh-client-auto-retry
The community directory page address was not confirmed in the verified materials for this session.