Skip to content

Instantly share code, notes, and snippets.

@kzink
kzink / statusline.sh
Created June 24, 2026 20:28
claude status line
#!/usr/bin/env bash
# Claude Code custom status line.
# Receives the session JSON on stdin and prints one colored status line:
# <dir>[<branch>] | <model> | Context <bar> NN% | Tokens: N.NK | Cost: $N.NN
input=$(cat)
# --- ANSI colors ---
GREEN=$'\033[1;32m' # directory name
MAGENTA=$'\033[35m' # git branch + cost