v0.10.0

Breaking Latest

Every usage response now uses one canonical shape, and usage history moved from a JSON file to SQLite. Existing history is not migrated.

Verified with Claude Code 2.1.302, Antigravity CLI (agy) 1.4.0, Codex CLI 0.162.1 (checked on ).

Added

  • Antigravity: support for the separate Gemini 4 Argon quota pool reported by agy 1.3.x. Its GEMINI 4 ARGON section is recognised as a group even without a MODELS suffix. Gemini 4 Argon Weekly Limit is reported with group: "Gemini 4 Argon" and cycle: "weekly", which is a weekly window with model: "Gemini 4 Argon" in GET /status. A bare Weekly Limit in that section becomes Gemini 4 Argon · Weekly Limit instead of being attributed to the previous group.
  • context_window and credits on every canonical provider object (GET /status, GET /status/:id, --once --json), null when unknown. context_window is { total_tokens, used_tokens, used_percent, remaining_percent, model, source }. Its source is cli (reported by the CLI), override (config file) or known-model (Agent Tank’s built-in table). Claude and Antigravity get a size looked up from the model their CLI reports; Codex reports its own. credits is the Codex credit balance, { remaining, unit: "credits" }. Claude’s extra-usage dollar budget stays under raw.usage.extraUsage.
  • Codex: Context window: N% left (X used / Y) and Credits: N credits are parsed from /status into usage.contextWindow and usage.credits. The same values are read from the JSON-RPC app-server response when it reports them.
  • contextWindows config key to add or correct known model context windows, e.g. { "gpt-6-astra": 300000 }.
  • Dashboard cards show a context-window row and a credits row when known. Both update after an auto-refresh poll or a card refresh, without a page reload.
  • Codex history snapshots record contextUsedPercent (percent unit) and credits (credits unit, in value).
  • Usage-history sparkline on each dashboard agent card: one inline-SVG line per tracked metric on a fixed 0–100% scale, with a legend of latest values and a hover read-out. It is redrawn after every auto-refresh poll and card refresh without a page reload, and shows “Not enough history yet” until a metric has two points.
  • --history-chart / --no-history-chart, AGENT_TANK_HISTORY_CHART and the history.chart config key (on by default). GET /config reports the effective value as history.chart, which is false whenever history recording is off (store: "none").
  • GET /history/:id?view=chart returns only plottable series (percent units, at least two points) with { t, percent } points.

Changed

  • Breaking: usage responses use one canonical provider shape for every provider: id, provider, plan, status, last_updated, error, and a windows list (type, label, model, used_percent, remaining_percent, ISO 8601 resets_at, resets_in_seconds, pace or null). The original per-provider payload is kept under each provider’s raw field. GET /status and --once --json return { "providers": [...] }; GET /status/:id returns one canonical provider object; POST /refresh returns { "success": true, "providers": [...] } and POST /refresh/:id returns { "success": true, "provider": {...} } (both previously status).
  • Programmatic API: new getNormalizedStatus() and getNormalizedAgentStatus(id) on AgentTank. getStatus() and getAgentStatus(id) still return the raw per-provider payloads.
  • Raw agent status gains usageUpdatedAt, the time usage was last captured. A refresh that fails but keeps cached usage still bumps lastUpdated, but not usageUpdatedAt. Canonical last_updated and reset times are based on usageUpdatedAt, so they no longer drift forward after such failures.
  • Claude /status metadata now includes loginMethod, which is used to report the canonical plan.
  • Breaking: usage history moved from ~/.agent-tank/history.json to a SQLite database at ~/.agent-tank/history.db, using Node’s built-in node:sqlite (no new dependency). Each refresh stores one row per metric in a usage_metrics table, so a series is a single indexed query. The JSON file is no longer read or written, and existing JSON history is not migrated.
  • GET /history/:id returns { agent, store, retention_days, series } (series is [] for an account with no recorded metrics). Each series is { key, label, model, cycle, unit, points: [{ t, percent, value }] }. It accepts since, until and metric query parameters. GET /history stats are now per-account row counts plus store and path.
  • GET /config reports the history backend as history: { enabled, store, path, retentionDays, chart }.
  • History needs Node.js 22.5+. On older runtimes history is disabled with one startup warning and reported as store: "none"; refreshes are unaffected.
  • New history options: --history / --no-history, --history-db <path>, AGENT_TANK_HISTORY, AGENT_TANK_HISTORY_DB, and the history.enabled / history.dbPath config keys.
  • Usage that was not re-captured since it was last recorded (a failed refresh that keeps cached usage, or a refresh skipped by the cooldown) is no longer recorded again.
  • AgentTank#stop() closes the history database.
  • Antigravity: descriptive prose lines on the /usage screen (ending in ., ! or ?, or longer than eight words) are skipped and can never become a model label.

Fixed

  • Claude: /status metadata was always null, so the canonical plan and context_window were null. The slash-command autocomplete menu was mistaken for the finished Status panel. Completion now requires the panel’s Version: field followed by Login method:, Model: or Session ID:.
  • Antigravity: metadata was parsed before the CLI had started, so model was never set and context_window (including contextWindows overrides) could not apply. Agent Tank now waits for the startup banner and reads version, email, model (from the banner, never from a “no longer available” notice) and plan.
  • Antigravity: the plan shown next to the account in the banner (e.g. Google AI Pro) is reported as the canonical plan ("google ai pro").
  • Antigravity: a signed-out CLI showing the login menu next to a Signing in... spinner is reported as Authentication required instead of waiting out the spawn timeout.

Documentation

  • README: new “Upgrading from 0.9.x” section with before/after response shapes and history notes, and a troubleshooting entry for null context_window / plan.

Upgrading from 0.9.x

0.10.0 changes the shape of every usage response and the history backend. If you consume the HTTP API, --once --json, or the AgentTank class, check the following before upgrading.

Usage responses use one canonical shape

Every provider now returns the same object (see the API reference). The previous per-provider payload is still available, unchanged, under each provider’s raw field.

Call0.9.x0.10.0
GET /status
--once --json
{ "claude": {...}, "codex": {...} }{ "providers": [ {...}, {...} ] }
GET /status/:idraw agent payloadone canonical provider object
POST /refresh{ "success": true, "status": {...} }{ "success": true, "providers": [...] }
POST /refresh/:id{ "success": true, "status": {...} }{ "success": true, "provider": {...} }

Reading a five-hour limit, before and after:

Codex five-hour limit
// 0.9.x
const res = await fetch('http://127.0.0.1:3456/status').then(r => r.json());
const used = res.codex.usage.fiveHour.percentUsed;

// 0.10.0
const { providers } = await fetch('http://127.0.0.1:3456/status').then(r => r.json());
const codex = providers.find(p => p.id === 'codex');
const used = codex.windows.find(w => w.type === 'five_hour')?.used_percent;
// The 0.9.x payload is still there if you need it:
const legacyUsed = codex.raw.usage.fiveHour.percentUsed;

Notable differences in the canonical shape:

  • Reset times are always ISO 8601 in resets_at. Codex’s raw resetsAt stays in epoch seconds, and Claude’s stays a display string.
  • Accounts are identified by id (the alias for multi-account setups) and provider. Antigravity’s provider is "antigravity".
  • New fields: plan, context_window, credits, and pace per window.
  • last_updated is when usage was last captured. A failed refresh that keeps cached usage no longer moves it.

Programmatic API

In the AgentTank class, getStatus() and getAgentStatus(id) still return the raw payloads. Use getNormalizedStatus() and getNormalizedAgentStatus(id) for the canonical shape. Call watcher.stop() when you’re done with the class, so the history database is closed.

History moved to SQLite

  • ~/.agent-tank/history.json is no longer read or written, and its contents are not migrated. History starts empty in ~/.agent-tank/history.db (change it with --history-db). You can delete the old JSON file.
  • History needs Node.js 22.5+ (node:sqlite). On older Node versions Agent Tank still runs, logs one warning, and reports store: "none".
  • GET /history/:id now returns { agent, store, retention_days, series } with one series per metric, instead of a list of snapshots.
  • GET /config reports history as history: { enabled, store, path, retentionDays, chart }.

Before you upgrade

Earlier releases

v0.9.11

Verified with Claude Code 2.1.284, Antigravity CLI (agy) 1.2.12, Codex CLI 0.158.0 (checked on ).

Added

  • Multiple accounts per provider with the repeatable --agent provider[:alias][=config-path] flag or the config file’s agents array: separate config directories, dashboard labels, history and refresh endpoints.
  • Codex model-specific rate-limit buckets alongside the main five-hour and weekly limits.
  • Antigravity usage entries include absolute resetsAt timestamps and a limit cycle.

Changed

  • Claude’s weeklySonnet usage field is replaced by weeklyFable everywhere; API consumers using weeklySonnet must update.

Fixed

  • Claude: recover swallowed /usage commands without interrupting a partial render or an active refresh; parse compact /status metadata.
  • Codex: submit slash commands through the newer command picker and accept weekly-only usage output.
  • Codex: initialize the app-server JSON-RPC connection and parse its current rate-limit response.
  • Claude: keep Fable allowances at zero usage and wait for delayed allowance rows; accounts without Fable still complete.
  • Antigravity: parse Refreshes in reset countdowns and use the correct weekly or five-hour window for pace.

v0.9.10

Fixed

  • Claude: recover session usage when the “Current session” row of /usage is captured mid-render.
  • Claude: a partial rate limit (e.g. the per-model/Sonnet breakdown) is no longer an error; fresh session and weekly data are kept.

v0.9.9

Fixed

  • Antigravity: parse the newer “Models & Quota” usage screen, keeping each model group’s weekly and five-hour limits separate.
  • Antigravity: dismiss the usage modal before re-running /usage, fixing alternating 35s timeouts.
  • Force-kill agent PTY processes that ignore SIGTERM/SIGHUP (e.g. agy, codex) so they are not left orphaned.
  • Clean up agent processes on SIGINT and SIGHUP as well as SIGTERM.

v0.9.8

Added

  • --background (and AGENT_TANK_BACKGROUND) starts Agent Tank as a detached process and prints its PID and log path.
  • AGENT_TANK_BACKGROUND_LOG sets the background log path; AGENT_TANK_BACKGROUND_GRACE_MS sets the startup grace period.
  • Startup warning when other Agent Tank processes are already running, with their PIDs (credentials redacted) and kill instructions.
  • README: running Agent Tank from source.

Fixed

  • Malformed agent output in the status page’s debug dump can no longer crash the process.

v0.9.7

Changed

  • Gemini CLI support is replaced by Antigravity CLI (agy), using its interactive /usage command.
  • Activity monitoring uses chokidar polling to reduce native watcher pressure on large CLI log trees.

Fixed

  • Claude Code 2.1: one-shot stats checks work with the compact usage output, and compact reset times such as Jun10,6pm(Europe/Berlin) are parsed.
  • Claude: metadata fetch no longer crashes when the CLI exits early, and /status dialogs are dismissed before /usage.
  • Claude: wait for the separate weekly Sonnet section before completing /usage parsing.

v0.9.5

Added

  • Per-agent refresh cooldown (30 seconds by default) for manual, startup and auto-refreshes.
  • --refresh-cooldown and AGENT_TANK_REFRESH_COOLDOWN to change or disable it.

Changed

  • Docker bridge gateway discovery prefers docker network inspect, falling back to local interface detection.

Fixed

  • Interval-mode auto-refresh no longer bypasses the central refresh guard.
  • Gemini CLI: stricter readiness detection, so auth and thinking screens are not mistaken for a ready prompt.

v0.9.4

Added

  • Binds to the local Docker bridge by default when --host is omitted, so containers on the same host can reach Agent Tank.
  • --no-docker and AGENT_TANK_DOCKER to turn Docker bridge binding off.

Fixed

  • Zero-usage reset times stay visible for Claude, Gemini and Codex.
  • No trailing slashes in the startup banner’s status page URLs.

v0.9.3

Added

  • agent-tank --version.
  • PTY and JSON-RPC subprocess PIDs are logged when agent processes start.

Fixed

  • Ctrl+C exits immediately again.
  • Agent processes are no longer respawned once shutdown begins; refresh, metadata and keepalive paths are guarded too.

v0.9.2

Added

  • Gemini authentication-required status in the API response and a short login instruction in the UI.
  • Regression tests for Gemini shell null-safety during delayed callbacks.

Fixed

  • Gemini: no crash when the CLI exits during authentication, and no Escape sent during OAuth login.
  • Gemini: better trust prompt handling, and unauthenticated/setup screens are reported clearly instead of as a timeout.

v0.9.0

Initial release.

Added

  • Claude Code CLI (/usage): session usage, weekly usage (all models and Sonnet only) and reset times.
  • Gemini CLI (/stats): per-model usage and reset times.
  • OpenAI Codex CLI (/status): five-hour and weekly limits, model and account info.
  • Auto-discovery of installed CLIs, an HTTP API with JSON responses, the HTML status page and refresh endpoints.
  • CORS support, and cursor position query responses for Codex compatibility.