1M Token Context - Claude Code
Extended context window for Opus and Sonnet on supported plans.

The 1M token context window lets Claude Code hold roughly a full mid-size codebase plus history in a single session - no compaction, no chunking.
What it does
Supported Opus and Sonnet models on qualifying plans offer up to a one-million-token context window. That's enough for a large repository's source, a long conversation history, and tool output without losing earlier turns. Compaction still exists as a safety net but rarely fires during normal work.
When to use it
- Large codebases you'd otherwise have to chunk.
- Long debugging sessions with lots of file reads.
- Tasks that require tying together evidence from many files at once.
- Agent runs where compaction loss would hurt correctness.
Gotchas
- More context costs more per turn, even with caching. Watch your spend on marathon sessions.
- Availability depends on your plan and the selected model. Check
/statusif you're unsure. - Just because the window is big doesn't mean you should fill it. Focused reads still outperform broad ones.
Official docs: https://code.claude.com/docs/en/model-config.md#extended-context
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Was this helpful?
Related Guides
Related Tools
Claude Agent SDK
Anthropic's SDK for building agents on the same tools, agent loop, and context management that power Claude Code. Python...
View ToolCodeburn
Interactive TUI dashboard that shows exactly where your Claude Code and Cursor tokens are going, in real time.
View ToolKimi Code
Open-source terminal coding agent from Moonshot AI. Launched on Kimi K2.5 and now runs Kimi K3 with up to 1M tokens of c...
View ToolClaude Opus 4.7
Anthropic's Opus model released April 2026, since succeeded by Opus 4.8 and Opus 5.5. Strong at coding, long-context ana...
View ToolRelated Videos

Generate Videos in Codex + Claude Code with This...
Check out HeyGen! https://heygen.1stcollab.com/developersdigest The video introduces HeyGen, an AI video generation platform with a rich API and a CLI that lets developers create, fetch, and manipula...

10x Design in Claude Code and Codex
Try Higgsfield: https://higgsfield.ai/s/higgsfield-general-campaign-developersdigest-juDMTi AI coding agents can build entire websites in minutes, but the default results often still look generic and...

Self Improving Applications with Claude Code & Codex
Build a Self‑Improving Next.js App: Supabase + Vercel Eve + GitHub Issues + Agent Loops Check out Supabase: https://supabase.plug.dev/1wWOTGS The video demonstrates how to build and deploy a self-im...
Related Posts

Claude Fable 5.1 in Claude Code: How to Switch, Pin, and Pay Less
Claude Code v2.1.257 points /model fable at Fable 5.1: 1M context, $10/$50 per MTok, $0.25 cache reads. Setup, gotchas,...

Claude Design, Slides and Docs in Any Chat: How to Use Them
Claude Design, Slides and Docs now open in any Claude chat, Claude Code session or the Artifacts tab, on every plan. Exa...

Claude for Startups Offer Paused: What Founders Do Now
Claude for Startups paused its free Claude Team year and $1,000 API credit offer at capacity. What the program page says...

Claude Advisor Tool vs a Bigger Model: When the Pairing Pays
Anthropic's own runs: a Fable 5.1 advisor added 1.7 points to Opus 5.5 for 2.1x the cost. When the Claude advisor tool p...

Claude Code Retry Watchdog: Keep Unattended Runs Alive
CLAUDE_CODE_RETRY_WATCHDOG=1 makes Claude Code wait out 429 and 529 errors instead of failing after 10 retries. When to...

Claude Max API Credits: $100 a Month, What They Cover
Claude Max and Team plans now include a monthly Claude API credit, starting at $100 on Max 5x. What it covers, what it d...
