Oriel — AI & technology worth noticing, every day.

Building a Multi-Agent Token Usage Widget in Under 500 KB

Post · https://dev.to/gde/building-a-multi-agent-token-usage-widget-in-under-500-kb-1fih

How we built a 483 KB zero-WebKit macOS Universal Binary and a single-file Ubuntu HUD with...

First seen by Oriel on .

AI summary

The author built Leap EDGE, an always-on quota monitor that predicts token exhaustion, as a 483 KB native macOS Universal Binary and a zero-dependency Ubuntu tool.

  • Leap EDGE compares quota consumption with elapsed reset-window time, calculating burn rate and projectedRunOut to show whether usage lasts until reset.
  • Bars flag rates above 1.15 with a predicted run-out time, helping users route heavy tasks among Gemini, Claude Code, OpenAI Codex, and GitHub Copilot.
  • The macOS implementation uses CoreGraphics by default, creates WKWebView only on demand, runs as one process, and reports 0.0% idle CPU.
  • The single leap-edge.swift binary supports arm64 and x86_64, desktop-level pinning, click-through interaction, menu bar indicators, and direct /api/usage JSON parsing.
  • Ubuntu uses a single-file Tkinter implementation with terminal, JSON, and floating GUI modes that adapt between landscape and portrait layouts.

#token usage #macos #tkinter #multi-agent systems

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 10, latest observation ; +3 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 4, latest observation ; +3 over observed period since

Aliases

SourceExternal IDURL
DEV Community4897244https://dev.to/gde/building-a-multi-agent-token-usage-widget-in-under-500-kb-1fih Read discussion