Blog
All posts
My Claude Code Status Line Context usage, cost, git status – things you want to keep an eye on while working with Claude Code, without having to ask for them. The status line shows that persistently at the bottom of the terminal. After each response, Claude Code runs a shell script that receives session data as JSON on stdin and outputs whatever you want to see. Here’s what mine looks like: [Claude Sonnet 4.6] ❯ my-project | ⑂ main ~2 | +41 -7 ▓▓▓░░░░░░░ 31% ctx | $0.042 | ⧗ 3m 12s | 5h: 37% 7d: 23% | in:12k out:3.2k | cache w:8k r:21k The script lives at ~/.claude/statusline.sh, wired up in ~/.claude/settings.json: