kenjoe41/dsh-autocontinue ↗★ 0

dsh-autocontinue

自动继续会话并对失败回合进行退避重试 适合需要让 Agent 保持后台自主运行或在无人值守时自动重试的用户。

包名
dsh-autocontinue
兼容性
待验证
Harness 依赖范围
^0.2.0-rc.2
Cordis 依赖范围
~4.0.4
版本
0.1.13
许可证
MIT
最近更新
2026年10月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kenjoe41/dsh-autocontinue

Configuration

Every key, with its default. A profile patch replaces the whole config, so restate every key you want to keep.

KeyDefaultMeaning
enabledfalseArm every session in this profile. Turn on for launcher/cron/headless profiles.
goalSessionstrueArm sessions that have a goal.
reviveGoalstrueRe-arm a goal that stopped being driven, or was paused. blocked is never overridden.
maxGoalRevives5Consecutive revivals before giving up and reporting; resets when the goal starts a round. 0 = unlimited.
maxRounds0Continuation rounds per session. 0 = unlimited.
maxRetries0Consecutive failure retries. 0 = retry forever.
idleDelayMs0Grace period after idle before the next round. Keep 0 for one-shot launchers (see below).
retryBaseDelayMs15000First backoff; doubles per consecutive failure.
retryMaxDelayMs300000Backoff ceiling (5 min).
doneMarkerAUTOCONTINUE: DONEExact last line that stops the loop.
noticestruePost chat notice rows on arm / retry / revive.
debugfalseAppend the decision trace to debugFile.
debugFile/tmp/dsh-autocontinue.logWhere the trace goes.
resumeUnfinishedtrueOn startup, reopen sessions whose log ends inside an open turn and queue a resume round.
resumeDelayMs5000Settle delay before the restart scan, and before the resume round is queued.
resumeWindowMs86400000Only logs modified within this window are considered for resume. 0 = no window.
resumeMax5Maximum interrupted sessions resumed per startup. 0 = unlimited.
resumeDryRunfalseLog what the restart scan would resume without reopening anything.
resumeGoalSessionstrueReopen sessions with an active goal even when their last turn completed.
restorePendingMessagestrueRestore user messages the shutdown canceled and queue them after resume.
resumeJobLimit5Unfinished background jobs named in the resume prompt. 0 = notice only.
resumeSubagentLimit5Subagent sessions named in the resume prompt. 0 = notice only.

A cron or headless profile usually wants: