claude-code - 💡(How to fix) Fix [Feature Request] Increase context window and token limits for Claude Code CLI [1 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#55622Fetched 2026-05-03 04:48:41
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"AxiosError: timeout of 60000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n at emit (node:events:92:22)\n at <anonymous> (node:http_client:469:83)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T14:11:18.072Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:16:43.666Z"},{"error":"MaxFileReadTokenExceededError: File content (46868 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:50.908Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:51.031Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T16:04:23.594Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CaWehjTgxKMYUsK7pvb7N"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:34:46.015Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T20:44:41.697Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:50.316Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:52.282Z"},{"error":"Error: Request was aborted.\n at jC (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at jp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n at next (native:1:11)\n at Jp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:21:06.387Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:33:55.833Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T01:24:15.952Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:09:52.423Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:46.192Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:51.083Z"},{"error":"Error: 1P event logging: 5 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T05:24:37.862Z"},{"error":"MaxFileReadTokenExceededError: File content (10958 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to…

Code Example

[{"error":"AxiosError: timeout of 60000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n    at emit (node:events:92:22)\n    at <anonymous> (node:_http_client:469:83)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T14:11:18.072Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:16:43.666Z"},{"error":"MaxFileReadTokenExceededError: File content (46868 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:50.908Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:51.031Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T16:04:23.594Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CaWehjTgxKMYUsK7pvb7N\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:34:46.015Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T20:44:41.697Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:50.316Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:52.282Z"},{"error":"Error: Request was aborted.\n    at jC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at jp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Jp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:21:06.387Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:33:55.833Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T01:24:15.952Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:09:52.423Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:46.192Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:51.083Z"},{"error":"Error: 1P event logging: 5 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T05:24:37.862Z"},{"error":"MaxFileReadTokenExceededError: File content (10958 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to…
RAW_BUFFERClick to expand / collapse

Bug Description Not an issue per se... the memory, context is frustrating. If I could pay for 5 million tokens I would. The project is out pacing Claude (Claudius).

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.108
  • Feedback ID: a333a704-cf90-4361-ab21-1b85307dde7d

Errors

[{"error":"AxiosError: timeout of 60000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n    at emit (node:events:92:22)\n    at <anonymous> (node:_http_client:469:83)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T14:11:18.072Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:16:43.666Z"},{"error":"MaxFileReadTokenExceededError: File content (46868 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:50.908Z"},{"error":"MaxFileReadTokenExceededError: File content (23504 tokens) exceeds maximum allowed tokens (10000). 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 HY7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T15:18:51.031Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T16:04:23.594Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CaWehjTgxKMYUsK7pvb7N\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52772)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:34:46.015Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T20:44:41.697Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:50.316Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:20:52.282Z"},{"error":"Error: Request was aborted.\n    at jC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at jp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Jp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:21:06.387Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T22:33:55.833Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T01:24:15.952Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:09:52.423Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:46.192Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T02:31:51.083Z"},{"error":"Error: 1P event logging: 5 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T05:24:37.862Z"},{"error":"MaxFileReadTokenExceededError: File content (10958 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to implement pagination or use offset and limit parameters when reading files to avoid exceeding the maximum allowed tokens.

Guidance

  • The errors suggest that the file content exceeds the maximum allowed tokens (10000), so consider using offset and limit parameters to read specific portions of the file.
  • Review the makeRequest function in /$bunfs/root/src/entrypoints/cli.js to ensure it handles request timeouts and aborts properly.
  • Check the server-side implementation to handle internal server errors (500) and provide a more informative error message.
  • Consider increasing the timeout value (currently 60000ms) if the requests are taking longer than expected.

Example

No code example is provided due to the lack of specific implementation details.

Notes

The provided error messages and code snippets are truncated, which limits the ability to provide a more detailed solution. Additionally, the root cause of the issue may be related to the project's growth outpacing the capabilities of Claude (Claudius), but this is not directly addressed in the provided errors.

Recommendation

Apply a workaround by implementing pagination or using offset and limit parameters when reading files to avoid exceeding the maximum allowed tokens. This should help mitigate the errors and allow the project to continue functioning until a more permanent solution can be implemented.

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 [Feature Request] Increase context window and token limits for Claude Code CLI [1 participants]