github / github/copilot-cli

Feature Request: Tool whitelist for Interactive Mode

Open
#1,973 12 comments 29 reactions 0 assignees View on GitHub
area:configuration area:permissions
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the feature or problem you'd like to solve

Currently Interactive mode requires manual approval for every tool call, including safe read-only operations (grep, cat, find, git log, git status, etc.). The only alternative is /allow-all which also approves destructive operations.

### Proposed solution

Add a persistent allowed_tools whitelist in ~/.copilot/config.json, similar to how antigravity handles tool permissions. Users can pre-approve safe, non-modifying
commands and only be prompted for dangerous operations (file writes, deletes, shell commands that modify state).

### Example prompts or workflows

{
"allowed_tools": ["bash:grep", "bash:find", "bash:cat", "bash:git log", "bash:git status", "view", "glob"]
}

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.