agy's built-in status bar or a custom status line?

Antigravity CLI (agy) has a built-in status bar under the prompt, and it can replace that bar with the output of a command you choose. This guide compares the three ways to fill it: keep the built-in bar, write your own command, or install one such as agy-powerline. You can also keep both.

The built-in status bar

The built-in bar needs no setup. Google's documentation describes it as at-a-glance context about the agent, the workspace and the context window. The /statusline command turns it on and off. The documentation doesn't describe a way to choose what it shows, its colors or its layout: to change those, you replace it with a command.

If the built-in bar shows what you need, keep it. Nothing below is required to use agy.

A custom status line command

A custom status line is a command set under statusLine in ~/.gemini/antigravity-cli/settings.json. Whenever the agent's state changes, agy runs it, at most once every 300 ms, and pipes the session to it as JSON. Whatever the command prints, colors and several rows included, becomes the status bar.

That JSON holds more than a bar can show at once: the model, the context window, every quota bucket with its reset time, estimated cost, the plan, the agent's state, subagents, the folder and the terminal's width. The payload reference lists every field. A command decides which of them you see, and how.

Google's rules for the command, from the same documentation:

Google's own example is a shell script, statusline.sh. On Windows, agy runs the command through cmd /c, which doesn't run a .sh file by itself.

Side by side

Side by side
Built-in barYour own commandagy-powerline
SetupNoneWrite a script, set statusLinenpx agy-powerline, then restart agy once
What it showsChosen by agyAnything in the payload you write it forAny of 52 widgets: quotas, context, git, tokens, cost, agent state and more
Quota paceNot documentedYou compute itPace markers and run-out forecasts on every quota
LookFixedYour own code22 themes, 3 layouts, powerline shapes, 7 bar languages
WindowsYesYour script must run under cmd /ccmd and PowerShell, through a .cmd launcher that init writes
Narrow terminalsHandled by agyYou handle terminal_widthDrops labels, then widgets in a set order, to fit
Bad input and failuresHandled by agyYou handle themExits quickly on bad or missing input, without a stack trace
Changing it/statusline on or offEdit the scriptA live-preview editor, the browser configurator or one command

Writing your own is a good choice when you want one or two values and enjoy the scripting. How to add a status line walks through the setting and a minimal script.

Keep the built-in bar and add your own

You don't have to choose. With "stack_with_default": true in statusLine, agy shows your command's output below its own bar instead of replacing it. agy-powerline sets it up that way with:

npx agy-powerline init --stack

Go back to the built-in bar

Next steps