claude-code - 💡(How to fix) Fix [Feature Request] Add conversational anthropologic subtleties and personality to CLI responses [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#47144Fetched 2026-04-13 05:40:17
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Error Message

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/rick/Documents/MMFFDev-Projects/MMFFDev-WPPC'\n at E96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4204:15380)\n at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2576)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:49.648Z"},{"error":"MaxFileReadTokenExceededError: File content (11705 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:53.631Z"},{"error":"Error: Request was aborted.\n at _S8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1530:12074)\n at _S8.next (<anonymous>)\n at rsK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:9116)\n at rsK.next (<anonymous>)\n at ssK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8185:11401)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8065\n at async V97 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:2519)\n at async Object.Rb6 [as callModel] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8035)\n at async mWY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4284:11603)","timestamp":"2026-04-12T18:10:45.612Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.228Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.465Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:17.844Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read…

Code Example

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/rick/Documents/MMFFDev-Projects/MMFFDev-WPPC'\n    at E96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4204:15380)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2576)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:49.648Z"},{"error":"MaxFileReadTokenExceededError: File content (11705 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:53.631Z"},{"error":"Error: Request was aborted.\n    at _S8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1530:12074)\n    at _S8.next (<anonymous>)\n    at rsK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:9116)\n    at rsK.next (<anonymous>)\n    at ssK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8185:11401)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8065\n    at async V97 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:2519)\n    at async Object.Rb6 [as callModel] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8035)\n    at async mWY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4284:11603)","timestamp":"2026-04-12T18:10:45.612Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.228Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.465Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:17.844Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read…
RAW_BUFFERClick to expand / collapse

Bug Description More character, its a little dry in responses - i mean dont take the piss but lighten up a little...

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.101
  • Feedback ID: 8680c178-7f6f-4d32-9874-34c25587818d

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/rick/Documents/MMFFDev-Projects/MMFFDev-WPPC'\n    at E96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4204:15380)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2576)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:49.648Z"},{"error":"MaxFileReadTokenExceededError: File content (11705 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T17:46:53.631Z"},{"error":"Error: Request was aborted.\n    at _S8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1530:12074)\n    at _S8.next (<anonymous>)\n    at rsK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:9116)\n    at rsK.next (<anonymous>)\n    at ssK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8185:11401)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8065\n    at async V97 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:2519)\n    at async Object.Rb6 [as callModel] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8180:8035)\n    at async mWY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4284:11603)","timestamp":"2026-04-12T18:10:45.612Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.228Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:14.465Z"},{"error":"MaxFileReadTokenExceededError: File content (10395 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at tEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async U0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-12T18:32:17.844Z"},{"error":"MaxFileReadTokenExceededError: File content (13039 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix involves addressing the MaxFileReadTokenExceededError by using offset and limit parameters to read specific portions of the file.

Guidance

  • Identify the files that are causing the MaxFileReadTokenExceededError and consider reducing their size or splitting them into smaller files.
  • Use offset and limit parameters to read specific portions of the files, as suggested in the error messages.
  • Review the code in @anthropic-ai/claude-code/cli.js to ensure that it is handling file reads efficiently and not attempting to read entire files at once.
  • Consider increasing the maximum allowed tokens if possible, but be aware that this may have performance implications.

Example

No specific code example can be provided without more context, but the error messages suggest that the issue is related to reading large files and exceeding the maximum allowed tokens.

Notes

The issue is likely related to the size of the files being read and the maximum allowed tokens. The error messages provide guidance on how to address the issue, but the specific implementation will depend on the code and requirements.

Recommendation

Apply a workaround by using offset and limit parameters to read specific portions of the files, as this is a direct solution to the MaxFileReadTokenExceededError and does not require modifying the maximum allowed tokens.

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 [Feature Request] Add conversational anthropologic subtleties and personality to CLI responses [1 participants]