[MODEL] Max number of tokens per file is now 10000 instead of 25000.

Resolved 💬 4 comments Opened Apr 8, 2026 by viniciusferrao Closed May 21, 2026

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Other unexpected behavior

What You Asked Claude to Do

N/A

What Claude Actually Did

N/A

Expected Behavior

N/A

Files Affected

N/A

Permission Mode

I don't know / Not sure

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

Claude Opus used to accept up to 25000 tokens per file. The model quality degraded absurdly in the last days and now my eyes caught some error messages saying that the max token limit per file is 10000.

I cannot find any controls to get back to 25000.

If you search on the issues on this Github page you see the last issue with mentions 25000 tokens is 7 days ago, while 10000 is like 1h.

Yeah, that was a silent downgrade.

Search link for 10000:
https://github.com/search?q=repo%3Aanthropics%2Fclaude-code+exceeds+maximum+allowed+tokens+%2810000%29&type=issues&s=created&o=desc

Search link for 25000:
https://github.com/search?q=repo%3Aanthropics%2Fclaude-code+exceeds+maximum+allowed+tokens+%2825000%29&type=issues&s=created&o=desc

For my workload Claude cannot generate code that I trust. The back and forth during conde reviews became extremely tiresome in the last 7 days at the point I'm almost giving up.

Claude Model

Opus

Relevant Conversation

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.96 (Claude Code)

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗

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