claude-code - 💡(How to fix) Fix You've hit your limit · resets 1:40pm (America/New_York) [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55051Fetched 2026-05-01 05:47:31
View on GitHub
Comments
3
Participants
3
Timeline
7
Reactions
3
Timeline (top)
labeled ×4commented ×3

Error Message

[{"error":"MaxFileReadTokenExceededError: File content (47840 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at AM7 (/$bunfs/root/src/entrypoints/cli.js:4720:12550)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:17.566Z"},{"error":"FileTooLargeError: File content (286.7KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.201Z"},{"error":"FileTooLargeError: File content (256.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.632Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxQ6mLyXud17EjCd2d"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.358Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxRufSS3Z21PmGSSCR"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.785Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxPHAFJqH6Wg3t2WyC"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.839Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxcDXibaatC6545UmU"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:33.205Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxhndx4LuQVCyyYqeX"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:34.550Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaCxkBkdc6vefRSEpSxX"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:35.113Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CaaEESctU39mF33jLNx6p"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (/$bunfs/root/src/entrypoints…

Root Cause

Bug Description I just used up 50% of my 5x limits in like 30 seconds by using subagents with the prompt "Let's do a deep security review of this salesforce repository. Please highlight the biggest issues that an external attacker would be able to exploit. You may need multiple subagents to explore different ideas, since closely reviewing this repository will take on the order of a few hundred thousand tokens and your default single-branch approach takes ~65K." No other claude-code was actively processing prompts at the time. Apparently, this might be because subagents aren't caching (https://github.com/anthropics/claude-code/issues/29966), or maybe I'm hitting a similar bug as this: https://github.com/anthropics/claude-code/issues/45756#issuecomment-4231739206? But it was extremely jarring and I've lost a couple hours of productivity. I would appreciate the claude code team investigating what happened here and helping to fix it.

Code Example

[{"error":"MaxFileReadTokenExceededError: File content (47840 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at AM7 (/$bunfs/root/src/entrypoints/cli.js:4720:12550)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:17.566Z"},{"error":"FileTooLargeError: File content (286.7KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.201Z"},{"error":"FileTooLargeError: File content (256.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.632Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxQ6mLyXud17EjCd2d\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.358Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxRufSS3Z21PmGSSCR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.785Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxPHAFJqH6Wg3t2WyC\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.839Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxcDXibaatC6545UmU\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:33.205Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxhndx4LuQVCyyYqeX\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:34.550Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxkBkdc6vefRSEpSxX\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:35.113Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaEESctU39mF33jLNx6p\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints…
RAW_BUFFERClick to expand / collapse

Bug Description I just used up 50% of my 5x limits in like 30 seconds by using subagents with the prompt "Let's do a deep security review of this salesforce repository. Please highlight the biggest issues that an external attacker would be able to exploit. You may need multiple subagents to explore different ideas, since closely reviewing this repository will take on the order of a few hundred thousand tokens and your default single-branch approach takes ~65K." No other claude-code was actively processing prompts at the time. Apparently, this might be because subagents aren't caching (https://github.com/anthropics/claude-code/issues/29966), or maybe I'm hitting a similar bug as this: https://github.com/anthropics/claude-code/issues/45756#issuecomment-4231739206? But it was extremely jarring and I've lost a couple hours of productivity. I would appreciate the claude code team investigating what happened here and helping to fix it.

Environment Info

  • Platform: linux
  • Terminal: emacs
  • Version: 2.1.111
  • Feedback ID: a328c2f5-f527-49b4-abe7-1fa2d9acb924

Errors

[{"error":"MaxFileReadTokenExceededError: File content (47840 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at AM7 (/$bunfs/root/src/entrypoints/cli.js:4720:12550)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:17.566Z"},{"error":"FileTooLargeError: File content (286.7KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.201Z"},{"error":"FileTooLargeError: File content (256.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at X_H (/$bunfs/root/src/entrypoints/cli.js:1564:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:18.632Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxQ6mLyXud17EjCd2d\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.358Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxRufSS3Z21PmGSSCR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.785Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxPHAFJqH6Wg3t2WyC\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:30.839Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxcDXibaatC6545UmU\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:33.205Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxhndx4LuQVCyyYqeX\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:34.550Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaCxkBkdc6vefRSEpSxX\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:39:35.113Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaaEESctU39mF33jLNx6p\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (/$bunfs/root/src/entrypoints…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely due to exceeding the rate limit and file size limits when using subagents for a deep security review, and a workaround could involve optimizing the prompt or splitting the review into smaller tasks.

Guidance

  • Review the prompt to ensure it's optimized for the task, avoiding unnecessary complexity that could lead to excessive requests.
  • Consider splitting the security review into smaller, more focused tasks to reduce the load on the system and avoid hitting rate limits.
  • Look into the caching issue with subagents mentioned in the related GitHub issue (https://github.com/anthropics/claude-code/issues/29966) as a potential long-term fix.
  • Monitor the request sizes and adjust the offset and limit parameters as suggested in the error messages to handle large files.

Example

No specific code example can be provided without more context on the exact implementation, but adjusting the prompt or request parameters as mentioned could look something like optimizing the prompt for specificity or using offset and limit parameters to read files in chunks.

Notes

The provided information suggests that the issue is related to rate limiting and file size limits, but without the full context of the code or the exact implementation details, the suggestions are based on the error messages and the description of the task being performed.

Recommendation

Apply a workaround by optimizing the prompt or splitting the task into smaller parts to avoid hitting rate limits, as the root cause seems to be related to how the task is structured rather than a straightforward code fix.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix You've hit your limit · resets 1:40pm (America/New_York) [3 comments, 3 participants]