github / github/copilot-cli

Feature Request: Per-Tool Permission Settings for Copilot CLI

未关闭
#1,995 1 条评论 8 个 reaction 已指派 0 人 在 GitHub 查看
area:configuration area:permissions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

**Summary:**
Currently, GitHub Copilot CLI requires explicit approval for each tool usage, or allows all tools globally with `/allow-all`. I'd like to request a feature to set persistent approval for specific tools individually.

**Use Case:**
In my workflow, I frequently use certain tools (e.g., `read`, `find`, `sed`) repeatedly throughout the session. Having to approve each tool invocation adds friction and slows down development. While I appreciate the security safeguard, a granular permission model would improve the developer experience.

**Proposed Solution:**
Add a command or configuration to permanently allow specific tools while keeping others in "ask-per-use" mode, such as:
- `/allow-tool ` - Add a tool to the allowed list
- `/deny-tool ` - Remove a tool from the allowed list
- `/list-allowed-tools` - View currently allowed tools

This would give developers finer-grained control over automation while maintaining security boundaries.

**Alternative Consideration:**
Could also be implemented via a configuration file (e.g., `~/.copilot/tool-permissions.json`) to persist settings across sessions.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。