trending

1d ago

Claude Hibernate - Don't lose running session on Claude Code CLI

Automatically protect long-running Claude Code sessions from accidental quota exhaustion. Claude Hibernate is a lightweight PTY wrapper for Claude Code. It watches the terminal output for the session-usage warning, and before the quota runs out it switches Claude into **Manual mode**, locks the terminal behind a game-styled overlay, waits for the quota reset plus a safety buffer, restores the previous mode, and unlocks. No mods to Claude Code or API or reverse engineering.