How can I increase Copilot Cloud Agent context window to avoid token-limit failures? #180198
Replies: 2 comments 2 replies
|
Unfortunately, I don’t think there’s a way to increase the Copilot Cloud Agent’s token limit right now. But if you use VS Code Insiders with Copilot Chat (GPT-4o), you can get a 128K token context window, i think. |
|
its likely not possible but here's some strategies i use personally so you can effectively manage the context you provide to the agent to avoid hitting those limits and get better results: (Hope it helps even if a little) |

Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Question
Copilot Feature Area
Copilot Coding Agent
Body
I’m using a GitHub Copilot Cloud Agent inside a GitHub Actions runner, and I repeatedly hit this error when the agent builds a large prompt (diffs + file context + tool outputs):
The current limit appears to be ~64K tokens. Modern models like Claude 3.5/4.5 or GPT-4.1 support 200K–1M context windows.
My question:
Is there any way to configure Copilot Cloud Agents to use a larger context window or select a model with higher token limits? For example:
Here is the redacted log pattern:
Looking for guidance on removing or raising this 64K cap so large PRs and long diffs don’t cause the first completion to fail.
All reactions