---
name: antigravity-cli-statusline
description: Customizes the Antigravity CLI status bar into a unified single line showing folder icons, cwd, active model, context tokens, and 5H/7D token quota usage with real-time reset countdowns.
---
# Antigravity CLI Custom Statusline Skill
This skill allows configuring, installing, or updating the custom status bar configuration for the Antigravity CLI (`agy`).
## Features
- **Unified Single-Line Status Bar**: Seamlessly integrates the default model line with custom telemetry additions into a single, clean line.
- **Left Side**: Displays `? for shortcuts` (or agent activity state, e.g. `working...`).
- **Right Side**: Displays `📂 <cwd> | ● <model> | 📜 <context> | ⏳ <5H timer> | 5H: <%> | ⏳ <7D timer> | 7D: <%>`.
- **Adaptive Responsive Width**: Dynamically adapts across narrow and wide terminals (with CJK and wide-emoji column width calculation and 6-level progressive truncation, including `(Low)`–`(XHigh)`/`(Max)` model suffix stripping) without wrapping into multiple lines.
- **Directory Emoji**: Prepends `📂` with a home-abbreviated path (`~/...`).
- **Token Quota Display**: Displays available 5H (5-hour) and 7D (weekly) remaining percentages (up to 2 decimal places with trailing zeros trimmed) with dynamic 24-bit color coding (Microsoft palette), automatically mapping standard Gemini models (`gemini-*`), Gemini 4 Argon (`gemini-argon-*`), and third-party models (`3p-*`) while omitting unavailable or disabled windows.
- **Real-Time Reset Countdown**: Computes countdowns (`⏳ Xh Ym` / `⏳ Xd Yh` or `⌛ 0h Ym`) dynamically from `.quota[...].reset_time` minus current wall-clock time (falling back to `.reset_in_seconds`), keeping displayed time aligned on every event-driven status bar redraw even between backend quota refreshes.
- **Fast Single-Pass Rendering**: Executes in a single `exec jq` pass (~10 ms) supporting both single-line and multi-line JSON payloads.
## Files Included
- `scripts/statusline.sh`: The shell script executed by `agy` on session state changes to render the status line.
- `scripts/install.sh`: Helper script to copy `statusline.sh` to `~/.gemini/antigravity-cli/statusline.sh`, grant execution permissions, and configure `statusLine` in `settings.json` (`0600`).
## Usage
Run the installation helper script from this skill folder to install or update:
```bash
<skill_dir>/scripts/install.sh
```
— ‹guest · 2026-12-03› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.