Power_failure_resumer restores interrupted Codex and Claude Code sessions after outages
dshukertjr · x · 2026-08-04
A tool to restore interrupted coding-agent sessions after power loss
The author says a brief power outage broke a setup of local agent sessions running in Ghostty tabs on a Mac, so they built powerfailureresumer (pfr) to automate the annoying recovery work.
- It detects likely crash clusters from session-file write timestamps after a reboot.
- It figures out which sessions were live, which project directories they belonged to, and which model / effort settings were being used.
- It then relaunches each session in a fresh Ghostty tab and reopens the corresponding cod resume <id> -m <model> flow.
- The project is MIT licensed and built with bash + Python for macOS / Linux.
The screenshots show the installer, recovery scan, and a terminal UI that reports restored sessions and confidence levels. The pitch is simple: when a power cut kills your terminal mid-swarm, get your Codex and Claude Code sessions back with one command.
More from coding & agent
- Multi-agent systems may overwhelm laptop RAM and CPU, poster warns — zephyr_z9 · 2026-08-04
- Grok can watch video links, summarize them, and answer questions — Kyrannio · 2026-08-04
- Doota Mail self-hosting is now fork, secrets, and CI rerun — samgoodwin89 · 2026-08-04
- Codex can hand off image and video generation to GlobalGPT through MCP — SarahAnnabels · 2026-08-04
- Codex routes media generation to GlobalGPT and returns results in place — SarahAnnabels · 2026-08-04
- GlobalGPT launches a terminal CLI for chat, image, and video workflows — SarahAnnabels · 2026-08-04