Opus 4.1 │ ~/git/tictactoe │ main │ 2 untracked │ 22:22 for example.
It's a bash script that shows your current model, directory, git
branch/status, PR number, Python venv, Node version, and more - all
with color-coded emojis for quick visual parsing. The git integration
shows staged/modified/untracked file counts, ahead/behind status, and
even detects merge conflicts.
What makes it useful: Everything you need is visible at a glance
without running git status or gh pr view. It auto-detects worktrees
(shows ), highlights conflicts in red, and truncates long paths
intelligently.
Technical approach: Reads JSON from stdin, uses git porcelain for
accurate counts, caches gh CLI calls for PR info, and outputs ANSI
color codes with fallback for non-color terminals.
To try it: Save the script, make it executable, and add to
~/.claude/settings.json:
"statusLine": {"type": "command", "command": "bash
~/.claude/statusline-command.sh"
}