Skip to content

Side A

A Mac app that shows every Claude Code and Codex limit in the menu bar.

  • SwiftUI
  • Swift
  • SceneKit
  • Blender
  • ActivityKit
  • Python
  • Cloudflare Workers

I use more than one Claude Code account, and each plan has a 5-hour limit and a weekly limit. Usually you only find out you hit one when your session stops. Then you switch accounts by hand, and whatever you didn't use on your other accounts just expires at the end of the week.

Side A is a Mac app for people with more than one account. It shows every Claude Code and Codex limit in the menu bar, and keeps your sessions on the account whose quota is about to go to waste. It can also move a running agent to another account mid-task without stopping it.

Started as a Discman

Switching accounts is boring, so the first version looked and worked like a Discman. I based the look on Sony's portable CD players and the controls on the macOS Music mini player, with the current account and transport controls up front and the library one step away.

Back then Side A couldn't read your limits at all, and I didn't want to make up fake usage percentages. It only knew you hit a limit when the session actually stopped.

An early grey render of the round player with a blank LCD and an orange play button.
The same render on a dark green rounded-square app icon.

The whole 3D player comes from one Python script that runs inside Blender with no window open. It builds the player out of cylinders, tori, boxes, and text, then writes the meshes to a JSON file. The Mac app builds SceneKit meshes straight from that file, and getsidea.com renders the exact same file in three.js.1 I didn't want a web view in the app or a model format it had to parse.

Every control is a named node, so clicking a button is just a hit test. Previous and next pick an account, and play uses it. OPEN swings the lid to show the account library. The version on getsidea.com works too, where holding play makes the LCD say REPEAT 1 and the Konami code flips it to Side B.

Close-up of the green LCD reading CLAUDE, SIDE A, PERSONAL, READY, 01 / 03 above the transport buttons.
The same LCD reading BONUS, SIDE B, HIDDEN TRACK.

All the buttons did something real. Press play and Side A opened Claude Code in your project in Terminal as that account. When Claude Code hit a rate-limit stop, a small supervisor waited for the turn to end, closed the session cleanly, and resumed the same conversation on the next account you allowed. That's the version in the reel at the top.

Into the menu bar

Using the app every day changed what it needed to be. Turns out picking an account was never the hard part. The hard part was not knowing how close each account was to its limit, and the Discman only showed a name.

A month later I moved Side A into the menu bar so it shows every account's 5-hour and weekly limits as percentages. The website got a headline the same day.

getsidea.com on September 7: the 3D player alone on a light page.
getsidea.com on September 7
getsidea.com on October 6: the headline 'All your Claude Code and Codex limits, in the menu bar.' above a smaller player.
getsidea.com on October 6

The rule now is real numbers only. Every percentage comes straight from the provider's usage endpoint or from Claude Code's own replies, and if a reading is stale it shows its age.

The Side A menu under the menu bar: Claude accounts Personal and Studio with 5-hour and weekly bars, a Limited row, Codex accounts Work and Side project, and an Autopilot switch.

The best source for those numbers is the statusline. Claude Code sends the limits to its statusline on every reply, so Side A just wraps yours. Each reply saves that account's numbers, then your own statusline runs with the exact same input, untouched.

Spending what expires first

Once Side A could see every limit, it could pick accounts for me. Weekly quota you don't use is gone when the week resets, so the account about to lose the most goes first.

The score is the weekly quota left, divided by the hours until it resets, weighted by plan size. That's basically how fast you'd have to burn it to use it all.

A handwritten note on lined paper: priority equals weekly percent left over hours until it resets, times plan size. Underneath, in red: Whatever expires first, goes first.

The 5-hour window isn't in the score at all since it comes back several times a day. The weekly quota is the one that actually expires unused.

The rest of the planner is a small pure function, mostly there so it isn't annoying. Close scores count as a tie, and the tie goes to the account whose 5-hour window resets first. It stays on your current account unless another one is clearly more urgent so it doesn't bounce back and forth. It also won't move to an account that's nearly full since it would just be leaving again ten minutes later.2

There's also a quirk with 5-hour windows that's worth using. A window only starts at an account's first message, so if you send one at 9:00, the window resets at 14:00 whether you used it or not.

Autopilot learns your schedule from recent activity and figures out when your morning starts. Two hours before that, it can send an idle account one tiny Haiku message to start the window early. Send it at 7:00, and the window you start working in resets at 12:00 instead of 14:00.

Moving a running agent

At first, Side A moved a session by ending it and resuming it. That only works between turns, and agents are almost always in the middle of one.

Now Side A leaves the session alone and swaps the login underneath it. Claude Code keeps each login in its own Keychain item, and a running session doesn't remember which account it's on. It rereads that item about every 30 seconds, and if the item changed, it keeps going as whoever is in it now.

The obvious move is copying the new account's login into that item, which doesn't work. Logins renew themselves, so two copies of one login eventually cancel each other out and someone gets signed out. Codex is even stricter and revokes a login whose refresh token gets used twice, which is why Side A reads and primes Codex accounts but never switches them.

So Side A trades the two logins instead. The full account's login goes into an item no session uses, and the new account's login goes into the one the sessions read. Every login stays in exactly one place.

The trade, with the 30-second wait made shorter

Because sessions are using those logins during the swap, the trade runs in a fixed order. Side A holds Claude Code's own lock on both logins the whole time so nothing renews mid-swap. It checks the running sessions again right before it writes, and it writes down the trade before touching anything so if the app stops halfway, the next run finishes it.

Moving early isn't free either since a session that switches accounts loses its cache and has to resend its whole context. So Side A waits when it can. An account that still has room waits until its sessions go quiet, and an account that's out of room moves right away.

Side A also trusts the session over the usage endpoint. If a session's latest reply is Claude Code's own limit message, that account counts as full no matter what the endpoint says. That idea came from a fork. Side A is open source under MIT, and three releases credit someone who forked it and sent ideas back.

Answering from the notch

Side A already had to read each session's transcript to know which account it was on. What I actually stare at all day is agents waiting for me, so I made Side A handle those too. Permission requests drop down from the notch showing the command, or the file and a diff of the edit, plus the project and the account it came from.

A keyboard shortcut allows or denies, and it only exists while a request is waiting. Destructive actions like rm, a force push, or a database drop are marked and need a click, with no Always option. It all runs through Claude Code's hooks while the terminal prompt stays open, so answering in either place closes the other.

Finished sessions work the other way around. When a session stops, hit Reply in the notch and type the next task, and the idle session wakes up with your text as its next instruction. Nothing gets typed into your terminal.

The Sessions window: api needs permission, docs finished, side-a and web running. On the right, the api conversation with a Run a command card and Deny, Always and Allow buttons.

Once agents can switch accounts on their own, they can also run with nobody at the Mac, like overnight. Side A keeps the Mac awake while any session is working, even with the lid closed, and gives sleep back when the agents stop. By default it only does this on power, and if the lid is shut when sleep comes back, it puts the Mac to sleep so it doesn't stay on in a bag.

The Discman still ships

The closed player, LCD reading PERSONAL, READY.

The Discman is still in the app, just off by default under Settings, General, 3D player. Turn it on and the lid still opens and the disc still spins. On getsidea.com, the Konami code still flips it to Side B.

Made with love by Arne
  1. Each vertex is stored as a 16-bit integer inside its mesh's bounding box, so the whole Discman is about 500 KB gzipped on the site. Every box gets a bevel modifier called Machined edge, and the one orange button's material is Persimmon play. ↩
  2. Plan size counts Max 20x as 20, Max 5x as 5 and Pro as 1, and hours bottom out at one. With Personal (Max 20x, 70% left, 60 hours) at 23.3, Studio (Max 5x, 80%, 20 hours) at 20.0 and Weekend (Pro, 90%, 100 hours) at 0.9, Studio ties Personal and resets first. You're on Weekend, so Autopilot moves you to Studio. ↩