avanza-git

Agent Gauge — AI skill for Claude Code

AI community

AgentGauge tracks Claude Code and OpenAI Codex plan usage through an always-on-top desktop widget, a KDE panel widget, and the agent-gauge CLI.

How to install Agent Gauge

This entry records only its repository, not the path inside it, so there is no exact command to give. Open avanza-git/agent-gauge and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Gauge does

AgentGauge tracks Claude Code and OpenAI Codex plan usage through an always-on-top desktop widget, a KDE panel widget, and the `agent-gauge` CLI. It shows 5-hour and weekly utilisation, model-scoped weekly caps, reset countdowns, and API-equivalent cost estimates from local Claude transcripts.

Alternatives in AI

  • Maestro Companion — Quick execution for small tasks — minimal run lifecycle (start + done) with evidence recording 530 ★
  • Engrim — The Universal Cross-Model Episodic Memory Standard 219 ★
  • AppleAI — Apple AI is a lightweight, privacy‑minded macOS menu bar app that keeps your favorite AI assistants one keystr 145 ★

README

AgentGauge

AgentGauge tracks Claude Code and OpenAI Codex plan usage through an always-on-top desktop widget, a KDE panel widget, and the `agent-gauge` CLI. It shows 5-hour and weekly utilisation, model-scoped weekly caps, reset countdowns, and API-equivalent cost estimates from local Claude transcripts.

Single static-ish binary, built with [egui/eframe](https://github.com/emilk/egui).

Screenshots

Bars view Gauge view
AgentGauge overlay in bars view: Claude Session, Weekly and Fable rows plus Codex 5h and 7d, with Session showing 'full 42m' and Weekly 'full 21h 20m' in amber AgentGauge overlay in gauge view: ring gauges for each window, with 'full 46m' under Session and 'full 21h 30m' under Weekly in amber

When a window is on pace to run out before it resets, its reset countdown is replaced by an amber **`full …`** estimate (Session and Weekly above); the other rows keep their reset times. See [Limit forecast](#limit-forecast).

Features

  • Real plan data from Claude Code's /api/oauth/usage endpoint, using the token Claude Code already stored (CLAUDE_CODE_OAUTH_TOKEN → ~/.claude/.credentials.json → macOS Keychain). The widget never refreshes or writes the token.
  • Calm failure modes: on 429 it shows the last known values (from ~/.claude/usage-history.jsonl, clamping windows that already reset) and backs the refresh interval off up to refresh_max_seconds; an expired token dims the bars.
  • Cost estimate per model from ~/.claude/projects/**.jsonl, including Task subagent transcripts, de-duplicated per message id, with 1-hour cache writes and long-prompt tiers priced correctly. Transcripts are read incrementally.
  • OSD: bars or gauge view, 11 themes, drag to move, scroll to resize (0.6×–4×), minimize to a thin strip, opacity, corner snapping.
  • **Right-c