Repository navigation
Description
Describe the feature or problem you'd like to solve
The permission UX is too complex for a human to configure confidently. I want one simple, permanent rule:
Always allow reading files in or below three directories in my home directory, across sessions and repositories. Continue asking before writes, execution, or access elsewhere.
Instead, I have to understand multiple configuration files, per-location scoping, separate path and tool permission gates, different matching syntaxes, session-only versus persistent approvals, and differences between terminal CLI and SDK/IDE-hosted sessions. Selecting an approval that sounds permanent does not necessarily cover the next repository or session.
This is not just a request for another setting. It is a complaint about the complexity and discoverability of the permission rules themselves. A security model that users cannot understand or maintain encourages them to select "Allow all" simply to get work done. Repeated low-value confirmations cause approval fatigue rather than meaningful informed consent.
Proposed solution
- Provide a documented, user-level recursive read allow-list, effective across repositories and sessions. No administrator privileges, machine-wide policy, hooks, or shell aliases should be necessary for permissions limited to my own home-directory trees.
- Support read-only grants separately from write/execute grants. Do not require granting broader access just to stop read prompts.
- Define clear approval scopes: once, this session, this repository, and all my sessions. Show the scope and persistence explicitly in the approval UI.
- Avoid duplicating identical grants for every repository. New clones and worktrees should inherit the user's directory-tree rule automatically.
- Use consistent, understandable path matching and configuration validation. Report unsupported keys rather than leaving users guessing whether a rule worked.
- Show why a request still needs confirmation and which configuration controls it, including any separate path/tool gate or host-specific restriction.
- Clearly document and expose which rules and defaults are honored in CLI versus SDK/IDE-hosted sessions. An "always" choice must not hide a narrower scope.
Illustrative desired user rule, not a claim about supported syntax:
Allow Read recursively below:
~/repos
~/tmp/worktrees
~/.config/agents
Ask for writes, execution, and reads elsewhere.
Scope: all my sessions and repositories; persistent.
Example prompts or workflows
- Start in repository A and read shared documentation in another allowed directory without an approval prompt.
- Start a new session in repository B and read the same documentation without repeating the approval.
- Clone a new repository below an allowed directory, or create a linked worktree, and retain the same read permissions without editing configuration.
- Attempt a write, command execution, or read outside the allowed trees and still receive a meaningful approval prompt unless separately authorized.
Additional context
Observed with Copilot CLI 1.0.101 on Linux, 2026-11-20.
As a workaround, identical allowed_directories lists were inserted for 179 locations in permissions-config.json. The resulting file grew to 1,387 lines for what should be three user-level directory rules. Existing tool approvals were preserved. A terminal CLI read from an allowed location succeeded; the same read from a location without the grant was denied. The workaround requires rerunning a script after new clones and does not establish whether SDK/IDE hosts use the same grants.
I know assisted permissions exists. It is useful, but a probabilistic assessment is not a replacement for a simple deterministic read-only directory grant, and the documented defaultPermissionMode default does not apply to all hosting/resume modes. In my experience, Claude Code's auto mode prompts much less often and the prompts are more meaningful. Copilot should offer a usable middle ground between repeated confirmations and "Allow all".
Please simplify both the UX and the underlying permission configuration, rather than requiring customers to become experts in the schema.
Activity