Skip to main content

Github Copilot Auto Approve

·1 min

Introduction
#

While the Copilot team has taken measures to prohibit the agent from executing disastrous commands, auto approving commands will always hold an inherent risk.

Auto Approve Everything
#

To auto approve all commands the agent intends to run, follow the steps below.

  • Open the VS Code setting with cmd + ,
  • In the Search settings text field, type chat auto approve
    • Click the check box to enable the setting
  • Again, in Search settings, type chat max requests
    • For me, this setting was set at a default of 25 which was not sufficient for more sophisticated tasks, so I increased this value to 100

Auto Approve Selected Commands
#

As described in this GitHub issue, the Copilot agent now supports explicit enabling and disabling of commands:

"chat.agent.terminal.autoApprove": {
  "foo": true,
  "bar": false
}
Florian Schäfer
Author
Florian Schäfer
Welcome to my website where you can read my blog or learn something about me.