[Bug] Excessive token consumption in Claude Code requests
Bug Description
I have an issue with Opus 4.7 - the token usage in Claude Code has increased completely unreasonably with this model. I was on the MAX 5x plan and it was enough for me 90% of the time when I was coding and everything worked great. Occasionally it bothered me that I hit the limit, so I switched to MAX 20x and most of the time I was at 30-40% weekly usage right before the reset, I never hit the daily limit, the maximum was 50% when I was working on 3 projects in parallel intensively.
Now after three days I'm at 25% of the weekly limit and I'm regularly hitting over 50% of the daily limit, and I'm only working on two projects less intensively.
Environment Info
- Platform: linux
- Terminal: WarpTerminal
- Version: 2.1.112
- Feedback ID: e1fbef6b-f0fb-4b96-9b97-7269f02eb174
Errors
[{"error":"Error: rg --files exited 2\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:681:84)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:766:16)\n at #handleOnExit (node:child_process:520:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T01:10:51.288Z"},{"error":"Error: File does not exist. Note: your current working directory is /var/www/twentis/twentis-server.\n at call (/$bunfs/root/src/entrypoints/cli.js:4729:7630)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T01:32:47.561Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n at start (/$bunfs/root/src/entrypoints/cli.js:3158:22348)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T02:19:34.795Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3158:20884)\n at O (/$bunfs/root/src/entrypoints/cli.js:3158:24867)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3158:30015)\n at M (/$bunfs/root/src/entrypoints/cli.js:3158:30352)\n at D (/$bunfs/root/src/entrypoints/cli.js:3158:30909)\n at call (/$bunfs/root/src/entrypoints/cli.js:4776:1378)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T02:19:34.796Z"},{"error":"Error: Failed to start LSP server for file /var/www/twentis/twentis-server/assets/entrypoints/admin.js: Executable not found in $PATH: \"typescript-language-server\"\n at Y (/$bunfs/root/src/entrypoints/cli.js:3158:30041)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T02:19:34.796Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3158:20884)\n at O (/$bunfs/root/src/entrypoints/cli.js:3158:24867)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3158:30015)\n at M (/$bunfs/root/src/entrypoints/cli.js:3158:30352)\n at D (/$bunfs/root/src/entrypoints/cli.js:3158:30909)\n at call (/$bunfs/root/src/entrypoints/cli.js:4776:1378)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T02:19:34.796Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"old_string\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n \"new_string\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n }\n]\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5007:1005)\n at map (native:1:11)\n at p4$ (/$bunfs/root/src/entrypoints/cli.js:5007:556)\n at AU7 (/$bunfs/root/src/entrypoints/cli.js:8061:8836)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T02:36:33.084Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗