v3.8.0-alpha.6 — Status line: rate-limit usage
Pre-release
Pre-release
·
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_limitsobject Claude Code provides on stdin.
Added
scripts/statusline.shusage line — renders⏳ 5h {pct}% ↻{reset} │ 7d {pct}% ↻{reset}fromrate_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 localHH:MM(5h) /Day HH:MM(7d). Present only for Claude.ai subscribers after the session's first API response — degrades silently whenrate_limitsis 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.mdStatus Line section document the new usage line andAF_STATUSLINE_USAGEflag.