⌨️CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS
Also known as CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS environment variable
It sets how much of a file one read can return.
Think of it like
It is like you read a book a few pages at a time. This sets how many.
Example
Emma's data file is just over the limit, and Claude keeps reading it in slices. She raises the limit, and it reads the file in one go.
Why it matters
One whole read is clearer for Claude than many slices it has to join.
Definition
Example code
bash
export CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS=60000
claudeCommon mistake
Key takeaways
- 1Default 25,000. Tokens per read.
- 2Bigger files. Read in parts.
- 3Costs chat room. Use with care.