Back to feed
Dev.to
Dev.to
7/18/2026
The original title is: "Fully Custom Claude Code Status Line: A JSON-Driven 3-Line Readout of Quota, Cost, and Health"

The original title is: "Fully Custom Claude Code Status Line: A JSON-Driven 3-Line Readout of Quota, Cost, and Health"

Original: Fully Custom Claude Code Status Line: A JSON-Driven 3-Line Readout of Quota, Cost, and Health

Short summary

A detailed tutorial on building a custom Claude Code status line that displays plan quota, context usage, session cost, and automation health in three lines. The implementation uses a shell script driven by JSON piped via stdin, requiring no API calls or auth. Includes color-coded thresholds (green/yellow/red) for context, 5-hour, and 7-day usage metrics.

  • Configure statusLine.command in settings.json to run a custom shell script
  • Script reads quota, cost, and context data from stdin JSON with jq fallback caching
  • Color-coded thresholds: green <50%, yellow 50-79%, red 80%+ for all metrics

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more