Start Debugging

How to Turn On Copilot Assisted Permissions in Copilot CLI and VS Code and Lock Down Allow All With Enterprise Managed Settings

Enable GitHub Copilot assisted permissions with /permissions assisted, defaultPermissionMode or --assisted-approval in Copilot CLI 1.0.104+, the Copilot app and VS Code 1.143+, then use copilot/managed-settings.json to block Allow All, set the default mode and keep deny and ask rules in force. Covers how the safety review decides, what it never reviews, billing, and the headless gotchas.

This site uses Walter, an AI agent, for research, writing, and maintenance. Editorial and verification process

Short answer: in Copilot CLI 1.0.104 or later, type /permissions assisted in a session, or set "defaultPermissionMode": "assisted" in ~/.copilot/settings.json to make it the default, or pass --assisted-approval (or COPILOT_ASSISTED_APPROVAL=true) to a non-interactive copilot -p run. In the Copilot app 1.1.32+ pick Tool permissions > Assisted from the mode menu; in VS Code 1.143+ pick Assisted permissions from the permissions picker. A separate model then reviews each command, file path or URL your existing rules have not already allowed, approves the ones it is confident are safe, and hands the rest back to you. To stop developers from falling back to Allow All, an enterprise admin commits copilot/managed-settings.json to the .github-private repository with "permissions": { "disableBypassPermissionsMode": "disable", "defaultMode": "assisted" }. That kills --yolo, --allow-all and /allow-all while leaving Assisted available. Assisted permissions went generally available on October 26, 2026 across all three surfaces. This post was written against the docs as of November 29, 2026 and the current CLI release, 1.0.117. The configuration below has not been run against a live Copilot Business or Enterprise tenant.

Why manual approval keeps losing to Allow All

Copilot’s agent surfaces started with two real options. Manual approval asks you about every shell command, out-of-workspace file access and URL fetch that no rule already covers. Allow All (--allow-all, --yolo, the app’s Approve all, the VS Code global auto-approve) asks about nothing. Manual mode is safe, but in a long session it trains you to hit Enter without reading, which is close to having no control at all. Allow All is honest about having no control, and that is why security teams hate it.

Assisted permissions is the middle option, the same shape as Claude Code’s classifier-backed auto mode (covered in auto mode vs manual approval in Claude Code). The prompts you still see are the ones that need a human. ls, git status, dotnet test and reading a file in the repo go through. curl ... | sh, rm -rf outside the workspace or a git push --force come back to you.

Enterprise managed settings matter here because the setting is only as strong as the easiest way around it. If any developer can type /yolo when the prompts get annoying, assisted mode is a suggestion. The September 9, 2026 enterprise managed permissions release and the October 26 GA together let an admin remove that escape hatch.

Turn it on in Copilot CLI

Three entry points, and which one you need depends on whether a human is at the keyboard.

For the current interactive session only:

# Copilot CLI 1.0.104+ interactive session
/permissions assisted
/permissions show
/permissions manual

/permissions with no argument opens a picker. /permissions show prints the mode the session is in now, which is the quickest way to confirm an enterprise policy did not silently put you back on manual.

To make Assisted the default for every new interactive session, set it in your user config file. You can also do this from /settings:

// ~/.copilot/settings.json, Copilot CLI 1.0.104+
{
  "defaultPermissionMode": "assisted"
}

For a non-interactive run, use the flag or the environment variable:

# Copilot CLI 1.0.104+, non-interactive
copilot -p "Fix the failing tests in src/Orders.Tests" --assisted-approval

# same thing, useful in CI where you set env once per job
COPILOT_ASSISTED_APPROVAL=true copilot -p "Fix the failing tests in src/Orders.Tests"

--assisted-approval is for -p runs only. Starting an interactive session with it makes the CLI exit with an error, so do not put it in a shell alias for copilot.

Turn it on in the Copilot app and VS Code

In the GitHub Copilot app (1.1.32 or later), open the mode menu in the prompt box, click Tool permissions and select Assisted. That sets the current session and the default for new local sessions. To change only the default, go to Settings > Sessions > Tool permissions > Assisted. /permissions assisted in the prompt box also works for the current session. There are no tool permission controls for cloud sessions, which run in GitHub’s own environment with their own rules.

In VS Code (1.143 or later), open the permissions picker in the chat view and choose Assisted permissions, alongside the existing manual and allow-all choices. Enterprise managed permissions apply to VS Code sessions that use Agent Host, the same runtime local sandboxing depends on.

What the safety review actually decides

The review runs only after your normal rules have had their turn. Per GitHub’s docs on allowing safe commands:

  1. Anything your existing allow rules or earlier approvals already permit runs with no prompt and no model call.
  2. Everything left that is a request to run a command, access a file path, or open a URL goes to the safety review.
  3. If the reviewing model is confident the request is safe, Copilot approves it. If it is not confident, you get the same prompt manual mode would show.

The default reviewer is a GPT Luna model. If that model is not available to you, Copilot falls back to another model that GitHub has evaluated for safety reviews. If none is available, or the review fails or cannot evaluate a request, the request follows the session’s normal permission handling, which in practice means you get prompted. If you bring your own model provider, the review uses your session’s active model, so the quality of the gate is now the quality of the model you picked.

Two kinds of request are never sent to the review and always follow normal handling:

  • Tool calls that enterprise rules say must be approved (managed ask rules, below). An admin’s “always ask” cannot be satisfied by a model.
  • Requests to bypass local sandboxing. If you run with Copilot local sandboxing and a command hits the sandbox wall, the bypass prompt is always yours to answer.

Each review is a separate model request and costs AI credits. GitHub puts it at roughly 0.1 credits or less per review with GPT-6 Luna, and with your own provider the provider bills you. Use CLI 1.0.104+ or app 1.1.32+ for the billing to be counted correctly. A busy session can do dozens of reviews an hour, so if you already run with per-session AI credit limits, leave a little room for them.

How it interacts with the allow-all flags

This is where most scripted setups go wrong, because the flags overlap without fully replacing each other.

You passTool and command requestsFile paths outside the workspaceURLs
nothingmanual promptsmanual promptsmanual prompts
--assisted-approvalsafety reviewsafety reviewsafety review
--allow-all-toolsapproved, no reviewmanual promptsmanual prompts
--assisted-approval --allow-all-toolssafety review (assisted wins)safety reviewsafety review
--assisted-approval --allow-all / --yolosafety reviewunrestrictedunrestricted

The docs state that --assisted-approval takes precedence over --allow-all-tools when it is successfully enabled, and that it does not change --allow-all-paths or --allow-all-urls. So adding --assisted-approval to an existing --yolo script makes tool calls safer and leaves path and URL access wide open.

The second half of that rule is the dangerous one. If assisted permissions cannot be enabled, for example because your enterprise disabled it, the CLI prints a warning to stderr and keeps going. It does not cancel a separate --allow-all-tools, so a script that passes both flags silently becomes a full allow-all run. In CI, check stderr or run /permissions show in a smoke job, and drop --allow-all-tools from any script you are converting to assisted mode.

Deny rules and enterprise restrictions apply in every row. Assisted mode only ever adds approvals for requests that were not already denied.

Headless and autopilot runs: approvals become denials

In a non-interactive -p run or autopilot mode there is nobody to answer the prompt. Requests the review is not confident about are denied, and the reviewer’s explanation is passed back to the agent so it can try another way. That is usually what you want: the agent switches from curl | sh to the package manager, or from a global install to a project-local one.

It also means a headless job can now fail where it used to succeed under --allow-all-tools, because a step that needs a risky but legitimate command gets refused every time. If a step really needs something like git push, grant it with an explicit allow rule (see allowing and denying tool use) instead of falling back to allow-all. That is the same trade-off as the headless permission-prompt stalls in Claude Code: make the needed permission explicit and narrow.

Lock down Allow All with enterprise managed settings

Managed settings are available to Copilot Business and Copilot Enterprise. The recommended delivery is server-managed: a file at copilot/managed-settings.json in your enterprise’s .github-private repository, committed to the default branch. It is the same file that carries MCP allowlists and sandbox enforcement.

A baseline that makes Assisted the default, removes every allow-all path, and keeps a few hard lines in place:

// copilot/managed-settings.json in .github-private
// Copilot CLI 1.0.104+, VS Code 1.143+, Copilot app 1.1.32+
{
  "permissions": {
    "defaultMode": "assisted",
    "disableBypassPermissionsMode": "disable",
    "deny": [
      "Shell(git push --force *)",
      "Shell(git push -f *)",
      "Read(~/.aws/**)",
      "Domain(*.pastebin.com)"
    ],
    "ask": [
      "Shell(git push *)",
      "Shell(gh pr merge *)"
    ]
  }
}

What each key does, per the enterprise managed settings reference:

  • permissions.disableBypassPermissionsMode: "disable" removes Allow All everywhere. In the CLI, --yolo, --allow-all and every --allow-all-* flag have no effect, and /permissions allow-all, /allow-all and /yolo are blocked. /permissions assisted and /allow-all auto still work. In VS Code the global auto-approve setting is turned off and cannot be turned back on. In the app, sessions cannot use Approve all. Assisted approvals and read-only operations still go through without a prompt.
  • permissions.defaultMode sets the starting mode for new sessions: "manual", "assisted" or "allow-all". It is a default, not a lock. Developers can switch to any mode the policy permits, and if the default is blocked (say "allow-all" together with the bypass disabled) sessions start on manual.
  • permissions.disableAssistedPermissionsMode: true does the opposite job: it stops users from turning on assisted permissions, for organizations that are not ready to let a model approve anything. It does not disable bypass mode, so if you set it, set disableBypassPermissionsMode too or you have pushed people toward Allow All.
  • permissions.deny, permissions.ask, permissions.allow are rule lists with Shell(...) (aliases Bash(...) and PowerShell(...)), Read(...), Edit(...) (alias Write(...)) and Domain(...) selectors. Deny beats ask, ask beats allow. An ask rule needs fresh approval every time, and neither bypass mode, auto-approval, saved grants nor the assisted review can satisfy it. Managed restrictions cannot be weakened by user or workspace settings or by earlier approvals. The patterns in the example are illustrative; check the reference for the exact wildcard rules before you rely on a deny line.

Be careful with permissions.allow at the managed level. Across sources the allow lists are intersected, and once any managed source defines allow rules, operations that match none of them need approval. A short managed allow list can turn a developer’s long local allow list into a stream of prompts.

Rollout and verification

Server-managed settings reach clients within about an hour, or right away after a client restart or sign-in. Validation errors show up in the enterprise AI controls page, under the Agents tab, in Copilot settings validation. Check it after every commit, because a typo in a key name is not an error on the developer’s machine.

For machines that need the policy before anyone signs in, there are two other channels. MDM on Windows uses REG_SZ values under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GitHubCopilot, and on macOS forced managed preferences in the com.github.copilot domain. Keys are dotted names and complex values are JSON text in a string, for example permissions.disableBypassPermissionsMode = disable. Linux is not supported for MDM. A file-based policy works everywhere, including containers and Codespaces:

# Linux / dev container image, file-based managed settings
sudo install -d -m 755 /etc/github-copilot
sudo install -o root -g root -m 644 managed-settings.json /etc/github-copilot/managed-settings.json

On macOS the path is /Library/Application Support/GitHubCopilot/managed-settings.json, and on Windows %ProgramFiles%\GitHubCopilot\managed-settings.json. On macOS and Linux the CLI rejects the file unless it is a regular file owned by root, not group- or world-writable, and not a symlink. That is why the snippet uses install -o root -m 644 rather than a COPY that leaves the file owned by your build user. Clients must restart to pick up a file-based policy.

When several sources set the same key, MDM wins over server-managed, which wins over file-based, which wins over user settings. The sandbox, permissions.deny, permissions.ask, permissions.allow and strictPluginOnlyCustomization keys are combined in the most restrictive direction instead. A team that needs a looser default can get one through copilot/team-mappings.json and copilot/teams/ if you wrap the key as { "overridable": ... } in the enterprise file. disableBypassPermissionsMode is the one you most likely want to keep non-overridable.

Gotchas

  • Old clients ignore the new mode. Assisted needs CLI 1.0.104, app 1.1.32 or VS Code 1.143. Pin a minimum version in your dev container or image, or defaultMode: "assisted" means “manual” on stale machines.
  • The review is not a sandbox. A model judging “is this command safe” can be wrong, and prompt injection in a README or issue body is the obvious way to try to make it wrong. Pair assisted mode with local sandboxing and an egress allowlist so that a wrong approval still runs inside walls.
  • BYO model, BYO judgment. With your own provider, the reviewer is your session model. A small local model used to save money is also the thing approving your shell commands.
  • /allow-all auto still works with bypass disabled. The reference lists it next to /permissions assisted as a command that keeps working under the lockdown, so do not file it as a policy failure when you see it in someone’s terminal.
  • Cloud sessions are separate. Copilot cloud agent sessions run in GitHub’s own environment and do not show the tool permission controls described here.

Sources

Comments

Sign in with GitHub to comment. Reactions and replies thread back to the comments repo.