API Rate Limit Handling Breaks Workflow and Causes Potential Data Corruption

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 6 comments · opened Jul 18, 2025 · closed Jul 27, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
The newly imposed API Limits are ruining claude code. I've hit them in as little as a half hour after I wake up in the morning, and I didn't use anywhere near enough prompts to account for that. I was already struggling to keep the product useful for my large project because of context limits - you start off with Opus by default, and first thing it does is automatically read docs. There are a lot of docs, so this is slow and wasteful of both usage limits and context memory.

Worse yet, when you enforce your API limits, you do so completely unintelligently. I had one time where the limit got enforced abruptly in the middle of some database schema updates, leaving my DB in a broken state. And I didn't have the remainder of the update to see because Claude hadn't generated it yet. When Claude came back it couldn't remember what the next steps were. This is unacceptable. If I had real data in that db you'd be facing a lawsuit for damages caused and/or negligence. Fortunately this was my development system and I could recreate it.

Not to mention that its EXTREMELY BAD FORM to make policy changes without notice, and without even updating your documentation. Did you learn nothing from the bad PR Windsurf and Cursor have been getting?

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.53
  • Feedback ID: 194d6824-0256-48c0-b155-a3cad38fc992

View original on GitHub ↗

6 Comments

ashebanow · 1 year ago

BTW, for reference, my multiple times per day workflow is:

  • start claude code, hit ESC a few times as quickly as possible to cancel automatic stuff.
  • use /model to switch to sonnet, preserving the little usable Opus resource I receive (once you take quota and API Limits into account) for when I really need it.
  • manually tell claude which docs to read, focusing on the work I need to do today
  • tell it which task I want it to work on.

Repeat these steps everytime I move to a different machine, or when I hit limits and want to make sure I have a clean slate, etc. Tedious and user-unfriendly as all get out.

And this is on the Max "5x Pro" plan. I can't imagine how bad things are on Pro.

seanGSISG · 1 year ago

What API limits have they recently changed? Can you link the announcement?

ashebanow · 1 year ago

https://techcrunch.com/2025/07/17/anthropic-tightens-usage-limits-for-claude-code-without-telling-users/

there was no announcement, that's a huge part of the problem.

On Fri, Jul 18, 2025 at 2:26 PM Sean Swanson @.***>
wrote:

seanGSISG left a comment (anthropics/claude-code#3948) <https://github.com/anthropics/claude-code/issues/3948#issuecomment-3090758912> What API limits have they recently changed? Can you link the announcement? — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/3948#issuecomment-3090758912>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAACX73TMQHPZ2K2LAQEUWL3JFRBRAVCNFSM6AAAAACB3OIKJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOJQG42TQOJRGI> . You are receiving this because you authored the thread.Message ID: @.***>
ashebanow · 1 year ago

FWIW, things do seem to have improved since last Saturday. I'm not hitting rate limits anymore, though I still have issues with hitting the Opus limits way to quickly.

bcherny collaborator · 1 year ago

We had a number of reliability issues last week. Generally, when you run out of rate limits, you can either wait a few hours, or switch to using an API key. If you continue a session some time later, you can use --continue to pick up where you left off.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.