[Feature Request] Implement context window management and agent performance monitoring

Resolved 💬 3 comments Opened Feb 17, 2026 by dmody Closed Feb 20, 2026

Bug Description
we seem to run out of context just fixing bugs that the agent introduced in the last seession. It seems like some agents are better than others, and some agents are wasting time.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.39
  • Feedback ID: 24bf1758-cb94-450f-bef1-74315139952f

Errors

[{"error":"MaxFileReadTokenExceededError: File content (50013 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 qPB (/$bunfs/root/claude:3292:3360)\n    at async call (/$bunfs/root/claude:3301:2475)\n    at async <anonymous> (/$bunfs/root/claude:5800:1669)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:29:44.199Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:55:09.990Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:55:10.956Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:55:18.493Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:55:57.804Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:55:59.484Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:56:08.664Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:56:14.961Z"},{"error":"MaxFileReadTokenExceededError: File content (35901 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T18:56:40.064Z"},{"error":"Error: Request was aborted.\n    at oGR (/$bunfs/root/claude:865:99149)\n    at next (native:1:11)\n    at ssB (/$bunfs/root/claude:5705:4480)\n    at next (native:1:11)\n    at esB (/$bunfs/root/claude:5710:7793)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T21:29:18.919Z"},{"error":"MaxFileReadTokenExceededError: File content (34214 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 qPB (/$bunfs/root/claude:3292:3360)\n    at async call (/$bunfs/root/claude:3301:2475)\n    at async <anonymous> (/$bunfs/root/claude:5800:1669)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-15T22:48:16.464Z"},{"error":"MaxFileReadTokenExceededError: File content (44335 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 qPB (/$bunfs/root/claude:3292:3360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-…

Note: Content was truncated.

View original on GitHub ↗

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