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

Show HN: WUPHF — Karpathy-Style LLM Wiki with Markdown + Git as Source of Truth
WUPHF ships a wiki layer for AI agents using Markdown + Git for persistence, bleve (BM25) + SQLite for retrieval, with entity fact logs, wikilinks, and a daily lint cron. Runs locally with no vector DB dependency yet.

OpenClaw vs Hermes: Choose the Right Self-Hosted AI Agent After 100+ Deployments
After deploying 100+ AI agents for clients, a Reddit user shares hard-won lessons: OpenClaw (149K stars) is the reliable workhorse for single/small fleets; Hermes excels at multi-agent orchestration but has a smaller community.
Claude Code vs Codex: 36 vs 28 files, $2.50 vs $2.04, infinite loop caught — real-world comparison
A developer runs the same two tasks on Claude Code and Codex (Cursor): PR triage bot and real-time code review UI. Results: 36 vs 28 files, $2.50 vs $2.04 cost, Claude produced fewer TypeScript errors, Codex had an infinite React loop.

OpenClaw Browser Relay Chrome Extension Alternative to Manual Configs
A Reddit user reports success with a Chrome extension for OpenClaw browser relay after manual configuration attempts caused system crashes and debugging headaches.