Created
April 16, 2026 12:44
-
-
Save ezyang/eed1b08b371558433e87a341bfaf887b to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| # Claude Code status line - shows context window remaining percentage | |
| input=$(cat) | |
| remaining=$(echo "$input" | jq -r '.context_window.remaining_percentage // empty') | |
| if [ -n "$remaining" ]; then | |
| printf 'Context: %s%% remaining' "$remaining" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment