Claude Code context window size: what actually fits

Kenneth Pangan
Written by

Kenneth Pangan

Last edited September 9, 2026

Expert Verified
Illustration of two people reviewing a document beneath speech bubbles and a curved arrow.

What a context window is—and is not

A context window is the information a model can reference while generating a response. In an API request, that includes the system prompt, message history, tool definitions and results, images or documents, and the new output. Anthropic's context guide says the output counts too.

It is not the model's training data, and it is not durable project memory. A Claude Code session starts with a fresh window. CLAUDE.md and auto memory can carry selected knowledge into a new session, but they use part of that new session's context when loaded.

That distinction matters in practice. A request to “remember the whole codebase” is not a useful operating plan. Give Claude the current goal, the relevant files, the acceptance check, and any constraints that apply. Keep a decision or handoff in a file when a future session must recover it.

Why there is no single Claude Code context-window size

People often quote a context limit as if it applied to every Claude product. It does not. API documentation describes capacity per model, while Claude Code, Claude.ai, managed environments, and third-party surfaces can select or restrict models differently. Account access and organization policy can change what you can select.

The current model overview lists context and output limits per API model. For Claude Code itself, the extended-context guide gives more useful conditions, checked September 9, 2026:

Claude Code setupDocumented context behavior
Sonnet 5 on the direct Anthropic API pathNative 1M context, subject to a configured 200K hold; gateways require their own capability check.
Opus on Max, Team, or EnterpriseAutomatically upgraded to 1M, including Standard and Premium Team seats.
Opus on Pro, or Sonnet 4.6 with 1M on a subscriptionExtended context requires usage credits.
CLAUDE_CODE_DISABLE_1M_CONTEXT=1Holds native-1M sessions to a 200K budget; compaction or a context-limit error then depends on settings.

The guide says extended context uses standard model pricing, without the old premium beyond 200K. This is not unlimited usage: subscription allowances or usage credits still apply. Check /model for your available model and 1M option, and /context for the running session. Do not change a managed context setting simply to match a blog's number.

QuestionWhat to checkWhy it changes the answer
Which model is active?The current Claude Code session and the current model documentationModels have different input and output limits.
Which surface is running it?Claude Code, API, Claude.ai, or a managed runnerInterfaces can manage history and available models differently.
What is already in the task?Instructions, conversation turns, files, images, tools, and tool resultsAll of these can consume capacity.
What is reserved for the answer?The selected model's output limit and task needsInput space alone is not the whole request.

If you build against the API, query the Models API for models available to your account and their reported limits. Do not hard-code a blog's old model ID or assume the number shown for one product is the number available in another.

What fills a Claude Code session

The visible chat is only part of the context. Claude Code also loads project guidance. Its memory documentation says CLAUDE.md files enter the context at session start and recommends keeping each file under 200 lines. Imports still load, so splitting one oversized document into several always-loaded files does not create more room.

Use the smallest durable form of guidance that fits the job:

Put it hereWhen it belongs thereContext effect
CLAUDE.mdEvery session needs the fact: test command, convention, or guardrailLoaded at session start.
.claude/rules/ with pathsOnly one area of the repository needs itLoads when the matching work applies.
A skillA repeatable procedure is relevant to some tasks, not allLoads when invoked or relevant.
A handoff fileA later session needs a decision, open question, or test resultLets the next session recover the needed facts.

Run /context to confirm which memory files loaded. That is a useful diagnostic, not a guarantee that an instruction is enforceable: CLAUDE.md guides the model, while settings, permissions, and hooks govern what the client allows.

Claude Code in VS Code showing the project explorer, an open CSS file, and a conversation preparing a localization test.
Claude Code in VS Code showing the project explorer, an open CSS file, and a conversation preparing a localization test.

Claude Code's VS Code extension, shown in the official documentation.

A larger window still needs curation

More capacity can let you analyze a larger change or keep a longer investigation together. It does not make irrelevant material helpful. Anthropic explicitly warns that accuracy and recall can degrade as the token count rises; it calls that effect context rot.

Use a simple review loop:

  1. State one deliverable and how you will verify it.
  2. Name the files, subsystem, or documents that are in scope.
  3. Keep recurring, broadly useful instructions concise; move specialized instructions behind a path or skill.
  4. Ask separate Claude Code subagents to explore independent areas and bring back a short, sourced finding.
  5. Before an edit, restate the evidence, remaining uncertainty, and the exact test to run.

This is not a trick for bypassing a limit. It gives the model less unrelated material to weigh and gives a reviewer a smaller, clearer trail to inspect.

For an API workflow that genuinely approaches its selected limit, use the documented token-counting endpoint before a request. Anthropic offers server-side compaction for eligible models and context editing for specialized cases. Cached prompt prefixes can change billing, but they still occupy context capacity.

Use eesel CLI for a focused support-context review

Consider a support owner who wants to check whether a helpdesk teammate still has the approved return-policy source after a documentation migration. The useful question is narrow: is the named source connected and ready, and do the teammate's standing instructions still point people to the approved escalation path?

Do not paste every support article, old ticket, and dashboard export into a coding chat. The owner supplies the approved teammate and source. Claude Code or a script then reads the current setup and prepares a comparison for that owner.

eesel CLI lets a person, script, Claude Code, Codex, or Cursor inspect the same teammate and workspace shown in the dashboard. JSON output helps the coding agent select the relevant facts for its review. A repository configuration does not choose the eesel identity or teammate for you.

With Node.js 18.17 or newer and an approved eesel login or script credential, first establish the actual identity. For an existing workspace, npx @eesel/cli login opens the browser and stores credentials if needed. The following reads state; it does not change the teammate:

Bash
npx @eesel/cli whoami
npx @eesel/cli agents

For a script, EESEL_API_URL and EESEL_API_TOKEN take precedence over stored credentials. That means a terminal and a CI job can reach different workspaces. Confirm the output with the support owner before continuing, and never put tokens in CLAUDE.md or a report.

Then use the exact teammate the owner approved. This example reads only the information needed for the migration review:

Bash
CONTEXT_REVIEW_AGENT="REPLACE_WITH_OWNER_APPROVED_AGENT"
npx @eesel/cli status --agent "$CONTEXT_REVIEW_AGENT"
npx @eesel/cli integrations --agent "$CONTEXT_REVIEW_AGENT"
npx @eesel/cli integrations download list --agent "$CONTEXT_REVIEW_AGENT"
npx @eesel/cli instructions --agent "$CONTEXT_REVIEW_AGENT"
npx @eesel/cli activity --agent "$CONTEXT_REVIEW_AGENT"

Ask the coding agent for a compact report with four rows: approved source, observed source status, relevant instruction, and an unresolved question. For example, it can flag that the source is connected but not ready, that an instruction names a retired escalation route, or that the inspected output does not show the field needed to decide. “Not shown here” is not the same as “absent.”

Have the owner supply only the approved policy excerpt, its version, and the intended escalation route for comparison. Source status is evidence of setup, not proof that the actual policy text is correct. Keep the full output available for an authorized reviewer, but bring only the relevant passage and finding into the coding conversation. That saves context without asking the coding agent to guess the missing policy or claiming the entire eesel knowledge base was loaded into Claude Code.

This workflow gives the support owner a reviewable difference; it does not authorize an automatic change. If the owner wants a correction, inspect that command's current --help, preview a supported write with --dry-run, and apply only the separately approved change. Read it back afterward. A preview is not an answer test. Setup and observation are free; chat is billed work. If a response test is needed, use an owner-approved nonproduction teammate with consequential actions Disabled in the actual Actions settings, and get approval for billed chats.

Keep the support review focused with eesel CLI

Choose the current model and surface for the task you actually have, then keep the session's working set small enough to review. A large context window helps when the relevant work is truly large. It is not a replacement for selecting evidence, preserving a handoff, or testing a result.

For support operations, the coding agent can review a narrow excerpt and setup while the owner manages the same eesel teammate in the dashboard. It does not need a second copy of every ticket in its own context window.

eesel dashboard showing a Get your teammate ready checklist, helpdesk and chat response channels, and a chat panel.
eesel dashboard showing a Get your teammate ready checklist, helpdesk and chat response channels, and a chat panel.

This example workspace is not evidence of a completed policy migration. Try eesel with one named support job and an owner who reviews its sources and behavior before expanding the scope.

Frequently Asked Questions

What is the Claude Code context window size?

There is no single fixed Claude Code context window size. Capacity depends on the model selected for that session and the product surface. Check the current model documentation and your running session instead of relying on an old model table.

Do Claude Code instructions use context tokens?

Yes. Claude Code loads CLAUDE.md instructions into the session context. Keep always-needed instructions concise, then use path-scoped rules or skills for details that only apply to part of a repository.

Does a bigger context window make Claude Code more accurate?

Not by itself. Anthropic documents that accuracy and recall can degrade as context grows. A focused task brief, selected files, and a clear verification step are often more useful than adding unrelated material.

How can I see what Claude Code loaded?

Run /context in Claude Code to inspect loaded memory files. It helps confirm that the project instructions you expected are present; it is not proof that every instruction will be followed or that every tool has permission.

What happens when an API request exceeds Claude context?

If input alone is too large, the API returns an invalid-request error. Later-model behavior can instead stop generation at the context limit. Use the current API documentation and token-counting tools for the selected model.

Can Claude Code use eesel CLI without a separate workspace?

Yes. eesel CLI operates the same teammate and workspace as the dashboard. It has its own authentication and agent target, so check who is signed in and pass the owner-approved teammate with --agent before inspecting anything.

Should I send an entire support knowledge base to Claude Code?

Usually no. Start with the specific policy, observed setup, and question to review. For support work, retrieve and compare the relevant source instead of treating a maximum context window as a substitute for a scoped review.

Share this article

Kenneth Pangan

Article by

Kenneth Pangan

Writer and marketer for over ten years, Kenneth Pangan splits his time between history, politics, and art with plenty of interruptions from his dogs demanding attention.

Related Posts

All posts →
Claude Code lettering above a JetBrains-style IDE terminal and a person using a computer
Guides

Claude Code IDE integrations: VS Code, JetBrains, and safe local context

Use Claude Code in VS Code or JetBrains with selection context and native diffs, understand what each extension needs, and safely inspect a failed eesel knowledge sync.

Kenneth PanganKenneth PanganSep 9, 2025
Illustration of a person using a long-handled net beside three small round characters
Guides

Claude Code JetBrains integration: setup, context, and review

Set up Claude Code in JetBrains, understand selection sharing, diagnostics, remote development, and safe review, then compare an approved source snippet with an eesel teammate.

Kenneth PanganKenneth PanganSep 9, 2025
Selection context Claude Code: How it enhances AI understanding and automation
Guides

Selection context Claude Code: How it enhances AI understanding and automation

Tired of context-switching with AI coding tools? Learn how Claude Code uses selection context to understand your code deeply. We'll break down its features, workflows, pricing, and what it means for the future of AI assistants in other fields, like customer support.

Stevia PutriStevia PutriSep 30, 2025
Illustration of three people reviewing access controls beside the Claude logo
Guides

Claude Code admin controls: a practical guide for IT and DevOps

Configure Claude Code settings, permissions, managed MCP, sandboxing, and server-managed controls without mistaking client policy for a security perimeter.

Rama Adi NugrahaRama Adi NugrahaJun 9, 2026
Illustration of a presenter pointing to a flip chart
Guides

Amazon Bedrock Claude Code: setup, model access, and limits

How to configure Claude Code through Amazon Bedrock, choose a current inference profile, manage IAM access, and validate the setup.

Kenneth PanganKenneth PanganSep 30, 2025
Split black and colorful geometric artwork for The Way of Code by Rick Rubin with Claude.
Guides

The 5 Claude AI apps you can build without code

See five useful Claude Artifact app types, what sharing, AI, MCP, and storage allow, and the checks to make before publishing.

Katelin TeenKatelin TeenJan 9, 2026
Anthropic example showing a Dispatch mobile conversation beside a browser preview and Claude Code terminal on a computer.
Guides

Claude desktop: Chat, Cowork, Code, local access, and pricing

A current guide to Claude Desktop, Cowork, Claude Code, local files, computer use, plan limits, and a safe review workflow.

Stevia PutriStevia PutriJan 9, 2026
Orange Claude Code lettering beside an illustrated person holding a gear.
Guides

Claude AI coding assistant: a current Claude Code guide

Learn what Claude Code does, where it fits in a development workflow, how permissions and MCP change the risk, and how to release support updates carefully.

Rama Adi NugrahaRama Adi NugrahaJan 9, 2026
Orange Claude Code lettering beside an illustrated person holding a gear.
Guides

Claude AI coding software: a practical Claude Code guide

Learn what Claude Code software does, how its native install, pricing, permissions, and MCP connections work, and how to use it in a controlled bug-triage workflow.

Stevia PutriStevia PutriJan 9, 2026

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free