aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/__claude-code-statusline3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/__claude-code-statusline b/bin/__claude-code-statusline
index d12d5d0..e315e1f 100755
--- a/bin/__claude-code-statusline
+++ b/bin/__claude-code-statusline
@@ -12,6 +12,7 @@ consumed_tokens="$(echo "$input" | jq -r '
(.input_tokens // 0) + (.cache_creation_input_tokens // 0) + (.cache_read_input_tokens // 0) |
[. * 10 / 1000, 0] | max | floor / 10 | " \(.)k"
')"
+used_percentage="$(echo "$input" | jq -r '.context_window.used_percentage // 0 | " @ \(.)%"')"
cost="$(echo "$input" | jq -r '.cost.total_cost_usd // 0 | . * 100 | floor / 100 | " ($\(.))"')"
-echo "[$model]$consumed_tokens$cost ${cwd/#$HOME/\~}"
+echo "[$model]$consumed_tokens$used_percentage$cost ${cwd/#$HOME/\~}"