Skip to content

feat: add Claude Code usage tracking widget#9

Merged
bottlebrushes merged 1 commit intomainfrom
bettercoderthanyou/claude-usage-widget
Feb 2, 2026
Merged

feat: add Claude Code usage tracking widget#9
bottlebrushes merged 1 commit intomainfrom
bettercoderthanyou/claude-usage-widget

Conversation

@bottlebrushes
Copy link
Copy Markdown
Owner

Summary

  • Adds a new menu bar widget that tracks Claude Code API usage in real-time
  • Displays a circular donut ring around the Claude icon that fills symmetrically from the bottom, changing color based on usage (white → orange at 60% → red at 80%)
  • Popup shows 5-hour rolling window progress, weekly usage, and today's message count
  • Uses event-driven file watching on ~/.claude/stats-cache.json and ~/.claude/history.jsonl (no polling)

Test plan

  • Verify widget appears in the menu bar with the Claude icon and donut ring
  • Confirm the donut fills from the bottom symmetrically and changes color at thresholds
  • Click widget to open popup and verify usage stats display correctly
  • Verify real-time updates when sending messages in Claude Code

🤖 Generated with Claude Code

Adds a new menu bar widget that displays Claude Code API usage as a
circular donut ring around the Claude icon. Tracks 5-hour rolling
window and weekly message counts from ~/.claude/ data files with
real-time file watching (no polling).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bottlebrushes bottlebrushes merged commit 6ea8b6e into main Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant