ClaudeCodeMod

All shelves / Mods / Usage

long-live-the-claude

By Lapis0x0

long-live-the-claude is a Claude Code usage mod by Lapis0x0.

Draws the 5-hour and 7-day limits, context, and cache time above the prompt. Long-run, off by default, keeps the cache warm and pauses near the limit.

Draws

Install

The marketplace name is long-live-the-claude.

In Claude Code
/plugin marketplace add Lapis0x0/long-live-the-claude
/plugin install long-live-the-claude@long-live-the-claude
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
5
Last change
2026-10-07

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Sees tool calls
  • Runs a command when you press

An unofficial plugin, not affiliated with or endorsed by Anthropic. Needs Claude Code 2.1.286 or later for function hooks. A subscription supplies the 5-hour and 7-day readings and the usage pause. With an API key the band shows context and cache only, and keep-alive still works. Long-run is off until you turn it on, per conversation. About three minutes before the cache would expire it refreshes the cache. While the model has not said it is done, that refresh is a short check-in plus a system reminder only the model sees. At 95 percent of the 5-hour window the next tool result carries a reminder to stop the step. Two minutes after the reset it submits a wake-up prompt, with notifications that were kept during the pause. The author counts one keep-alive as 0.05 of a whole context at the base input price, about 40 keep-alives (about 38 hours) as the cost of one rebuild, and a typical usage pause as about 5 keep-alives. Refresh sends one keep-alive now. The check-in costs about the same.

The plugin is the repository. The marketplace name is long-live-the-claude. The usage band is why this page files it under usage. keepalive-alexandernicholson draws a prompt-cache bar for each conversation, and can keep an idle cache warm or compact it before it expires. cache-warmer resends the last request to keep the prompt cache warm when that saves at least $0.05, and draws a band with Clawd while it runs. This band adds the two plan windows, and long-run also pauses the session near the 5-hour limit and wakes it after the reset. Notifications held during a pause are not a refused tool call, so this page does not list a hold. The keep-alive, the check-in, and the wake-up are model calls on the login Claude Code already holds, so this page does not list them as network access. The check-in reminder and the pause reminder are added to what the model reads.

Demo

The band above the prompt shows 5h at 96 percent, 7d at 33 percent, context 239k of 600k, and a cache countdown of 59 minutes, with Refresh and Long run switched on.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • prompt.submitWhen you send a prompt
  • classic.PostCompactA Claude Code event
  • classic.PostModelSwitchA Claude Code event
  • session.endWhen a session ends
  • command.runWhen you run its slash command/long-run
  • ui.messageAdds a message to the session
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /long-run

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
Lapis0x0
Category
Usage
Marketplace
long-live-the-claude
Repo
Lapis0x0/long-live-the-claude
Version
0.2.0
License
MIT
Repo stars
5
Last change
2026-10-07
Language
TypeScript
Files
12

Other mods in Usage

usage-petmanson341349-beepDraws context, the 5-hour and weekly limits, and the cache hit rate above the prompt. The desktop Code tab draws four rings, with a pixel pet beside them.context-alarmmutlumehmetWarns when the context window fills, with a status line under the prompt, and suggests /save-context before compaction.cache-watchernikisgeDraws the cache time, the context, the plan limits, and this session's API value above the prompt, and a press can keep the cache warm.fast-jev-outputtamaratranSends a long Bash result to TypeSafe's Jev, which trims it before Claude reads it, and toasts the cut. The full output stays in the project.usage-statusrobbytDraws a row under the prompt hint with the 5-hour and 7-day limits left and how full the context is.brewmod-plan-effortkochetkov-maDraws a row above the prompt while Claude plans, naming the effort it raised to, xhigh by default.cache-keepernateherkaiDraws whether this chat's prompt cache is warm or cold, what a cold rewrite would cost, and the plan limits, and can keep a big chat warm.usage-budgeterikdarlingdataHolds a commandToasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default.leitstanddominikmartnDraws free disk space and context fill above the prompt, and names a hook of yours that just blocked a tool call.working-memoryHangghostDraws the context window as a brain: tool calls light regions, it fills as context grows, and compact plays a sleep sweep.jev-pilotAkramovic1Asks TypeSafe's Jev, through OpenRouter, to set each turn's effort, the subagent model, and the one skill a prompt needs, with a pilot that says what it chose.cmd-dietVedantAndhaleAdds quiet flags to noisy shell commands before they run, so Claude reads the short output, and counts the quieted commands on the status line.
All 183 in Usage