Skip to content

v3.8.0-alpha.6 — Status line: rate-limit usage

Pre-release
Pre-release

Choose a tag to compare

@nguyenthienthanh nguyenthienthanh released this 19 Jul 03:36
· 138 commits to main since this release

The status line gains a usage line showing how much of the rate-limit budget is spent and when it resets — from the rate_limits object Claude Code provides on stdin.

Added

  • scripts/statusline.sh usage line — renders ⏳ 5h {pct}% ↻{reset} │ 7d {pct}% ↻{reset} from rate_limits.{five_hour,seven_day}.{used_percentage,resets_at}. Percentage is color-coded by severity (red ≥90 · yellow ≥70 · green otherwise); reset times are formatted from epoch to local HH:MM (5h) / Day HH:MM (7d). Present only for Claude.ai subscribers after the session's first API response — degrades silently when rate_limits is absent (no line). Parses jq-first with a grep fallback (one-lines the JSON to read the nested object). Disable: AF_STATUSLINE_USAGE=0.

Changed

  • Status-line header comment "Format:" block + aura-frog/CLAUDE.md Status Line section document the new usage line and AF_STATUSLINE_USAGE flag.