Status Line for Claude Code CLI: Cache, Git, Context, and Limits in One Place
Anthropic
OpenAI
Google/DeepMind
A developer created a status line for the Claude Code terminal interface that displays essential session data in a single line: model, effort, context usage, prompt cache statistics, rate limits, and Git repository status. The tool reads session info from stdin, handles long names and warns about context thresholds. It also includes a drift detector for CLAUDE.md, AGENTS.md, and GEMINI.md files to keep multiple AI agents in sync.
A developer named Ilia Pluzhnikov built a statusline for Claude Code CLI, which displays a compact line at the bottom of the terminal with useful session information. It shows the model and effort level (e.g., Op4.8:hg for Opus 4.8 with high effort), current folder and Git branch, repository state (modified, added, deleted, renamed, untracked, conflicts) in VS Code style abbreviations, ahead/behind status relative to origin, drift between CLAUDE.md, AGENTS.md, and GEMINI.md files, context window usage with color coding, prompt cache hit ratio and TTL, and rate limits for 5-hour and 7-day windows. The statusline script is a Node.js program called by Claude Code via a statusLine command in settings.json, receiving JSON on stdin and printing the line. It uses ANSI codes for colors and visualizations. The developer also created optional companion hooks: a MD-drift detector at session start, an auto-sync between CLAUDE.md and AGENTS.md + GEMINI.md, and a background fetch for origin divergence check. The tool is available on GitHub at https://github.com/ilia-pluzhnikov/claude-code-statusline and has 83 stars.
- Abbreviations
- TTL = Time To Live — время жизни
- ANSI = American National Standards Institute — Американский национальный институт стандартов
- JSON = JavaScript Object Notation — JavaScript Object Notation
Source: Habr — хаб ИИ —
original
