Custom Status Line for Claude Code Shows Context Usage, Cost, and Git Branch

Claude Code has a configurable statusLine setting that allows users to run a custom script to render their own status bar. A developer has built a bash script using this feature to address common annoyances during CLI sessions, such as losing track of context window limits, running the wrong model, or forgetting the current git branch.
What the Script Displays
The custom status bar renders two lines of information:
- Line 1: Current model · Clickable repository link · Git branch
- Line 2: Context usage bar (green → yellow → red) · Usage percentage · Session cost · Session duration
Requirements and Setup
The script requires jq to be installed. The GitHub repository includes installation instructions for Windows, macOS, and Linux. The script is designed to be further customized by the user.
Source and Availability
The script is hosted on GitHub at https://github.com/hsinhan-h/ClaudeCode_statusline-command. A preview image of the status line in action is also available in the source post.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude's Silent Drop-Off: The Action Layer Failure When AI Agents Hit Business Sites
Claude can read business sites (pricing, booking flows, forms) but fails at the action layer — booking, submitting, or routing — due to lack of callable endpoints. This causes invisible user drop-off with no analytics signal.

Chrome Extension Adds Live Preview to Claude Code Web
A Chrome extension called Claude Code Preview adds live preview functionality to Claude Code Web, similar to Lovable and other 'vibecoding' sites, allowing side-by-side viewing of deployments.

Hybrid search with RRF improves AI memory system over pure vector search
An open-source AI memory system using PostgreSQL with pgvector found pure vector search insufficient for exact matches, so it added full-text search and merged results using Reciprocal Rank Fusion (RRF) with k=60, plus query enrichment via tokenizer.

The Human Creativity Benchmark: Separating Convergence from Divergence in AI Creative Evaluation
Contra Labs introduces the Human Creativity Benchmark (HCB), a framework that distinguishes objectively verifiable criteria (e.g., prompt adherence) from subjective taste (e.g., visual appeal) in evaluating generative AI for creative work. The benchmark reveals that no current model is reliably both correct and steerable, addressing mode collapse and the need for differentiated output.