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

Agentlint: GitHub App that catches CLAUDE.md contradictions and broken pointers on every PR
Agentlint is a GitHub App that audits your full agent-rules surface (CLAUDE.md, AGENTS.md, skills, hooks) on every PR, posting inline comments for contradictions, broken paths, and unsupported harness features. Free for public repos.

Agent Skill Harbor: GitHub-native skill management for AI agent teams
Agent Skill Harbor is an open-source platform for teams to share, track, and govern AI agent skills using GitHub-native workflows. It collects skills from GitHub repos, tracks provenance, supports safety checks, and publishes a static catalog site with GitHub Actions and Pages.

Claude-rank: Claude Code Plugin for AI Search Visibility Audits
Claude-rank is a free Claude Code plugin and CLI that audits technical foundations for AI search visibility, handling technical SEO, AI citability scoring, crawlability checks for AI bots, and automated fixes for discoverability issues.

OpenClaw A2A Plugin: Delegate Work to Remote Agents and Replay Continuation State
A new open-source plugin adds the `remote_agent` tool to OpenClaw, enabling cross-agent delegation with A2A protocol support and continuation state replay.