[Bug] Claude Code: Unable to Track Session Token Usage and Timeframe Limits

Resolved 💬 3 comments Opened Sep 25, 2025 by zerovizboss Closed Jan 9, 2026

Bug Description
Also, I find that I've had Claude Code calculate each session's available token usage and make our development session the most efficient possible while leaving time for the auto-compact when I'm getting near the 5hr limit. Claude is completely oblivious to Session timeframe and token usage even with providing instructions for Claude to follow.

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 1.0.123
  • Feedback ID: dd4bbc3c-3124-43ad-a2e6-2cfaa7e9da1d

Errors

[{"error":"Error: Could not find plugin directories for pycharm\n    at Bc2 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1851:37687)\n    at t66 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1852:4197)\n    at r66 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1852:1662)\n    at file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1853:3102","timestamp":"2025-09-25T00:51:00.125Z"},{"error":"MaxFileReadTokenExceededError: File content (31167 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at SP2 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1727:432)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1722:1036)\n    at async eb6 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3205:21761)\n    at async lXB (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3205:18050)","timestamp":"2025-09-25T00:51:31.666Z"},{"error":"MaxFileReadTokenExceededError: File content (31167 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at SP2 (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1727:432)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1722:1036)\n    at async bM (file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1727:2967)\n    at async file:///C:/Users/zerov/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1808:1361","timestamp":"2025-09-25T00:51:34.534Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗