This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |