In short.
This GitHub Docs guide shows developers who use GitHub Copilot CLI, an AI assistant that can run shell commands, edit files and fetch web content from the terminal, how to control which of those actions it may take with or without asking first. Some approvals are saved beyond the current session, and a shell command can do anything the user's account can do. It distinguishes tools the model can see from actions those tools may perform, states that deny rules override allow rules, saved approvals and --allow-all, and documents manual, assisted and permissive modes. Its strongest practical detail is the distinction between location-specific approvals and domain approvals that apply across sessions. Installation requirements, pricing, complete pattern syntax and runtime enforcement are not established by this page. No commands were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected documentation page at the exact supplied article-body address, including its examples, persisted-permission rules, administrator caveats, assisted mode, reset behavior and permissive-option warnings. Linked pages are excluded; their contents were not assessed. No commands were executed, and installation compatibility, runtime enforcement, sandbox effectiveness, pricing and licensing remain unverified or unknown where the page provides no evidence.
The overview
Identity
Allowing and denying tool use is a GitHub Docs guide to permission controls in GitHub Copilot CLI. The resource is documentation for configuring an AI coding assistant. The exact source is [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools].
Assessment
The guide is useful when deciding how much autonomy to give Copilot CLI. It connects concrete commands with consequences: preventing the model from choosing a tool, allowing particular operations without prompts, retaining consent and returning to manual approval. Its examples provide a practical starting point, although complete permission-pattern syntax and configuration schemas are delegated to linked references. The page documents intended behavior; enforcement was not tested.
Users
Beginners already using Copilot CLI can use this guide to understand approval prompts and why some permissions remain active later. Experienced developers can use its command patterns to configure repository work, MCP tools and non-interactive runs. It also addresses managed environments, where enterprise administrators may block permissive options. Readers needing installation, authentication or a complete security architecture will need additional documentation.
Capabilities
The page covers restricting available tools, allowing or denying tool operations, scoping shell commands, permitting writes to a specific file and allowing named MCP operations. It also explains saved approvals, assisted permission decisions, broad access options and permission resets. Copilot CLI itself is described as able to execute shell commands, read and write files, search code, fetch web content and delegate tasks to specialized sub-agents.
Using it
Requirements
Applying the examples requires a Copilot CLI installation supporting the documented options and commands. The page does not specify installation steps, supported operating systems, authentication requirements or a minimum CLI version. Existing permissions, applicable policy and enterprise rules can affect approvals. Business and Enterprise administrators may block broad permission options; the page does not establish the subscription requirements for every feature.
Mechanism
The controls have two layers. The --available-tools option exposes only the specified tools to the model, while --excluded-tools removes specified tools. If both are supplied, --available-tools takes precedence and --excluded-tools is ignored. Separately, --allow-tool permits matching operations without a prompt, and --deny-tool blocks matching operations. Allowing an operation cannot restore a tool removed from the available set. Deny rules override allow rules, saved approvals and --allow-all.
Saved tool and directory approvals are scoped to the Git repository root, or the working directory outside a repository. They are stored by default in ~/.copilot/permissions-config.json. Permanent URL approvals instead add domains to the allowedUrls list in settings.json, by default ~/.copilot/settings.json, and apply across sessions without being tied to one location. Command-line allow and deny options apply only to the current session.
Read-only operations are generally allowed automatically, subject to applicable policy. Manual mode prompts for requests without an existing allowance. Assisted mode uses a language model to assess eligible requests and automatically approve those it judges safe; existing permissions and enterprise rules continue to apply.
Setup
In an interactive session, /permissions show displays the current permission setting, /permissions manual selects manual approval and /permissions assisted enables assisted decisions. To make assisted mode the default for new interactive sessions when no managed default is configured, the page specifies defaultPermissionMode set to "assisted" in the user configuration file. Non-interactive runs can use --assisted-approval.
The /reset-allowed-tools command revokes session-granted permissions, returns to manual mode and clears saved tool and directory approvals for the current location. Startup permission rules remain the baseline, so a reset does not necessarily mean every operation will prompt again. It also re-arms the autopilot permission dialog. Removing another location's saved approvals requires editing or deleting that location's configuration entry. The page does not describe this reset as removing permanent allowedUrls entries.
Example
The documented command copilot --excluded-tools='web_fetch, web_search' starts a session in which those two web tools are unavailable to the model. The page presents this for project benchmarking work where web search is unwanted. Removing these tools should not be interpreted as proof of network isolation, because the same page explains that shell commands can make network requests.
Another documented pattern is --allow-tool='shell(git:*)' --deny-tool='shell(git push)'. It allows matching Git commands without prompting while blocking git push. This illustrates deny-rule precedence; it does not establish that other Git commands are harmless or read-only. These examples were not executed.
Assessment & evidence
Limitations
Tool permissions do not establish environmental isolation. The page warns that shell commands can perform actions available to the user account, including installing packages, deleting files, pushing code and making network requests. It recommends isolated environments for permissive options and warns against aliases that automatically enable them.
The --allow-all-tools option permits all available tools. The broader --allow-all and --yolo startup options also allow all paths and URLs. Assisted approval reduces some prompts but depends on model judgments; the page provides no measured error rate or exhaustive description of eligible requests. Complete matching semantics, sandbox behavior and actual enforcement were not assessed.
Reasoning
The guide's practical value comes from explaining permission boundaries that are easy to confuse. A model-visible tool may still need approval, a saved approval has a particular scope, and resetting permissions preserves startup rules. These distinctions support more deliberate configuration. The assessment is based on the documented rules and examples, without evidence of security effectiveness, productivity gains or fewer unintended changes in practice.
Alternatives
Within Copilot CLI, the page presents manual approval, explicit permission rules, assisted approval and broad permissions as different ways to manage prompts and autonomy. Restricting available tools can also prevent attempts to use unwanted capabilities. For limiting what a session can access, it points to local and cloud sandboxes, whose linked documentation is outside this evidence. No comparison with other coding assistants is supported.
Evidence
The evidence consists of the complete GitHub Docs page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools]. It includes explanatory text, command examples, permission-storage details, administrator caveats and isolation warnings. Linked command references, configuration schemas, sandbox guides and assisted-permission explanations were not included. No implementation inspection or command execution supports the documented behavior.
Access & freshness
Costs
The page gives no subscription prices, usage charges or quotas, and does not establish the cost impact of assisted permissions. Total cost is unknown from this evidence. References to Business and Enterprise concern administrator controls rather than a pricing comparison.
Rights
The supplied page does not state a documentation licence, redistribution terms, a Copilot CLI software licence or rights covering generated output. Those rights are unknown from this evidence. Public availability of the documentation does not establish permission to redistribute its captured text.
Freshness
The page was captured on November 15, 2026 at 12:51:44.550 UTC. The supplied text does not identify its last update date or the Copilot CLI versions to which each feature applies. Compatibility with a particular installation, and changes after capture, remain unknown.
Actions
Before applying a configuration, check the active permission mode and distinguish current-location approvals from permanent domain approvals. Choose the tools needed for the task, then specify permission rules for their operations. Consult the linked command reference for complete syntax [https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference] and configuration reference for saved approvals [https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference#permissions-configjson]. If broad permissions are necessary, follow the page's recommendation to use an isolated environment. After a reset, account for any permission rules supplied at startup.
