article research
Long-horizon agents: continuation, recovery, and limits
Long-horizon agents combine durable goals, schedules, heartbeats, autonomous continuations, and crash recovery to work across minutes, hours, or days. Prime Agent implements these through daemon-backed session trees, JSONL persistence, and kernel snapshots. Bounded budgets and gates are guardrails, not guarantees of completion.
First-party announcement, documentation, release, or installer.
Continuation mechanisms
Long-horizon operation combines explicit goals with heartbeats, schedules, and autonomous follow-up turns. These mechanisms let work continue beyond one interactive request and provide recurring opportunities to inspect progress.
Continuation must remain tied to a durable objective. Repeated turns or timed prompts alone can extend activity without moving the task toward a correct result.
Daemon recovery
Prime Agent's daemon lets resident session workers outlive the TUI and supports reattachment. After a crash, the supervisor can rebuild work from append-only JSONL, child registries, and available kernel snapshots.
Recovery depends on readable artifacts and compatible client, daemon, and worker versions. State newer than the latest durable record may still be lost.
Autonomy and budgets
Turn, continuation, token, and wall-clock budgets bound how long autonomous work can proceed. Quality gates provide a separate way to stop when a defined check passes.
These are controls on execution, not estimates of how much work a task necessarily requires. A difficult task can exhaust its budget before satisfying the gate.
Safety limits
Long-horizon guardrails contain resource use and create observable stop conditions, but they do not guarantee correctness or completion. A gate verifies only its command, and a budget stop may leave partial output.
Extended work can accumulate provider cost, disk usage, and load even within configured limits. Operators should review artifacts, preserve recoverable state, and treat the host permission boundary the same way they would for an interactive session.