Skip to content

Instantly share code, notes, and snippets.

@dazuiba
dazuiba / status-line.sh
Created March 20, 2026 00:01
Claude Code status line script - shows model, context usage, and git info
#!/bin/bash
# Read JSON input from stdin
input=$(cat)
# Extract information from JSON
model_name=$(echo "$input" | jq -r '.model.display_name')
current_dir=$(echo "$input" | jq -r '.workspace.current_dir')
# Extract context window information