Your Claude Code sessions, back exactly where you left them.
A crash, restart, or reboot doesn't have to cost you your terminal windows. Restore AI Windows reopens your iTerm sessions and browser windows — tabs grouped into their original windows, on the exact virtual desktop, position, and size.
Free & open source · macOS · iTerm2 required
Snapshot every 2 minutes. Restore in seconds.
- iTerm+ browser windows
- Groupedby project
- Geometryposition, size, Space
- Loginauto-restore agent
One window per project, one tab per session.
Restore AI Windows reads each Claude Code session's working directory
and groups them the same way you organize your projects — a
~/Sites/<project> window, a tab for each session in
it, with the project name shown right in the iTerm badge.
- Reads the most-recent
cwdfrom every active transcript - One iTerm window per project, one tab per session
- Friendly project name shown in the iTerm badge
- Skips the trust prompt and auto-picks Resume from summary
Windows come back at the exact position, size, and Space.
A launchd snapshot agent records each project window's frame and virtual desktop every couple of minutes. On restore, that geometry gets played back — so your layout survives a crash the way you left it, not just as a pile of default-sized windows.
- Captures position, size, and Space per project window
- Best-effort Space restore via a compiled CoreGraphics helper
- Falls back to position + size if Screen Recording isn't granted
- No manual re-tiling after a reboot
Browser windows come back too — tabs grouped, Space intact.
Alongside your iTerm sessions, Restore AI Windows snapshots your BrowserOS / Chromium windows: their tabs, grouping, geometry, and Space. On restore, it opens one window per saved group and moves it back to where it was — same best-effort Space handling as the terminal side.
- Works with any Chromium-family browser with AppleScript scripting
- Tabs stay grouped into their original windows
--browserflag to restore browser windows onlyRESTORE_SKIP_BROWSER=1to opt out and restore iTerm only
"Restore my sessions" — hands-free
A bundled Claude Code skill runs the restore from inside a session — just say "restore my sessions." No terminal command to remember.
A launchd agent restores your last snapshot automatically at every login — no click required.
Each restored session gets a prompt to summarize and pick up right where it left off.
A background launchd agent records active sessions and window geometry, so restore is never far behind.
What it needs to run.
One manual step after install: grant Screen Recording so Space restore works.
- macOS
- iTerm2
- Claude CLI on your PATH
- python3 + Xcode Command Line Tools
- Screen Recording permission (for Space restore)
Stop losing your windows to a crash.
Free and open source. Grab the DMG or install from source.
Free · macOS · MIT licensed