{"slug": "antigravity-cli-custom-status-bar", "title": "Antigravity CLI custom status bar", "summary": "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.", "body_md": "| #!/bin/bash | |\n| # Read JSON payload from stdin | |\n| payload=$(cat) | |\n| # Extract basic model information | |\n| model=$(echo \"$payload\" | jq -r '.model.display_name // \"N/A\"') | |\n| # Extract token usage data | |\n| input=$(echo \"$payload\" | jq -r '.context_window.total_input_tokens // 0') | |\n| output=$(echo \"$payload\" | jq -r '.context_window.total_output_tokens // 0') | |\n| used_pct=$(echo \"$payload\" | jq -r '.context_window.used_percentage // 0 | round') | |\n| # Extract remaining quotas for Gemini, convert to percentages, and round | |\n| gem_5h=$(echo \"$payload\" | jq -r '.quota[\"gemini-5h\"].remaining_fraction // 0 | (. * 100) | round') | |\n| gem_wk=$(echo \"$payload\" | jq -r '.quota[\"gemini-weekly\"].remaining_fraction // 0 | (. * 100) | round') | |\n| # Extract remaining quotas for Claude/GPT (3p), convert to percentages, and round | |\n| p3_5h=$(echo \"$payload\" | jq -r '.quota[\"3p-5h\"].remaining_fraction // 0 | (. * 100) | round') | |\n| p3_wk=$(echo \"$payload\" | jq -r '.quota[\"3p-weekly\"].remaining_fraction // 0 | (. * 100) | round') | |\n| # Build the final status bar string showing all limits | |\n| echo \"🤖 ${model} | Context ↓ ${input} (${used_pct}%) | Output ↑ ${output} | Quota(5h/wk) Gemini: ${gem_5h}%/${gem_wk}% | Claude & GPT: ${p3_5h}%/${p3_wk}%\" |", "url": "https://wpnews.pro/news/antigravity-cli-custom-status-bar", "canonical_source": "https://gist.github.com/ABIvan-Tech/1c979e29a378a67b88a313dfaee18464", "published_at": "2026-06-03 13:50:49+00:00", "updated_at": "2026-06-16 01:17:24.975326+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "generative-ai"], "entities": ["Antigravity CLI", "Gemini", "Claude", "GPT"], "alternates": {"html": "https://wpnews.pro/news/antigravity-cli-custom-status-bar", "markdown": "https://wpnews.pro/news/antigravity-cli-custom-status-bar.md", "text": "https://wpnews.pro/news/antigravity-cli-custom-status-bar.txt", "jsonld": "https://wpnews.pro/news/antigravity-cli-custom-status-bar.jsonld"}}