ClaudeCodeMod

All shelves / Mods / Usage

statusline

By ryanclark

statusline is a Claude Code usage mod by ryanclark.

Draws context, the 5-hour and 7-day limits, and extra usage under the prompt, from statusline, a status-line binary you install first.

Draws

Install

The marketplace name is ryanclark.

In Claude Code
/plugin install statusline --marketplace ryanclark/statusline
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
2.5.0
License
MIT
Repo stars
6
Last change
2026-10-15

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Reaches the network or an outside service
  • Calls another program on this machine

statusline is a native status line for Claude Code, and this plugin sits inside that project. Install the binary first with brew install ryanclark/tap/statusline. Needs Claude Code 2.1.287 or later. The recommended installer is statusline install --plugin. It creates ~/.statusline/settings.json if it is missing, adds the ryanclark marketplace, and installs the plugin. An existing statusLine in ~/.claude/settings.json is saved to ~/.statusline/native-statusline.json and removed, after a backup under ~/.statusline/backups/. A statusLine that already runs statusline is removed without asking. Anything else is removed only after you confirm. --keep-native leaves the native line. --dry-run shows the change. statusline install --native uninstalls the plugin and restores the saved statusLine. The in-session install line does not do that rewrite. placement defaults to below, which replaces the hint under the prompt. above uses the band over it. intervalMs defaults to 1000. cacheTtl defaults to 1h until a model switch reports the real one. The binary defaults to statusline. With no segments set, the line is the context percentage, input and output tokens, the 5-hour and 7-day limits, and extra usage. The 5-hour countdown shows above 70%. The 7-day countdown's threshold defaults to 100, which hides it. When a segment needs it, usage is fetched with the session's claude.ai login about once a minute, shared across chats. The 5-hour and 7-day limits share that request with extra usage. A layout with none of those segments makes no usage request. The author says the plugin's account request needs no Chrome cookie or Keychain access. Sessions on an API key or a third-party provider, and sessions where plugins cannot use the network, use per-chat limits and the cookie path for extra usage and credits. An update check runs in the background, and a successful check is cached for 24 hours. skip_update_check in ~/.statusline/settings.json turns that check off.

The install name is statusline. This page adds the author's name. The install line has no @suffix. The marketplace name is ryanclark. The plugin folder has no README. These lines are the repository README. The context percentage and the rate limits are why this page files it under usage. statusline-anywhere draws the status line you already configured, in color, above the prompt in Claude Desktop. In a terminal it stays out of the way. cost-meter draws session cost, context fill, and the 5-hour and 7-day windows on the status line, plus what each turn cost. This one draws the statusline binary's line, under the prompt by default, and refreshes it between turns. The usage request uses the session's own claude.ai login. The background update check is the network call. A git segment is off unless the layout adds one, and then git runs in the project directory.

Demo

The status line under the prompt: context, tokens, the branch, the 5-hour and 7-day limits, session cost, and a warm prompt cache.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • session.measureWhen usage is measured
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • turn.stepAt each step of a turn
  • prompt.composeWhile you write a prompt
  • tool.callAround a tool call, where it can hold one
  • classic.PermissionRequestA Claude Code event
  • classic.PostToolUseA Claude Code event
  • classic.UserPromptSubmitA Claude Code event
  • classic.SessionStartA Claude Code event
  • prompt.submitWhen you send a prompt
  • classic.StopA Claude Code event
  • classic.SubagentStopA Claude Code event
  • classic.PostToolUseFailureA Claude Code event
  • classic.PermissionDeniedA Claude Code event
  • classic.StopFailureA Claude Code event
  • classic.PostModelSwitchA Claude Code event
  • session.compactWhen the context is compacted
  • ui.renderDraws into the sessionPromptHintAbovePrompt

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

Files

The author's source, 3 files. They load when you open them.

Facts

Author
ryanclark
Category
Usage
Marketplace
ryanclark
Repo
ryanclark/statusline
Folder
crates/statusline/plugin
Version
2.5.0
License
MIT
Repo stars
6
Last change
2026-10-15
Language
Rust
Files
26

Other mods in Usage

usage-headerSzotaszDraws the context window above the prompt, a color per category, with the 5-hour and weekly limits under it.green-lanternvogiaan1904Draws the 5-hour and 7-day limits as Green Lantern charge that drains as you use it, with a power-ring spinner and an emerald theme.long-live-the-claudeLapis0x0Draws 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.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.
All 183 in Usage