The Problem
When using Copilot Agent Mode to generate code, it automatically tries to fix errors in the generated code, consuming multiple requests in the process.
You’d rather fix the errors yourself, but Agent keeps retrying and burning through your request quota.
The Solution
The github.copilot.chat.agent.autoFix setting lets you disable automatic error fixing in Agent Mode.
How to Configure
- Open Settings with
Ctrl + , - Search for
copilot agent autoFix - Uncheck “GitHub > Copilot > Chat > Agent: Auto Fix”
Example settings.json
{
"github.copilot.chat.agent.autoFix": false
}The default is true (auto-fix enabled). Setting it to false stops Agent Mode from automatically diagnosing and fixing errors after code generation.
When Auto-Fix Is Useful
Auto-fix is convenient for catching simple issues like type errors or missing imports. If you have plenty of requests to spare, keeping it enabled can save time.
Summary
Set github.copilot.chat.agent.autoFix to false to prevent Agent Mode from wasting requests on automatic error fixes you’d rather handle yourself.

