claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption with Sonnet 4.6/Opus 4.6 models [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#46149Fetched 2026-04-11 06:27:46
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"Error: Request was aborted.\n at Ah8 (B:/~BUN/root/src/entrypoints/cli.js:1295:11929)\n at next (native:1:11)\n at WI_ (B:/~BUN/root/src/entrypoints/cli.js:7682:9034)\n at next (native:1:11)\n at LI_ (B:/~BUN/root/src/entrypoints/cli.js:7687:11078)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:28.461Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\Avi\AppData\Local\Temp\claude\C--repositories-avi-youtube-subscriptions-updater\181c6d65-4021-4b46-9e63-f4e44ebf6839\tasks\a171570462d1bf4aa.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7544:299)","timestamp":"2026-04-08T15:26:44.591Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:49.876Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:50.075Z"},{"error":"AxiosError: Request failed with status code 400\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:19.198Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:22.226Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:24.007Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:26.163Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:39.488Z"},{"error":"AxiosError: Request failed with status code 404\n at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n…

Code Example

[{"error":"Error: Request was aborted.\n    at Ah8 (B:/~BUN/root/src/entrypoints/cli.js:1295:11929)\n    at next (native:1:11)\n    at WI_ (B:/~BUN/root/src/entrypoints/cli.js:7682:9034)\n    at next (native:1:11)\n    at LI_ (B:/~BUN/root/src/entrypoints/cli.js:7687:11078)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:28.461Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Avi\\AppData\\Local\\Temp\\claude\\C--repositories-avi-youtube-subscriptions-updater\\181c6d65-4021-4b46-9e63-f4e44ebf6839\\tasks\\a171570462d1bf4aa.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7544:299)","timestamp":"2026-04-08T15:26:44.591Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:49.876Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:50.075Z"},{"error":"AxiosError: Request failed with status code 400\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:19.198Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:22.226Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:24.007Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:26.163Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:39.488Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n…
RAW_BUFFERClick to expand / collapse

Bug Description Despite having the 20X tier, Sonnet 4.6 and Opus 4.6 seem to eat tokens for breakfast and the rate at the tokens are consumd is insane. IDK if it partially has to dop with memory recalling plugin I installed (claude-mem) a few days ago but my 20X tier feels like the 5X tier

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 2.1.92
  • Feedback ID: 7f3274c7-5c68-4370-8ff1-3b1e29cdab9a

Errors

[{"error":"Error: Request was aborted.\n    at Ah8 (B:/~BUN/root/src/entrypoints/cli.js:1295:11929)\n    at next (native:1:11)\n    at WI_ (B:/~BUN/root/src/entrypoints/cli.js:7682:9034)\n    at next (native:1:11)\n    at LI_ (B:/~BUN/root/src/entrypoints/cli.js:7687:11078)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:28.461Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Avi\\AppData\\Local\\Temp\\claude\\C--repositories-avi-youtube-subscriptions-updater\\181c6d65-4021-4b46-9e63-f4e44ebf6839\\tasks\\a171570462d1bf4aa.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7544:299)","timestamp":"2026-04-08T15:26:44.591Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:49.876Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:26:50.075Z"},{"error":"AxiosError: Request failed with status code 400\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:19.198Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:22.226Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:24.007Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:26.163Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T15:27:39.488Z"},{"error":"AxiosError: Request failed with status code 404\n    at vB (B:/~BUN/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n…

Note: Content was truncated.

extent analysis

TL;DR

The issue may be related to the recently installed claude-mem plugin, which could be causing excessive token consumption, and removing or configuring it might help mitigate the problem.

Guidance

  • Investigate the claude-mem plugin's configuration and documentation to see if there are any settings that could be adjusted to reduce token consumption.
  • Try temporarily removing the claude-mem plugin to see if token consumption returns to normal.
  • Review the provided error logs to identify any patterns or commonalities that could indicate the root cause of the issue.
  • Check the Sonnet and Opus documentation for any known issues or configuration recommendations related to token consumption.

Example

No specific code example is available due to the lack of detailed information about the claude-mem plugin's implementation.

Notes

The provided issue content is truncated, which may limit the ability to fully understand the problem. Additionally, without more information about the claude-mem plugin and its interaction with Sonnet and Opus, it is difficult to provide a more specific solution.

Recommendation

Apply a workaround by removing or reconfiguring the claude-mem plugin to see if it resolves the issue, as it is the most recently introduced variable and may be contributing to the excessive token consumption.

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 [Bug] Excessive token consumption with Sonnet 4.6/Opus 4.6 models [1 participants]