{
  "statusLine": {
    "type": "command",
    "command": "input=$(cat); dir=$(echo \"$input\" | jq -r '.workspace.current_dir'); used_pct=$(echo \"$input\" | jq -r '.context_window.used_percentage // 0'); ctx_size=$(echo \"$input\" | jq -r '.context_window.context_window_size // 200000'); size_k=$(( ctx_size / 1000 )); used_k=$(( used_pct * size_k / 100 )); if [ \"$used_pct\" -ge 90 ] 2>/dev/null; then ctx_color='\\033[38;2;255;50;50m'; elif [ \"$used_pct\" -ge 50 ] 2>/dev/null; then ctx_color='\\033[38;2;255;230;50m'; else ctx_color='\\033[38;2;212;113;78m'; fi; if [ -d \"$dir/.git\" ] || git -C \"$dir\" rev-parse --git-dir >/dev/null 2>&1; then dirty=$(git -C \"$dir\" status --porcelain 2>/dev/null); ahead=$(git -C \"$dir\" rev-list @{u}..HEAD 2>/dev/null | wc -l); if [ -n \"$dirty\" ]; then git_ind='\\033[1;38;2;255;50;50m\u2717\\033[0m'; elif [ \"$ahead\" -gt 0 ]; then git_ind='\\033[1;38;2;255;230;50m\u2191\\033[0m'; else git_ind='\\033[1;38;2;50;255;50m\u2713\\033[0m'; fi; branch=$(git -C \"$dir\" rev-parse --abbrev-ref HEAD 2>/dev/null); hash=$(git -C \"$dir\" rev-parse --short HEAD 2>/dev/null); git_part=$(printf ' \\033[0;35m\ue0a0 %s\\033[0m \\033[0;33m(%s)\\033[0m %b' \"$branch\" \"$hash\" \"$git_ind\"); else git_part=''; fi; printf '\\033[1;36m%s\\033[0m \\033[0;90mv%s\\033[0m \\033[1;32min\\033[0m \\033[1;34m%s\\033[0m%s  %b\udb84\udddb %sk/%sk\\033[0m' \"$(echo \"$input\" | jq -r '.model.display_name')\" \"$(echo \"$input\" | jq -r '.version')\" \"$(basename \"$dir\")\" \"$git_part\" \"$ctx_color\" \"$used_k\" \"$size_k\""
  }
}