copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Allow configurable context window for Claude Opus 4.6 (200K cap vs 1M model capability)

Open aksingh opened this issue 6 months ago • 5 comments

Summary

GitHub Copilot CLI currently caps Claude Opus 4.6 at 200K tokens of context, despite the model natively supporting 1M tokens. This is an 80% reduction in available context that causes frequent automatic compaction (summarization) during deep technical sessions.

Problem

When working on complex projects that involve reading large specs, multiple deliverables, and conducting multi-turn analysis, the 200K limit is hit quickly. Automatic compaction then discards context that was expensive to build (both in time and premium requests), forcing re-reads and losing nuance.

Example session: Reading a ~3,200-line protocol spec, ~56KB of research deliverables, a ~50KB wave plan, plus web searches and sub-agent outputs. This is well within the model's 1M capability but exceeds the 200K Copilot budget.

Request

  1. Preferred: Allow users to configure the context budget (e.g., copilot --context-budget 500k or a setting in ~/.copilot/config.json). Users who need deep sessions can opt into higher token usage and accept the cost/latency tradeoff.
  2. Minimum: Expose the current context budget in /context output alongside a note explaining the cap vs model capability, so users understand the constraint.

Environment

  • Copilot CLI version: 1.0.49-1
  • Model: Claude Opus 4.6 (claude-opus-4.6)
  • OS: Windows 11
  • /context reports 200K token budget

References

  • Claude Opus 4.6 supports 1M tokens: https://www.anthropic.com/news/claude-opus-4-6
  • Similar issue on Claude Code: https://github.com/anthropics/claude-code/issues/24208

aksingh avatar May 17 '26 02:05 aksingh

Adding my experience: running Copilot CLI v1.0.52-2 with claude-opus-4.6-1m, the context usage display showed 25k/200k and auto-compaction triggered at ~25k tokens — discarding a rich multi-turn session (deep keyboard firmware analysis, local build debugging, code porting) when there should have been ~975k tokens of headroom.

The compaction threshold appears hardcoded to the 200K limit regardless of the model's actual 1M context window. This is a functional bug, not just cosmetic — valuable conversation history is lost unnecessarily.

Environment: macOS, Homebrew cask install, Copilot Pro+

lmqferreira avatar May 22 '26 22:05 lmqferreira

This is still occurring The compaction threshold appears hardcoded to the 200K limit regardless of the model's actual 1M context window. This is a functional bug, not just cosmetic — valuable conversation history is lost unnecessarily.

zahalzel avatar May 28 '26 14:05 zahalzel

This functionality has been added to Visual Studio Code 1.123 (released June 3, 2026):

Larger context windows: Support for 1M context windows for Anthropic and OpenAI models.

See: https://code.visualstudio.com/updates/v1_123#_1m-context-window-for-anthropic-and-openai-models

It would be great to see parity in the CLI as well.

vincentclee avatar Jun 17 '26 04:06 vincentclee

This appears to be resolved as of GitHub Copilot CLI v1.0.86. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

copilot-cli-bot[bot] avatar Sep 19 '26 09:09 copilot-cli-bot[bot]

i am on student develop pack still seeing 200k context window, but on vs code i still have 1M context window

adityapruthi01 avatar Oct 09 '26 10:10 adityapruthi01