long-live-the-claude
by Lapis0x0 · ★ 5 · updated yesterday
Keeps long-running Claude Code sessions alive: a usage band above the prompt, prompt-cache keep-alive across idle gaps, and a graceful pause at 95% of the 5-hour limit that wakes the session when it resets.
Install
/plugin marketplace add Lapis0x0/long-live-the-claude/plugin install long-live-the-claude@long-live-the-claudeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.measureturn.startturn.steptool.callturn.completeprompt.submitclassic.PostCompactclassic.PostModelSwitchsession.endcommand.runui.messageui.render- API calls
$.clock.every$.clock.now$.command.register$.model.fork$.prompt.submit$.session.id$.session.usage$.store.delete$.store.get$.store.set$.ui.resolve$.ui.status$.ui.toast
Origin
- How it got here
- Found through a post on X by @lapis0x065612, then checked on GitHub: the repo has a plugin manifest and function hooks. Listed .
- Repository
- github.com/Lapis0x0/long-live-the-claude
- Path in repo
- repository root
- Source commit
159ea3ethe exact code the scan read- Author
- @Lapis0x0
- License
- MIT
- First published
- Last pushed
- First listed here
- On X
- Mentioned in 1 post on X
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
Posts about this repo
Built Long Live the Claude — a Claude Code Mod for long-running sessions. At 95% of your 5h limit, Claude gracefully pauses, keeps the prompt cache warm, then automatically wakes up after reset and continues working. https://github.com/Lapis0x0/long-live-the-claude