Menu

agy-swap: Go TUI/CLI for switching Google Antigravity accounts and tracking model quota

#golang#redditgolang#swap#active#session
Reading 0:00
15s threshold

I built agy-swap in Go to manage multiple Google Antigravity ( agy ) accounts and monitor per-pool quota from the terminal.

A few implementation details that might be interesting to fellow Go developers:

60 FPS terminal motion and sub-cell anti-aliasing: The TUI ticks at 16ms only while an animation is active and drops back to a 50ms idle clock once settled. Selection bands, sliding dialog buttons, and quota meters use truecolor RGB linear interpolation ( lerpColor ) on fractional edge rows and half-cells so movement does not snap coarsely by whole character cells.

Cross-platform credential and lock handling: Configuration and session updates use platform file locks ( flock on Unix, LockFileEx on Windows) plus write-to-temp-and-rename.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.