claude-code - 💡(How to fix) Fix [MODEL] Max number of tokens per file is now 10000 instead of 25000. [2 comments, 2 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#45019Fetched 2026-04-09 08:15:14
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
2
Timeline (top)
labeled ×3commented ×2

Error Message

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.

Code Example

N/A

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • 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

extent analysis

TL;DR

The user needs to find a way to increase the token limit per file from 10000 to 25000 for the Claude Opus model to restore previous functionality.

Guidance

  • Investigate the Anthropics API documentation to see if there are any configuration options or parameters that can be adjusted to increase the token limit per file.
  • Check the release notes for version 2.1.96 of Claude Code to determine if the token limit change was an intentional update or a bug.
  • Reach out to the Anthropics support team to inquire about the sudden change in token limit and potential options for increasing it.
  • Consider searching for alternative models or APIs that support higher token limits if the current limitation is critical to the user's workload.

Example

No code example is provided as the issue is related to configuration or API limitations rather than code implementation.

Notes

The user's issue is specific to the Claude Opus model and the Anthropics API, so any solution will depend on the capabilities and limitations of these tools. The user has already searched for similar issues and found a potential correlation between the token limit change and recent updates.

Recommendation

Apply workaround: The user should investigate alternative models or APIs that support higher token limits as a temporary solution until the issue with the Claude Opus model is resolved.

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