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

HomeClaw Plugin Connects Apple HomeKit to OpenClaw
HomeClaw is an OpenClaw plugin that connects Apple Home/HomeKit devices to OpenClaw. It requires an Apple Developer Account to build and run due to Apple HomeKit restrictions for notarized distributions.

Eden AI: European API Hub for AI Models – Pivots as OpenRouter Alternative
Eden AI offers a single unified API to access 500+ AI models (LLMs, vision, OCR, speech) with smart routing, fallback mechanisms, and region control. Positioned as a European alternative to OpenRouter.

Skales: Desktop AI Agent with Ollama Support, 300MB Idle RAM
Skales is a native Electron desktop app that provides an autonomous AI agent with .exe/.dmg installers, works with Ollama for local inference or cloud providers, and uses ~300MB idle RAM with data stored locally in ~/.skales-data.

OpenClaw Skill Reduces Accessibility Tree Tokens from 600K to 1.3K
A developer built an OpenClaw skill that uses ML-based element ranking to prune accessibility trees, cutting slickdeals.com from ~598K tokens to ~1.3K tokens by keeping only the top ~50 actionable elements.