kenjoe41/dsh-autocontinue ↗★ 0
dsh-autocontinue
Automatic same-session continuation for dsh: keep an idle agent working, and retry failed turns with backoff. 适合需要让 Agent 保持后台自主运行或在无人值守时自动重试的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kenjoe41/dsh-autocontinueREADME
Read the full README ↗Configuration
Every key, with its default. A profile patch replaces the whole config, so
restate every key you want to keep.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Arm every session in this profile. Turn on for launcher/cron/headless profiles. |
goalSessions | true | Arm sessions that have a goal. |
reviveGoals | true | Re-arm a goal that stopped being driven, or was paused. blocked is never overridden. |
maxGoalRevives | 5 | Consecutive revivals before giving up and reporting; resets when the goal starts a round. 0 = unlimited. |
maxRounds | 0 | Continuation rounds per session. 0 = unlimited. |
maxRetries | 0 | Consecutive failure retries. 0 = retry forever. |
idleDelayMs | 0 | Grace period after idle before the next round. Keep 0 for one-shot launchers (see below). |
retryBaseDelayMs | 15000 | First backoff; doubles per consecutive failure. |
retryMaxDelayMs | 300000 | Backoff ceiling (5 min). |
doneMarker | AUTOCONTINUE: DONE | Exact last line that stops the loop. |
notices | true | Post chat notice rows on arm / retry / revive. |
debug | false | Append the decision trace to debugFile. |
debugFile | /tmp/dsh-autocontinue.log | Where the trace goes. |
resumeUnfinished | true | On startup, reopen sessions whose log ends inside an open turn and queue a resume round. |
resumeDelayMs | 5000 | Settle delay before the restart scan, and before the resume round is queued. |
resumeWindowMs | 86400000 | Only logs modified within this window are considered for resume. 0 = no window. |
resumeMax | 5 | Maximum interrupted sessions resumed per startup. 0 = unlimited. |
resumeDryRun | false | Log what the restart scan would resume without reopening anything. |
resumeGoalSessions | true | Reopen sessions with an active goal even when their last turn completed. |
restorePendingMessages | true | Restore user messages the shutdown canceled and queue them after resume. |
resumeJobLimit | 5 | Unfinished background jobs named in the resume prompt. 0 = notice only. |
resumeSubagentLimit | 5 | Subagent sessions named in the resume prompt. 0 = notice only. |
A cron or headless profile usually wants: