[Feature Request] Respect persistent user constraints for code modification scope and build operations

Resolved 💬 3 comments Opened Dec 23, 2025 by DaveCarnal Closed Feb 14, 2026

Bug Description
it really needs to ask before jumping off on the deep end changing code. I've asked it 100 times today to only change code in certain places and then it's off doing other things. Also, I've ask it to not compile or run unit tests. This needs to STICK. In general it works very well but these two parts need improvement.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.0.76
  • Feedback ID: 31fec32b-8a59-4d5c-a6af-7d955138af55

Errors

[{"error":"MaxFileReadTokenExceededError: File content (34602 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async Au5 (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2207:17438)","timestamp":"2025-12-23T12:42:52.582Z"},{"error":"MaxFileReadTokenExceededError: File content (34602 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-23T12:44:12.839Z"},{"error":"MaxFileReadTokenExceededError: File content (34803 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-23T12:51:28.841Z"},{"error":"MaxFileReadTokenExceededError: File content (35961 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-23T14:15:45.833Z"},{"error":"MaxFileReadTokenExceededError: File content (36397 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-23T14:45:03.917Z"},{"error":"MaxFileReadTokenExceededError: File content (36374 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///opt/clarity-apps/nodejs/v20.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-23T14:56:00.933Z"},{"error":"MaxFileReadTokenExceededError: File content (36374 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 EdB (file:///opt/clarity-apps/nodejs/v20.14.0/lib/n

Note: Error logs were truncated.

View original on GitHub ↗

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