🔥 What it is
A session limit-hit or a crash loses in-flight work—the plan, the checklist, the list of files you were mid-edit on. CoalHearth reduces that loss:
- The recovery core. A
PostToolUse hook builds a best-effort snapshot of the session (goal + checklist from task.md, constraints from AGENTS.md, modified files accumulated from the file-editing tool calls the hook observes—no git spawn, no child processes) and journals it atomically every step to session_handoff.json.
- Warm-resume on boot. On the next session's
SessionStart, if the prior session's journal is still marked in_progress, CoalHearth injects a markdown recovery block—the goal, the checklist, the files it was touching, the planned next steps—so you resume from context instead of reconstructing it by hand.
- Subagent-death visibility. A spawned subagent's tool call resolving (success or failure) is now captured with a status + a short outcome snippet from its own report—the "7 of 11 checks done" a revive-or-defer decision actually needs, not just a name. On Claude Code, an unsurfaced resolution also nudges on your very next prompt—seconds to minutes away, not a session restart.
[!IMPORTANT]
The recovery block never asks you to blind-trust it—it always tells the agent to verify against git status / git diff first, because the journal may be stale or half-applied.
That recovery core is the value.
🛡️ What it does (and does NOT) guarantee
CoalHearth reduces the damage of a session interruption—it does not prevent one, and it guarantees nothing: