382 words
2 minutes
How to Automate GitHub Copilot Agent Mode | Enable Auto Approve in VS Code

GitHub Copilot Agent Mode Challenges and the Need for Auto Approve#

Have you ever felt frustrated with the constant clicking when using GitHub Copilot in VS Code??

Despite being called “Agent Mode,” you’re constantly asked for permission every time a command is executed, and after a certain number of repetitions, you’re prompted with a “Continue” button. Wouldn’t you like to reduce the number of clicks??

Automatic Command Approval#

Having to formally approve basic commands like mkdir or cd can feel quite silly. VS Code has a feature to automatically approve these commands!

Information

Enabling this feature allows basic file operation commands to be automatically approved, significantly improving development efficiency.

Step 1: Open VS Code Settings#

Open the settings screen using one of the following methods:

Using keyboard shortcuts:

  • Windows / Linux: Ctrl + ,
  • macOS: Cmd + ,

Using GUI [Common]: Click the ⚙ (gear icon)

Copilot Permissions Popup

Select Settings.

Copilot Permissions Popup

If this screen appears, you’re on the right track.

Auto Approval Setting Screenshot

Step 2: Change Auto Approve to true#

Enter chat auto approve in the search box.

VS Code Settings Screenshot

Select the checkbox for Chat > Tools: Auto Approve.

Max Request Configuration

Warning

This operation carries risks and is an experimental feature that may change its behavior in the future.

Automatic Session Continuation#

While you don’t want sessions to run too long, it’s also ridiculous to check every few minutes whether Agent Mode has stopped, despite being called “Agent Mode.”

Here’s how to increase the maximum number of requests per VS Code Copilot session, allowing for longer execution times.

Recommended Setting

Increasing the default value from 15 to around 50 allows for longer continuous work sessions.

Step 1: Open VS Code Settings#

The procedure is the same as “Automatic Command Approval - Step 1” in the previous section.

Step 2: Change the Max Request Value#

Search for Chat max request to find it.

In my case, the default was 15. The larger this value, the longer Copilot will continue coding. I changed mine to 50.

GitHub Copilot Agent Mode Auto Approve Configuration Steps

Warning

While larger values allow for more continuous development, they also make it easier to hit Copilot’s request limits and other potential drawbacks, so use with caution.

Summary: Making Agent Mode Comfortable with Auto Approve#

While VS Code’s Copilot has less configuration flexibility compared to tools like Cursor, there are still various settings you can adjust. I plan to continue using VS Code. Please consider discounting the paid plan

Frequently Asked Questions (FAQ)#

Is GitHub Copilot's Auto Approve safe?

While commands executed by GitHub Copilot are limited to VS Code's permissions, there's still a risk of approving incorrect commands. Enable it only in trusted repositories and disable it when not needed. Auto Approve is a feature that eliminates permission clicks; it doesn't expand the scope of what Copilot can execute.

What should I do if Auto Approve isn't working?

This might be due to VS Code Settings Sync conflicts or known bugs that occur only in Insiders builds. Try editing the settings directly in JSON format, verify that 'github.copilot.agent.autoApprove': true is enabled, and restart VS Code.
How to Automate GitHub Copilot Agent Mode | Enable Auto Approve in VS Code
https://naonao-na.com/en/posts/vscode-copilot-make-auto/
Author
[object Object]
Published at
2025-06-20