<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wassim AZI]]></title><description><![CDATA[Wassim AZI]]></description><link>https://wassim-azi.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6ad539d8fa076d04c3780265/3d62398e-28b2-4f07-8b68-5a31599ebb00.png</url><title>Wassim AZI</title><link>https://wassim-azi.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 12:47:35 GMT</lastBuildDate><atom:link href="https://wassim-azi.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[agy-powerline 2.0: a more useful statusline for Antigravity CLI]]></title><description><![CDATA[A statusline should answer the questions you keep asking while you work: Which model am I using? How much quota is left, and will it last? Is the context…]]></description><link>https://wassim-azi.hashnode.dev/agy-powerline-2-0-a-more-useful-statusline-for-antigravity-cli</link><guid isPermaLink="true">https://wassim-azi.hashnode.dev/agy-powerline-2-0-a-more-useful-statusline-for-antigravity-cli</guid><category><![CDATA[cli]]></category><category><![CDATA[Node.js]]></category><category><![CDATA[gemini]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[Wassim AZI]]></dc:creator><pubDate>Sun, 22 Nov 2026 21:30:21 GMT</pubDate><content:encoded><![CDATA[<p><img src="https://raw.githubusercontent.com/wassim-azi/agy-powerline/main/assets/demo.gif" alt="agy-powerline interactive editor demo" /></p>
<p>A statusline should answer the questions you keep asking while you work: Which model am I using? How much quota is left, and will it last? Is the context window getting full? What is the agent doing? Did my Git branch change?</p>
<p><strong>agy-powerline 2.0.0</strong> brings that information into one configurable bar beneath the input area of Google Antigravity CLI (<code>agy</code>). It combines multi-provider quota pacing and run-out forecasts, context and token tracking, estimated spend, agent activity, Git details with clickable links, and a redesigned editor—without adding runtime dependencies or network calls.</p>
<p><img src="https://raw.githubusercontent.com/wassim-azi/agy-powerline/main/assets/screenshots/windows.png" alt="agy-powerline under agy input box in Windows Terminal" /></p>
<h2>See more than the model and the quota</h2>
<p>The statusline reads Antigravity CLI's session payload and supports Google Gemini quota buckets—including Hydrogen, Neon, Argon, Carbon, and Flash—alongside Anthropic (Claude, Sonnet) quotas and Argon's own weekly bucket. Pace markers compare quota consumption with elapsed time in the 5-hour or 7-day window, and optional <code>forecast</code> labels estimate when a quota will run out at the current pace.</p>
<p>Beyond quotas, 2.0 expands session visibility across 51 widgets:</p>
<ul>
<li><strong>Context &amp; compaction:</strong> measure context against the full window or a soft <code>compactionLimit</code> ceiling (such as 256K).</li>
<li><strong>Tokens &amp; spend:</strong> track session tokens, prompt-cache hits, cross-conversation totals for today, 7 days, and 30 days (read locally on Node.js 22.13+), and estimated USD session <code>cost</code> with optional subagent spend splitting and <code>budget</code> alerts.</li>
<li><strong>Agent &amp; environment:</strong> show the active agent, agent state including pending tool confirmations, running subagents and background tasks, queued user messages, approval/Vim modes, sandbox status, <code>env</code> variables, and user-configured <code>exec</code> commands.</li>
<li><strong>Git &amp; links:</strong> display branch, ongoing git operations (<code>REBASE</code>, <code>MERGING</code>, etc.), changes, ahead/behind counts, worktrees, stashes, and commit IDs, with optional clickable OSC 8 terminal links and Fish-style shortening (<code>~/D/r/app</code>, <code>f/a/oauth-login</code>).</li>
</ul>
<h2>Make the bar fit the way you work</h2>
<p>Run <code>npx agy-powerline</code> to install or update the statusline while keeping any existing config, and open the redesigned terminal editor directly. Inside the editor you can preview widgets in multiple states, switch between sample scenarios (Normal, Near limits, Agent &amp; modes) and simulated terminal widths (60 to 120 columns or full width), filter themes and presets with <code>/</code>, use mouse click and scroll, and configure all 16 bar-wide settings in the dedicated <strong>Settings</strong> tab.</p>
<p>Prefer a browser? The web configurator at <a href="https://agy-powerline.com/configure/">https://agy-powerline.com/configure/</a> mirrors the editor with live previews and lets you download or import a config. Choose between three layouts (<strong>Pills</strong>, <strong>Lines</strong>, and <strong>Classic</strong>), <strong>22 WCAG AA themes</strong> (dark, light, and color-blind safe) plus custom colors, <strong>8 row gradients</strong>, <strong>9 meter styles</strong>, <strong>7 bar languages</strong> (including newly added German, Korean, and Simplified Chinese), and ASCII mode.</p>
<h2>Useful links</h2>
<ul>
<li>Project: <a href="https://github.com/wassim-azi/agy-powerline">https://github.com/wassim-azi/agy-powerline</a></li>
<li>Install: <a href="https://agy-powerline.com/install/">https://agy-powerline.com/install/</a></li>
<li>Browser configurator: <a href="https://agy-powerline.com/configure/">https://agy-powerline.com/configure/</a></li>
<li>Widgets: <a href="https://agy-powerline.com/widgets/">https://agy-powerline.com/widgets/</a></li>
<li>Settings: <a href="https://agy-powerline.com/settings/">https://agy-powerline.com/settings/</a></li>
<li>Theme gallery: <a href="https://agy-powerline.com/themes/">https://agy-powerline.com/themes/</a></li>
<li>Changelog: <a href="https://agy-powerline.com/changelog/">https://agy-powerline.com/changelog/</a></li>
</ul>
<p><strong>Install or upgrade from 1.x:</strong></p>
<pre><code class="language-bash">npx agy-powerline
</code></pre>
<p>Restart <code>agy</code> once after the first installation; existing <code>statusline.config.json</code> files from 1.x remain compatible, and later changes appear on the next refresh.</p>
<p><strong>Compatibility:</strong> Node.js 20+ for the statusline (<code>npx agy-powerline</code>), Windows, macOS, Linux, and WSL; Node.js 22.13+ for cross-conversation token totals (<code>tokensToday</code>, <code>tokensWeek</code>, <code>tokensMonth</code>).</p>
]]></content:encoded></item><item><title><![CDATA[See your Antigravity CLI quotas without typing /usage (Gemini 5h/7d, Claude and Argon)]]></title><description><![CDATA[Show your Gemini 5h/7d, Claude/GPT and Argon quotas in agy's status bar, and read a pace marker that tells you if you're burning quota too fast.]]></description><link>https://wassim-azi.hashnode.dev/see-antigravity-cli-quotas-without-usage</link><guid isPermaLink="true">https://wassim-azi.hashnode.dev/see-antigravity-cli-quotas-without-usage</guid><category><![CDATA[cli]]></category><category><![CDATA[Node.js]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[Developer Tools]]></category><category><![CDATA[gemini]]></category><dc:creator><![CDATA[Wassim AZI]]></dc:creator><pubDate>Thu, 22 Oct 2026 21:02:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ad539d8fa076d04c3780265/31c91839-fc2c-40cd-937c-6ef01309c050.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Think of it as <strong><code>htop</code> for Google Antigravity CLI</strong>: an always-on display of your quotas, your context window and how fast you're using them.</p>
<p>If you've ever hit your Google AI Pro limit in the middle of an intense coding session, you know the feeling of <strong>context window blindness</strong>: one moment the agent is cruising through file edits, the next it grinds to a halt, and you discover your 5-hour quota ran out twenty minutes ago.</p>
<p>The traditional workaround is typing <code>/usage</code>, squinting at the numbers, and going back to work. A few prompt turns later, you find yourself typing <code>/usage</code> again.</p>
<p>Since mid-October 2026, there is even more to keep track of. On Google AI Pro, Gemini 4 Argon has its own weekly quota pool, completely separate from the standard Gemini bucket. So developers now balance three distinct quota pools:</p>
<ul>
<li><strong>Gemini</strong>: a 5-hour window and a 7-day window, each with its own reset time.</li>
<li><strong>Third-party models</strong> (Claude, GPT): their own 5-hour and 7-day windows.</li>
<li><strong>Gemini 4 Argon</strong>: an independent weekly quota on Google AI Pro.</li>
</ul>
<p>I wanted all of that on screen, all the time, without asking for it or breaking flow state. This post explains which quota metrics <code>agy</code> exposes to its statusline wire format, and how to display them persistently using <a href="https://github.com/wassim-azi/agy-powerline">agy-powerline</a>, a zero-dependency statusline engine.</p>
<p><img src="https://raw.githubusercontent.com/wassim-azi/agy-powerline/main/assets/screenshots/pills-dark.png" alt="agy-powerline in agy's status bar, three rows: model, context and git; Gemini 5h and 7d quotas with pace markers and resets; Claude/GPT and Argon weekly quotas" /></p>
<h2>The quota buckets agy sends</h2>
<p><code>agy</code> has a <code>statusLine</code> setting: it runs a command of your choice and pipes it a JSON payload, as described in the <a href="https://antigravity.google/docs/cli/statusline/">official docs</a>. The docs' example payload shows a single quota bucket. In practice, <code>agy</code> sends up to five:</p>
<table>
<thead>
<tr>
<th>Bucket</th>
<th>What it is</th>
</tr>
</thead>
<tbody><tr>
<td><code>gemini-5h</code></td>
<td>Gemini, 5-hour window</td>
</tr>
<tr>
<td><code>gemini-weekly</code></td>
<td>Gemini, 7-day window</td>
</tr>
<tr>
<td><code>3p-5h</code></td>
<td>Third-party models (Claude, GPT), 5-hour window</td>
</tr>
<tr>
<td><code>3p-weekly</code></td>
<td>Third-party models, 7-day window</td>
</tr>
<tr>
<td><code>gemini-argon-wtu-weekly</code></td>
<td>Gemini 4 Argon's own weekly quota, on Google AI Pro</td>
</tr>
</tbody></table>
<p>Each one looks like this:</p>
<pre><code class="language-json">"gemini-5h": {
  "remaining_fraction": 0.979,
  "reset_time": "2026-10-16T23:59:02.000Z",
  "reset_in_seconds": 17042
}
</code></pre>
<p><code>remaining_fraction</code> goes from 0 to 1. A bucket can also come with <code>"disabled": true</code>, and is best ignored then. The Argon bucket is sent whatever model you're using, so you can keep an eye on it before you switch to Argon.</p>
<p>So the data is there. A statusline only has to read it and draw it.</p>
<h2>Install</h2>
<p>You need Node.js 20 or newer. Then run:</p>
<pre><code class="language-bash">npx agy-powerline init
</code></pre>
<p><code>init</code> installs the runtime as one file in <code>~/.agy-powerline</code>, backs up agy's <code>settings.json</code>, and sets its <code>statusLine</code> command. On a first install it asks you for a preset, a layout and a theme, with a live terminal preview of each. Restart <code>agy</code> once and the bar is live.</p>
<p>The setting points at the exact Node binary that ran <code>init</code>, so the bar doesn't depend on <code>agy</code> finding <code>node</code> on its <code>PATH</code>. That matters with nvm, or when <code>agy</code> is started from somewhere other than your shell.</p>
<blockquote>
<p>🤖 <strong>Vibe-coding? Have your agent install it for you:</strong>
If you already have an <code>agy</code> session open, paste this prompt into your conversation:</p>
<pre><code class="language-text">Hey agy, please install agy-powerline by running `npx agy-powerline init --yes --preset quotas`, then tell me to restart agy.
</code></pre>
</blockquote>
<p>If you'd rather stay inside <code>agy</code> using native extensions, it's also an agy plugin:</p>
<pre><code class="language-text">agy plugin install https://github.com/wassim-azi/agy-powerline
/agy-powerline-setup
</code></pre>
<p>It works natively on Windows (cmd and PowerShell), macOS, Linux and WSL. On Windows it doesn't need bash or <code>jq</code>.</p>
<h2>The Quota watch preset</h2>
<p>The default bar shows the model, context, git and your Gemini quotas. If quotas are what you care about most, switch to the preset made for them:</p>
<pre><code class="language-bash">npx agy-powerline preset quotas
</code></pre>
<p>It draws three rows:</p>
<ol>
<li>Your plan and the model in use.</li>
<li>Gemini 5h and 7d side by side, each with its reset timer.</li>
<li>Third-party 5h and 7d, then Argon's weekly quota and its reset.</li>
</ol>
<p>A widget with nothing to show hides itself: without the Argon bucket in the payload, the Argon widgets simply don't appear.</p>
<h2>Reading the pace marker</h2>
<p>A percentage alone doesn't tell you much. "40% left" is fine if the window resets in 20 minutes, and bad news if it resets in 4 days.</p>
<p>So each quota meter carries a pace marker: a mark at the point the time window has reached. Here are two meters from the demo data (in the terminal, the colors make the fill stand out):</p>
<pre><code class="language-text">⏳ •••••●••••••  72.0% rem   🔄 Reset: 2hr 47m
📅 •••••••••●••  21.0% rem   🔄 Reset: 1d 17h
</code></pre>
<p>The meter fills from the left as you use quota. The marker (<code>●</code>) shows how far into the window you are.</p>
<ul>
<li><strong>5h quota</strong>: it resets in 2h 47m, so 2h 13m of the 5 hours have passed, about 44%. You've used 28%. The fill is behind the marker: you're using quota slower than time passes, so you can relax.</li>
<li><strong>7d quota</strong>: it resets in 1d 17h, so about 76% of the week has passed. You've used 79%. The fill is just past the marker: at this rate, you'll run out shortly before the reset.</li>
</ul>
<p>The marker needs no extra data: it comes from <code>reset_in_seconds</code> and the fixed 5-hour and 7-day window lengths. If you find it noisy, press <code>r</code> in <code>configure</code> to turn it off.</p>
<p>Prefer to see <em>when</em> a quota resets rather than how long until it does? Set the reset widget's format to a clock time:</p>
<pre><code class="language-json">{ "id": "fiveHourReset", "format": "time" }
</code></pre>
<h2>One meter for "the quota that matters right now"</h2>
<p>If you want something smaller, the <code>quota</code> widget shows only the bucket closest to running out, for the model you're using:</p>
<ul>
<li>the Argon bucket when Argon is the model,</li>
<li>the other Gemini buckets for other Gemini models,</li>
<li>the third-party buckets for Claude and GPT.</li>
</ul>
<p>The <code>compact</code> preset uses it to fit everything on one line:</p>
<pre><code class="language-bash">npx agy-powerline preset compact
</code></pre>
<p>Still too wide for a small terminal? Minimalist mode (<code>m</code> in <code>configure</code>) drops every label and keeps the values. And on any width, the bar drops labels and shortens meters first, then the least important widgets, so it never wraps. Here's the bar from the top of this post in a window under 80 columns:</p>
<p><img src="https://raw.githubusercontent.com/wassim-azi/agy-powerline/main/assets/screenshots/narrow.png" alt="The same three-row bar in a window under 80 columns: the gaps between widgets shrink and every widget still fits" /></p>
<h2>Tracking daily and weekly token spend without API calls</h2>
<p>Quota windows (5-hour and 7-day resets) tell you how fast you're running right now, but they don't answer another common question: <em>How many total tokens did I burn today across all my conversations?</em></p>
<p>The statusline payload sends context for the active session, but doesn't track historical usage. To solve that, <code>agy-powerline</code> includes <code>tokensToday</code> and <code>tokensWeek</code> widgets. They read Antigravity's local conversation files in <code>~/.gemini/antigravity-cli/conversations/</code> directly: no API keys, no network calls, no telemetry. They need Node 22.13 or newer, which has SQLite built in; on older Node they stay hidden, and <code>npx agy-powerline doctor</code> says why.</p>
<p>The <code>tokens</code> preset puts them on the bar:</p>
<pre><code class="language-bash">npx agy-powerline preset tokens
</code></pre>
<p>It shows the context tokens, the session's tokens in and out and the cache hit rate, with today's and the last 7 days' totals on a second row.</p>
<h2>Make it warn you</h2>
<p>Quota and context meters switch to a caution color, then a danger color, as they run low. You can pick the levels per widget, and make a widget blink when it crosses the danger level:</p>
<pre><code class="language-bash">npx agy-powerline configure
</code></pre>
<p>Select a widget, press Enter, and change its caution and danger levels. The live preview at the bottom of the screen follows every change, and <code>q</code> saves and quits. A running <code>agy</code> picks up the change on its next refresh.</p>
<p><img src="https://raw.githubusercontent.com/wassim-azi/agy-powerline/main/assets/demo.gif" alt="agy-powerline's configure editor: adding Argon's weekly quota, then browsing presets, themes and layouts with a live preview" /></p>
<p>While you're in <code>configure</code>, the tabs at the top let you try the presets, 16 themes (two of them color-blind safe), three layouts (Powerline pills, plain colored lines, or a classic text bar with block meters) and pill shapes. You can also customize how meters render: classic <code>blocks</code>, minimalist <code>line</code>, geometric <code>rings</code> (<code>●●●○○○</code>), or a <code>ramp</code> where each filled cell is shaded from the theme's ok color through caution to danger.</p>
<p>Prefer a browser? The same options are in the <a href="https://agy-powerline.com/configure/">web configurator</a>, which exports a config file you can import.</p>
<h2>How fresh are the numbers?</h2>
<p>The bar shows exactly what <code>agy</code> sends, as of its last refresh: <code>agy</code> runs the statusline when its state changes, and the quota values come from <code>agy</code> itself. agy-powerline makes no network calls of its own, so it can't be more up to date than <code>agy</code>, but it also can't disagree with it.</p>
<h2>What else it won't do</h2>
<ul>
<li><strong>No telemetry, no runtime dependencies.</strong> Everything comes from the payload, from your <code>.git</code> folder and from your OS.</li>
<li><strong>Your settings are safe.</strong> <code>init</code> refuses to edit a <code>settings.json</code> it can't parse, and keeps a backup of the original.</li>
<li><strong>Want agy's own line too?</strong> <code>npx agy-powerline init --stack</code> draws the bar below the built-in one instead of replacing it.</li>
</ul>
<p>To remove it: <code>npx agy-powerline uninstall</code>.</p>
]]></content:encoded></item></channel></rss>