DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-auto-continue

M

dsh-auto-continue

Manifest valid

dsh plugin: auto-continue after quota/rate-limit reset + peak/valley idle-task suspend/resume, with composer toggles and a status line.

UI (client)hasBundlePatch

dsh-auto-continue

A dual-face plugin for DeepSeek Harness (dsh) that adds two things to your chat composer:

  1. Auto-continue — when a request dies on RATE_LIMIT or QUOTA, the session automatically resumes once the quota/rate limit resets.
  2. Idle task — during peak-price windows the running session is suspended; when the valley window starts it resumes by itself. Run your long jobs at off-peak prices without babysitting them.

Both are toggled by buttons in the composer input row, and a status line shows the current price window and time to the next switch. Toggles are persisted through the dsh settings service, so they survive a restart.

中文说明 / Chinese README

Install

dsh plugin --profile web add github:Meowrium/dsh-auto-continue

Then restart dsh web. The plugin is a bundle: it carries its own patch layer, so no manual cordis.patch.yml editing is needed.

Requires dsh ≥ 0.1.5-alpha.1 (tested on 0.1.5-rc.1). See Compatibility below.

Usage

After restarting, open a conversation. Two pill buttons appear in the input row:

ButtonEffect
闲时任务 (idle task)Peak windows: suspend running sessions. Valley windows: resume them.
自动续跑 (auto-continue)On RATE_LIMIT / QUOTA failures, retry automatically after the reset.

When either is on, a status line is added under the composer, e.g. 谷价 · 距峰价 23分 · 自动续跑.

How it works

Peak / valley windows

All times are Beijing time (UTC+8, no DST). Peak is:

09:00 – 12:00   and   14:00 – 18:00

Everything else is valley.

  • Entering peak — every running agent is cancelled with { keepInbox: true } (so nothing is lost), and new turns are intercepted on agent/pre-step: the already-claimed messages are pushed back onto the agent's inbox and the step is rejected.
  • Entering valley — every suspended agent receives a followup nudge, so it picks the work back up.
  • Switching the idle-task toggle off immediately resumes everything that was suspended.

Boundaries live in a constant in lib/index.js:

const BOUNDARIES_SEC = [9 * 3600, 12 * 3600, 14 * 3600, 18 * 3600];

Change those to match your own price schedule.

Auto-continue

Hooks agent/request-error. If the failure code is RATE_LIMIT or QUOTA, a timed resume is scheduled using the provider's Retry-After value (providerRetryAfterMs), falling back to 60 s when absent and capped at 24 h. The current request ends normally — the session just continues afterwards.

Settings

Persisted in the dsh settings namespace auto-continue:

KeyTypeDefault
idleTaskEnabledbooleanfalse
autoContinueEnabledbooleanfalse

Package layout

A single package serving both halves of the plugin:

package.json        dsh.bundle.patch  → cordis.patch.yml (inserts the host half)
                    dsh.client        → lib/client.js    (browser half)
cordis.patch.yml    bundle patch: inserts entry { id: auto-continue, name: dsh-auto-continue }
lib/index.js        host half  — settings, timers, agent events
lib/client.js       browser half — composer toggles + status line

Compatibility

  • Does not import any named export from @deepseek-ai/dsh-settings. Those (settingsNamespace, installSettingsSection) were removed in dsh 0.1.2-alpha.1; a missing named export is a link-time SyntaxError that kills the whole plugin. Instead the settings service is obtained via ctx.inject(["settings"]) and its installSection(...) method is used — the same approach as the first-party dsh-agent-default-model.
  • Browser half registers into conversation.input.left and conversation.composer.dock using slots.inject(...), which is required from dsh 0.1.5 onward.
  • The browser module id equals the package name (dsh-auto-continue), as dsh-client-modules keys client modules by loader entry name.

License

MIT

Comments

Loading…

Similar plugins

dsh-plugin-toggle

by Zenjibad

Enables or disables DSH plugins from Settings → Plugins: each toggle stops or starts the plugin immediately without a restart and the change persists across restarts.

Development & InfrastructureManifest valid

★ 1

↓ 69/wk

MIT

TypeScript

Aug 28, 2026

dsh plugin --profile web add dsh-plugin-toggle

by weibaohui

Auto-resume for interrupted agent sessions: an ordered rule table routes by failure type (rate limit, quota, auth, context overflow, crashed orphan) to automatic backoff retry, model switch, resume af

Sessions & MessagesModels & ProvidersDevelopment & InfrastructureManifest valid

★ 2

↓ 1k/wk

JavaScript

Sep 27, 2026

dsh plugin --profile web add @weibaohui/dsh-continue

by Frog755

DSH client plugin: auto-sends 「继续」 when a turn is interrupted/errored/overlong. No model/provider switching. Ships with a settings card.

Sessions & MessagesTerminal & ClientsDevelopment & InfrastructureManifest valid

★ 3

↓ 99/wk

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add @frog755/dsh-client-auto-retry

by zhu168

Save-money plugin for DSH (DeepSeek Harness) — define your own "pause / resume" time windows; at pause time running long tasks are paused (not stopped) automatically, and they resume when the window e

Tools & CapabilitiesModels & ProvidersWorkflow & AutomationManifest valid

★ 34

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile agent add dsh-save-money

by zhou1736948757-cpu

Automatically sends a "continue" prompt when a reply is cut off at the output token limit, resuming long answers without manual input; aimed at self-hosted Ollama deployments with small output caps.

Sessions & MessagesManifest valid

★ 0

BSD-3-Clause

JavaScript

Aug 25, 2026

dsh plugin --profile web add @dsh-external/dsh-auto-continue

by HsiangNianian

DSH Web UI plugin: auto-sends 「继续」 after non-human interruptions, with error classification, adaptive backoff, pause, idempotency/loop guards, resume templates, and stats—all configurable in settings

Terminal & ClientsUI & ExperienceDevelopment & InfrastructureManifest valid

★ 119

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-client-auto-continue