Antigravity CLI custom status bar A developer created a custom status bar for the Antigravity CLI that displays real-time model information, token usage, and quota limits for Gemini, Claude, and GPT models. The bash script reads a JSON payload and outputs a formatted string showing context window usage and remaining quota percentages. | /bin/bash | | | Read JSON payload from stdin | | | payload=$ cat | | | Extract basic model information | | | model=$ echo "$payload" | jq -r '.model.display name // "N/A"' | | | Extract token usage data | | | input=$ echo "$payload" | jq -r '.context window.total input tokens // 0' | | | output=$ echo "$payload" | jq -r '.context window.total output tokens // 0' | | | used pct=$ echo "$payload" | jq -r '.context window.used percentage // 0 | round' | | | Extract remaining quotas for Gemini, convert to percentages, and round | | | gem 5h=$ echo "$payload" | jq -r '.quota "gemini-5h" .remaining fraction // 0 | . 100 | round' | | | gem wk=$ echo "$payload" | jq -r '.quota "gemini-weekly" .remaining fraction // 0 | . 100 | round' | | | Extract remaining quotas for Claude/GPT 3p , convert to percentages, and round | | | p3 5h=$ echo "$payload" | jq -r '.quota "3p-5h" .remaining fraction // 0 | . 100 | round' | | | p3 wk=$ echo "$payload" | jq -r '.quota "3p-weekly" .remaining fraction // 0 | . 100 | round' | | | Build the final status bar string showing all limits | | | echo "🤖 ${model} | Context ↓ ${input} ${used pct}% | Output ↑ ${output} | Quota 5h/wk Gemini: ${gem 5h}%/${gem wk}% | Claude & GPT: ${p3 5h}%/${p3 wk}%" |