
Made a tool that brings back my Ghostty tabs and splits after a reboot, plus the Claude Code / Codex session that was running in each pane
You know the problem if you run AI agents in the terminal. You've got a bunch of tabs and splits with claude and codex sessions going, then you restart your Mac and all of it's gone. Not just the layout, the agent context too. gtab and macterm already handle the layout part well, but I wanted the sessions back as well, so I put this together.
You run `ghostty-resurrect backup` before you restart, then `ghostty-resurrect restore` after. It reopens the windows/tabs/panes and runs `claude --resume <id>` or `codex resume <id>` in each pane for you.
Fair warnings: splits come back as a flat row right now, not the exact nested layout (working on it). macOS + Ghostty 1.3.0+. One file, no dependencies. Repo: https://github.com/redareda9/ghostty-resurrect