Skip to content

Instantly share code, notes, and snippets.

View jeremyronking's full-sized avatar

Jeremy King jeremyronking

View GitHub Profile
@jeremyronking
jeremyronking / statusline.sh
Created December 29, 2025 21:33
Claude Code Status Line - Shows model, mode, context usage, limits, and git branch
#!/bin/bash
# Claude Code Status Line - Shows model, mode, context usage, limits, and git branch
input=$(cat)
# Extract model name
MODEL=$(echo "$input" | jq -r '.model.display_name // "Unknown"')
# Fetch usage limits from Anthropic API (cached for 60 seconds)
CACHE_FILE="/tmp/claude-usage-cache"
CACHE_MAX_AGE=60