Starting each agent task on the account with room left
I make Yardlet , a free, open-source Mac app that runs coding agents like Codex and Claude Code in one window. I have more than one account for both agents, work and personal, and I usually have about ten sessions going. On November 1 my sessions ran into a limit three times: a five-hour limit at 5:21 in the morning, "You've hit your weekly limit · resets 3am" at 9:27 at night, and another…
Starting each task for an agent on a Yardlet account with unused capacity is a priority feature. Yardlet is a free Mac application that manages coding agents like Codex and Claude Code in a single window. Users can maintain multiple accounts for work and personal use, often running ten sessions simultaneously.
On November 1, Yardlet encountered three instances where sessions exceeded the five-hour and weekly limits. Each time, the question was the same: which account had available capacity? Yardlet does not connect to the providers with its own token. Instead, it queries each CLI using the existing sign-in: Claude Code via the get_usage control request, Codex through the App Server's rate-limit read, and Antigravity CLI with agy --print /usage.
When a new task begins, Yardlet assigns it to the account with the most remaining capacity. If multiple tasks are initiated simultaneously, they are distributed across accounts. Each task displays the chosen account and the reason for the selection, such as "5 hour limit 12% used · Resets 3:00 PM". The account is stored with the task, so resuming it later automatically uses the same account.
Scheduled runs also check account usage before starting. If an account has 10% or less capacity left in its window, Yardlet will start the run on the account with the most room available instead. If all accounts are nearly exhausted, the run will start on the account that will free up first.
Two minor improvements came from experiencing these limit issues. Starting with version 0.11.7, a Claude limit card offers a Resume option once the limit has reset, eliminating the need to type "continue". With version 0.11.8, choosing another account for a working task takes effect when its turn ends, and any interim work is sent to the new account, rather than being ignored.
Not all agents support multiple accounts. Claude Code can utilize a CLAUDE_CONFIG_DIR folder per account, which shares the default folder's conversation history. Codex can use a CODEX_HOME folder per account, with each retaining its own history. Kimi Code and Grok Build can use KIMI_CODE_HOME and GROK_HOME folders, respectively, following the same pattern as Codex. However, the Cursor Agent and Antigravity CLI each maintain a single sign-in in a fixed Keychain item, and thus only support one account each.
The source code for Yardlet's native session storage logic is available in [docs/NATIVE_SESSION_STORAGE.md](https://github.com/zzunkie/yardlet/blob/main/docs/NATIVE_SESSION_STORAGE.md) and [docs/PROVIDER_CONNECTIONS.md](https://github.com/zzunkie/yardlet/blob/main/docs/PROVIDER_CONNECTIONS.md), detailing the "Automatic account assignment" rules.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to