rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:pinion05/dsh-neverdie
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Automatically revives DeepSeek Harness (DSH) sessions whose turn was killed by a process exit. When the host dies mid-turn, every session that was working ends up frozen behind a "Task stopped — The DSH process exited before this turn finished…" banner, dead until a human types something. Neverdie removes the human from that loop: after DSH restarts, the killed sessions come back to life on their own and keep working — and their active goals get re-armed so autonomous goal rounds continue.
A DSH process that is killed, crashes, or times out during shutdown takes every running session down with it, and the cut-short turn shows up two different ways depending on how the process went:
turn/end closer with reason interrupted.aborted with cause disposed; the aborted tool call leaves an "Error: tool call aborted" message as the visible tail of the conversation.Either way the session sits idle, dead until a human types something — even though the durable session log, the workspace, and the model context are all intact. All the work was interrupted, not lost. Long-running jobs (overnight builds, multi-hour agent tasks, goal-driven rounds) deserved better than "click Send again in the morning".
Neverdie is a host-side Cordis plugin that scans once after every boot, finds exactly the sessions that were mid-turn when the previous process died, and re-prompts them with a short configurable message so the agent resumes where it stopped.
turn/end closed interrupted (hard crash) or aborted with cause disposed (graceful exit / restart). Deliberate stops (aborted cause user/parent/hook), sessions that ended normally, and sessions that already have newer input are never touched — matching on the abort cause rather than the visible "Error: tool call aborted" text is what keeps user-stopped sessions deadsession/end-seed) that DSH appends after a restart, and synthesizes the interrupted closers in memory for cold logs, so detection works whether or not the session was reopened firstgoals.resume path, so automatic continuation rounds keep running. Paused, blocked, complete, or round-exhausted goals are respected as-ismaxRevives consecutive neverdie revives per session since the last genuine user message; a host that keeps dying cannot burn tokens forever, and one real user message resets the budgetneverdie, visible in the transcript and countable from the session log, plus a [neverdie] line in the host journalRestart=on-failure) starts a new process; the plugin arms and waits delaySeconds for boot to settle.interrupted one or an aborted-with-disposed-cause one, with no newer turn, message, or pending inbox input, qualifies.resolveAgent (resumes the cold session), re-arm its active goal if disarmed, queue the revive message, flush to durable storage.| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
true |
Master switch |
delaySeconds |
number |
10 |
Wait after host start before the startup scan (0–600) |
maxAgeMinutes |
number |
60 |
Only revive sessions whose interrupted turn is younger than this (1–1440) |
maxRevives |
number |
5 |
Max consecutive neverdie revives per session without genuine user input (0–10) |
reviveMessage |
string |
(see below) | The message injected to revive a session |
resumeGoals |
boolean |
true |
Re-arm active-but-disarmed goals during revival |
Default revive message:
[neverdie] The DSH process exited before the previous turn could finish, so that turn was closed. Continue the interrupted task from where it stopped. Tool calls that were cut off have unknown outcomes — inspect their effects before retrying them.
Restart=on-failure).maxAgeMinutes stay dead — raise the window if your host can be down for a long time.MIT © pinion05
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。