A lightweight, zero-config statusline for Claude Code. Track context, your 5-hour session, and weekly allowance — without ever leaving the terminal.
$ npx ctxline-claude
Read left to right, it's the whole picture. Everything is best-effort and silent — if a source is missing, the line just skips it and still renders.
↑ hover, tap, or use arrow keys to inspect a segment
A single zero-dependency Node script. It always prints, and never hangs or throws.
Context comes straight from Claude Code's session data on every render.
5-hour and weekly limits come from the session data — no network. It falls back to Anthropic's usage API when needed; credentials never leave your machine.
The fallback fetch is cached and shared across sessions, with adaptive timeouts so the line stays snappy.
Every failure path degrades silently to cached or partial output. The statusline always renders.