Skip to content

Instantly share code, notes, and snippets.

View kalaganov's full-sized avatar

Eugene kalaganov

View GitHub Profile
@kalaganov
kalaganov / claude-statusline-prompt.md
Created September 16, 2026 19:51
Claude Code status line: context, 5h / 7d / model-scoped weekly limits, path, branch, model

Claude Code status line: context, 5h / 7d / Fable limits, path, branch, model

Important

Paste everything below the horizontal line into Claude Code and press Enter. Claude will install the script and wire it up.

Requirements: macOS, jq and curl. curl is always there; jq ships with macOS 15 (Sequoia) and later, so on a current system you install nothing. On older versions: brew install jq. Works in any terminal (Ghostty, iTerm, Terminal.app).

Note

Subscription vs API key. The 5h, 7d and Fable segments exist only for claude.ai subscription logins (Pro/Max/Team). With an API key (pay-as-you-go), Claude Code does not report plan limits and there is no OAuth token in the Keychain, so those three segments are silently skipped and the line shows only ctx, path, branch, model and effort. Nothing breaks.