r/VibeCodeDevs • • 19h ago

BugReport – bugs and cursed code Claude Code sent nothing. My script called that unlimited.

An empty usage reply from Claude Code made my script report unlimited usage. I run Claude Code and Codex side by side and hand work to the other when one runs low. So that bad read made Claude Code look like the safe place to send more work. Worst direction to get it wrong.

The reply has a field called rate_limits_available. An explicit false means plan limits don't apply. My check treated anything other than true as false. Including a missing field. Including no answer at all.

I fixed that with Codex. Empty replies, missing fields and weird values now mean unknown. If I can't read an agent's usage, it gets skipped when picking who takes over. Only an explicit false means no plan limit.

I'm still reading an internal reply that can come back empty. How are you reliably reading Claude Code's remaining usage from a script?

Disclosure: I build Sno Station. Install: curl -fsSL https://www.sno.ai/install | sh https://github.com/sno-ai/sno-station

1 Upvotes

1 comment sorted by

•

u/endofthread-bot 19h ago

Hey u/ChemicalExcellent463, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.