DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-keep-running

Keep Running

DeepSeek Harness 的看门狗插件:发生 429/配额错误时,通过反复发送 system-reminder 自动恢复任务,直到成功。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-keep-running@0.1.3
README兼容性版本

兼容性与来源证明

Keep Running 以 dsh-keep-running 发布,当前版本为 0.1.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/10/19

版本

0.1.3stable
2026/10/19

相关插件

正在加载相关插件…

最新版
0.1.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
34.5 kB
文件数
6
Surface
any
许可证
Apache-2.0
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/10/19
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Ab Ocrdsh-ab-ocr--- description: "外部 ocr 工具:逐页识别扫描的 PDF 或图像,仅在处理完最后一页后按顺序合并页面,并使用模型确定的标题级别保存为一个 Markdown 文档。" kind: "package-reference" ---Scriptor@linfengqaqtat/dsh-scriptorWebnovel Writer:DSH 长篇网文写作工作台

README

dsh-keep-running

English | 简体中文

A watchdog plugin for DeepSeek Harness: on a quota / rate-limit (HTTP 429) error, it automatically creates a fixed-interval scheduled task that keeps delivering a "continue the task" prompt until it succeeds or you take over.

Depends on the official scheduled-task plugin. This plugin creates and deletes schedules through the ctx.schedule service provided by @deepseek-ai/dsh-schedule, so you must mount it first — otherwise keep-running cannot register without that required service (see Dependency).

Features

  • Auto-resume — on quota exhaustion (429) it creates an every schedule that periodically re-sends a "continue" prompt;
  • Breakpoint capture — records the most recent real user message so it can resume context;
  • Only fires when idle — the schedule runtime delivers it while the agent is idle, so it never interrupts your manual work;
  • Stops on success — when any turn closes normally (quota recovered) the schedule is deleted automatically;
  • Two commands — /keep-running list and /keep-running cancel <id> (see Commands).

Dependency

⚠️ You must mount the official scheduled-task plugin @deepseek-ai/dsh-schedule.

keep-running declares inject: ['commands', 'schedule'] and creates, reads, and deletes schedules through the ctx.schedule service, which is registered by @deepseek-ai/dsh-schedule. Mounting keep-running without it leaves the required service missing, so the plugin cannot register and the watchdog never works (the most common "it didn't work" cause).

Changed in DSH 0.1.7. Schedules no longer live in the session log's schedule/change events; Host storage owns them and ctx.schedule is the only supported read/write path. Appending schedule/change directly is no longer a supported write.

Quick Start

  1. Install the plugin:
# A. Official command (backs onto pnpm; install pnpm first)
npm i -g pnpm
dsh plugin --profile web add dsh-keep-running

# B. Install with npm directly into the profile directory
cd ~/.dsh/profiles/web    # Windows: C:\Users\<you>\.dsh\profiles\web
npm install dsh-keep-running --save

And install its dependency plugin into the same profile:

cd ~/.dsh/profiles/web
npm install @deepseek-ai/dsh-schedule --save
  1. Mount it in the profile cordis.patch.yml. To load a plugin you must insert it, not target an id (a bare - id: keep-running warns entry "keep-running" not found and does nothing). dsh-schedule must come before keep-running:
- insert:
    - id: dsh-schedule
      name: '@deepseek-ai/dsh-schedule'
    - id: keep-running
      name: 'dsh-keep-running'
      config:
        intervalSeconds: 1800        # task interval (seconds), min 300
        continuePrompt: '请继续完成之前未完成的任务:{{task}}'
        quotaKeywords: []            # empty = HTTP 429 only; add vendor terms as needed
  1. Restart dsh web and start a new session.

Configuration

KeyDefaultDescription
intervalSeconds1800Task interval (seconds); the "continue" prompt is re-sent each tick. Minimum 300
continuePrompt请继续完成之前未完成的任务:{{task}}Prompt delivered each tick; {{task}} is replaced by the breakpoint (most recent user message, truncated to 200 chars)
quotaKeywords[]Quota keywords (lowercase). [] means HTTP 429 only; add vendor terms to adapt other providers

quotaKeywords

Default [] = only HTTP 429 (covering RATE_LIMIT / QUOTA codes and quota signals in code/message). For multi-vendor setups, add each provider's error terms:

config:
  quotaKeywords: ['quota exceeded', 'requests limit', '5-hour usage quota']

Commands

The plugin registers its own namespaced /keep-running command (it does not collide with a future /schedule):

  • /keep-running list — list all active keep-running tasks in the current session (id, interval, breakpoint, next tick).
  • /keep-running cancel <id> — cancel the task with that id (id from the list output).

The command reads the ctx.schedule task list directly, without needing the model, so it works even while quota is exhausted.

How it works

  1. Listen to agent/error: a quota 429 is rejected the moment the request is sent, so it flows through step()→turn()'s catch→throwError() and never reaches the agent/request-error waterfall (that fires only on a streaming error finish). The event that actually fires is the global agent/error, whose payload.error.failure is the LlmFailure carrying status.
  2. isQuotaError detects quota: HTTP 429, stable codes (RATE_LIMIT / QUOTA), or quota signals in code/message, plus quotaKeywords.
  3. ensureWatchdog calls ctx.schedule.create(..., { title: 'keep-running', every_seconds }) to create the schedule; an active guard prevents duplicates, and a task-list query recovers across process restarts.
  4. Each tick delivers continuePrompt; when any turn closes normally (quota recovered) turn-stopping → stopWatchdog deletes it.

Use cases

  • A long task hits a quota ceiling mid-run (e.g. a 5-hour usage quota) and you want it to resume automatically;
  • You don't want to manually restart the task after quota recovers;
  • You don't want to be interrupted while working manually (delivery happens only while the agent is idle);
  • You inspect or cancel tasks anytime with /keep-running list / cancel.

Development

Build

npm install
npm run build      # compiles src → lib/index.js

Mount locally

During development you can mount the compiled output via a file:// URL (still using the insert: form):

- insert:
    - id: dsh-schedule
      name: '@deepseek-ai/dsh-schedule'
    - id: keep-running
      name: 'file:///D:/ui-workspace/dsh-keep-running/lib/index.js'
      config:
        intervalSeconds: 1800

Adjust the URL to your checkout path.

Restart

dsh web

Verify

Confirm both plugins are mounted:

# Windows
dsh web --dump-config | findstr /C:"keep-running" /C:"dsh-schedule"

# Linux / macOS
dsh web --dump-config | grep -E "keep-running|dsh-schedule"

Seeing the keep-running and dsh-schedule rows with no not found warning means they are mounted.

License

Apache-2.0