You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/disable-automatic-commands.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Disabling automatic command approval in Copilot clients
3
3
shortTitle: Disable automatic commands
4
4
allowTitleToDifferFromFilename: true
5
-
intro: 'Disable yolo mode to stop agents from running commands without approval.'
5
+
intro: 'Disable YOLO mode to stop agents from running commands without approval.'
6
6
permissions: Enterprise owners
7
7
versions:
8
8
feature: copilot
@@ -14,15 +14,18 @@ category:
14
14
15
15
> [!NOTE] This feature is in {% data variables.release-phases.public_preview %} and subject to change.
16
16
17
-
You can prevent users from using modes that enable automatic approval of agent commands in {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_vscode_shortname %}. The `disableBypassPermissionsMode` setting is defined in your enterprise's `{% data variables.copilot.managed_setting_file %}` file and applies to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan.
17
+
You can prevent users from enabling bypass mode (also known as "YOLO mode") in {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_vscode_shortname %}. Bypass mode lets an agent run commands, access files, and fetch URLs without asking for approval. By disabling it for your enterprise, you ensure that a person reviews each of these actions.
18
18
19
-
This setting blocks users from using:
19
+
## What disabling bypass mode prevents
20
20
21
-
* The `--yolo` or `--allow-all` flag
22
-
* The `/yolo` or `/allow-all` command
23
-
* All runtime paths that enable combined bypass mode
21
+
The `disableBypassPermissionsMode` setting is defined in your enterprise's `{% data variables.copilot.managed_setting_file %}` file and applies to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan.
24
22
25
-
This setting does **not** block individual flags such as `--allow-all-tools` or `--allow-all-paths`.
23
+
When you set `disableBypassPermissionsMode` to `"disable"`, users cannot turn on YOLO mode in either client:
24
+
25
+
* In {% data variables.copilot.copilot_cli_short %}, the `--yolo`, `--allow-all`, `--allow-all-tools`, `--allow-all-paths`, and `--allow-all-urls` command-line options and the `/yolo` and `/allow-all` slash commands are blocked.
26
+
* In {% data variables.product.prodname_vscode_shortname %}, the global auto-approve setting (`chat.tools.global.autoApprove`), also known as "YOLO mode," is turned off and cannot be re-enabled.
27
+
28
+
## Disabling bypass mode for your enterprise
26
29
27
30
{% data reusables.copilot.create-managed-settings %}
0 commit comments