
Claude Hibernate
Don't lose running session on Claude Code CLI
12 followers
Don't lose running session on Claude Code CLI
12 followers
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.


Free
Launch tags:GitHub
Launch Team / Built With

World model AI : Sharm SEKAISimulate your idea on a living world.
Promoted

How does the overlay handle cases where the warning text gets truncated or changed between Claude Code versions? A bit worried about false positives keeping me locked out.
@dilararuhw hello! Thank you for your feedback! I hope to find a smarter way to avoid that, but for now it matches the current possible warning messages. As Anthropic updates it, the next versions of this wrapper will cover it as well.
How does it detect the exact warning text if the message changes between Claude Code versions? Been burned before by tools that rely on string matching on output that updates without notice.
@adembezenj9td hello! It does depend on string matching output of a session usage warning. So, I understand this might be a problem depending on what Anthropic puts as a warning text. I will roll out the next versions when the changes occur. Thank you for your feedback!
The game-styled overlay is such a clever touch for what could have been a boring CLI utility. Whoever thought to make the wait screen actually engaging instead of just blocking the terminal showed real care for the user experience.
@lhancltm hello! thank you! I hope I can make it more pleasant to use!
the game-styled overlay is such a clever touch, turns a frustrating quota hit into something that actually feels intentional instead of disruptive.
@erdalen7n hello! Thank you very much, I hope I can make it even better!
The game-styled lock screen is a genuinely clever touch, turning a frustrating quota wall into something that feels intentional instead of punishing. Smart way to ship something useful without touching the underlying tool.
@dudu1153696 hi! thank you for your opinion! I hope you try it and have some feedback on it :)