Developer Builds Custom Claude Code Status Line Showing Quota, Cost, and Context Usage
A developer has created a fully customized status line for Claude Code that displays plan quota, session cost, context usage, and automation health in a three-line readout. The setup uses Claude Code's built-in statusLine.command feature in settings.json, which pipes JSON data directly into an arbitrary shell script on every turn. Because quota and cost data flow in via stdin, the solution requires no extra API calls or authentication. The motivation was practical: running overnight automation jobs caused quota limits to silently zero out, causing tasks to be skipped without any visible warning. The script caches the latest JSON to a temp file as a fallback, ensuring the status line remains informative even when stdin is empty.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in