claude-code - 💡(How to fix) Fix [Bug] Agent not executing skills and not proposing solutions as expected [1 comments, 2 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#46330Fetched 2026-04-11 06:23:08
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 201503 tokens > 200000 maximum"},"request_id":"req_011CZvQvSBEQmanVEcxfVEcW"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:51.921Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 201503 tokens > 200000 maximum"},"request_id":"req_011CZvQvdBmMumAEuC5x5426"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:55.022Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 201503 tokens > 200000 maximum"},"request_id":"req_011CZvQvtSHpXSM77QR6skj4"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:58.100Z"},{"error":"MaxFileReadTokenExceededError: File content (10159 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 xz7 (/$bunfs/root/src/entrypoints/cli.js:4358:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:36:20.486Z"},{"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-10T16:52:48.816Z"},{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n at k3q (/$bunfs/root/src/entrypoints/cli.js:249:281165)\n at async fCq (/$bunfs/root/src/entrypoints/cli.js:402:898)\n at async SN6 (/$bunfs/root/src/entrypoints/cli.js:402:796)\n at async v6_ (/$bunfs/root/src/entrypoints/cli.js:2786:2084)\n at async nDH (/$bunfs/root/src/entrypoints/cli.js:2811:5698)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2880:3256)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:53:40.062Z"},{"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-10T17:09:37.162Z"}]

Code Example

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvSBEQmanVEcxfVEcW\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:51.921Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvdBmMumAEuC5x5426\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:55.022Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvtSHpXSM77QR6skj4\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:58.100Z"},{"error":"MaxFileReadTokenExceededError: File content (10159 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 xz7 (/$bunfs/root/src/entrypoints/cli.js:4358:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:36:20.486Z"},{"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-10T16:52:48.816Z"},{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at k3q (/$bunfs/root/src/entrypoints/cli.js:249:281165)\n    at async fCq (/$bunfs/root/src/entrypoints/cli.js:402:898)\n    at async SN6 (/$bunfs/root/src/entrypoints/cli.js:402:796)\n    at async v6_ (/$bunfs/root/src/entrypoints/cli.js:2786:2084)\n    at async nDH (/$bunfs/root/src/entrypoints/cli.js:2811:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2880:3256)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:53:40.062Z"},{"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-10T17:09:37.162Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description It is not working as before, not using skills and not proposing as it used to do

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.100
  • Feedback ID: cb328e72-77d5-4a5b-99f8-2555367c8044

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvSBEQmanVEcxfVEcW\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:51.921Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvdBmMumAEuC5x5426\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:55.022Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201503 tokens > 200000 maximum\"},\"request_id\":\"req_011CZvQvtSHpXSM77QR6skj4\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:33:58.100Z"},{"error":"MaxFileReadTokenExceededError: File content (10159 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 xz7 (/$bunfs/root/src/entrypoints/cli.js:4358:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:36:20.486Z"},{"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-10T16:52:48.816Z"},{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at k3q (/$bunfs/root/src/entrypoints/cli.js:249:281165)\n    at async fCq (/$bunfs/root/src/entrypoints/cli.js:402:898)\n    at async SN6 (/$bunfs/root/src/entrypoints/cli.js:402:796)\n    at async v6_ (/$bunfs/root/src/entrypoints/cli.js:2786:2084)\n    at async nDH (/$bunfs/root/src/entrypoints/cli.js:2811:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2880:3256)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T16:53:40.062Z"},{"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-10T17:09:37.162Z"}]

extent analysis

TL;DR

Reduce the prompt length to below 200,000 tokens to resolve the "prompt is too long" error.

Guidance

  • Identify and shorten the prompt that is exceeding the 200,000 token limit.
  • Consider using offset and limit parameters to read specific portions of files instead of reading the whole file.
  • Check for any other potential issues that could be causing the request to be aborted.
  • Verify that the keychain entry exists before attempting to delete it.

Example

No specific code example can be provided without more context, but the error messages suggest that the issue is related to the length of the prompt or file being read.

Notes

The provided error messages indicate that the prompt is too long, but there are also other errors related to file reading and keychain entry deletion. Resolving the prompt length issue may not fix all of the errors.

Recommendation

Apply workaround: Reduce the prompt length to resolve the immediate issue, and then investigate and address the other errors separately.

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