Follow up GitHub Copilot CLI upstream updates: tool permissions (permissions-config.json / trustedFolders)
Summary
GitHub Copilot CLI now persists tool allow/deny decisions and trusted directories in its config dir, but rulesync marks copilotcli permissions as unsupported.
Recent Releases
- Copilot CLI GA (2026-02-25): https://github.blog/changelog/2026-02-25-github-copilot-cli-is-now-generally-available/
- Config dir reference: https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference
- Configure Copilot CLI: https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli
Gaps
- permissions —
unsupported. Copilot CLI persists tool/directory permissions in~/.copilot/:permissions-config.json(saved allow/deny tool decisions),config.json(trustedFoldersarray), andsettings.json(allowedUrls). The--allow-tool/--deny-toolfilter syntax —shell(COMMAND)(e.g.shell(rm),shell(git push)), bareshell,write,MCP_SERVER(tool)/MCP_SERVER— maps cleanly onto rulesync'saction(target)allow/ask/deny model. There is nosrc/features/permissions/copilotcli-permissions.ts, andcopilotcliis absent frompermissionsProcessorToolTargetTuple; the dry-run prints "Target 'copilotcli' does not support the feature 'permissions'. Skipping."
Proposed Follow-up
- Add
src/features/permissions/copilotcli-permissions.tsemitting~/.copilot/permissions-config.json(global) with allow/deny tool filters, mapping canonical permission entries to Copilot CLI'sshell(...)/write/MCP(...)syntax (andallowedUrls/trustedFolderswhere applicable). - Register
copilotcliinpermissionsProcessorToolTargetTuple; update the README support matrix and the e2e Tool×Feature matrix.
References
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference —
permissions-config.json/config.json/settings.json. - https://github.blog/changelog/2026-02-25-github-copilot-cli-is-now-generally-available/ — GA, allow/deny tool + trusted-directory surface.
Re-validated against current GitHub Copilot CLI docs; leaving open as a maintainer decision, because the issue's proposed target file is not a safe/defensible one to generate.
What upstream actually documents (https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference):
permissions-config.json— "stores your saved tool and directory permission decisions, organized by project location." It is auto-managed by the CLI (a project-keyed decision cache) with no published schema. Generating it risks corrupting CLI state, so it is not a safe rulesync output target despite being the file named in this issue.settings.json— the user-editable file, but its only permission-relevant fields areallowedUrls/deniedUrls(URL/webfetch-shaped) andpermissions.disableBypassPermissionsMode. There is no documented hand-editable tool allow/deny field.config.jsontrustedFolders— described as auto-managed state; user-writability is unverified.- Tool allow/deny is only expressible at runtime via
--allow-tool/--deny-toolflags (shell(...),write,MCP_SERVER(tool)), which persist into the auto-managed files, not a user-editable schema. Source: https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli
Gap is real — copilotcli has no permissions adapter. But the only defensible output (settings.json allowedUrls/deniedUrls) covers just the webfetch slice of rulesync's permission model.
Decision needed: ship a webfetch-only settings.json adapter and mark the permissions matrix cell ✅ (arguably misleading, since bash/edit/write permissions can't be expressed), or keep Copilot CLI permissions unsupported until GitHub publishes a hand-editable tool allow/deny schema. The issue's premise (writing permissions-config.json) should not be implemented as written.
Triaged — leaving open. Re-validation against the official docs contradicts this issue's central premise (that permissions-config.json is a safe, cleanly-mappable emit target), so it should NOT be implemented as proposed without a maintainer design decision.
What the official Copilot CLI docs actually say (https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference, https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli):
permissions-config.json"Stores your saved tool and directory permission decisions, organized by project location" and is automatically managed — the reference explicitly warns that "editing the file while a session is running may cause unexpected behavior." Its exact JSON structure is not documented (it is keyed by project location, not a flat allow/deny tool list). Emitting a rulesync-generatedpermissions-config.jsonwould mean writing a guessed schema into auto-managed internal state — a real risk of corrupting the user's Copilot CLI permission decisions.- Tool allow/deny rules have no documented user-editable config file. The docs state the mechanisms are (1) interactive approval and (2) the launch-time flags
--allow-tool/--deny-tool/--allow-all-tools. Those flags are "meant to be used when launching Copilot CLI," not a persisted file rulesync could generate. The flag syntax is confirmed (shell(COMMAND),shell(git push),write,MCP_SERVER(tool)), and it does map conceptually onto rulesync'saction(target)model — but there is no file output surface for it. config.jsontrustedFoldersIS user-editable ("users can modify thetrustedFoldersarray directly"), but it is a list of trusted directories, not the per-toolallow/ask/denymodel the permissions feature expresses.settings.jsonallowedUrls(string[]) is user-editable, but it is a URL allowlist, not tool permissions.
Why this is now inconclusive / needs a design decision:
- The proposed emit target (
permissions-config.json) is unsafe and unverifiable — auto-managed, undocumented schema, docs warn against editing. Generating it could break the user's CLI. - The real tool-permission mechanism is launch-time flags, which rulesync (a config-file generator) cannot emit.
- The only documented user-editable surfaces (
trustedFolders,allowedUrls) do not correspond to rulesync's tool-action permission model.
Decision needed from a maintainer: whether to (a) keep copilotcli permissions unsupported until GitHub documents a stable, user-editable tool-permission file format; (b) reverse-engineer permissions-config.json and accept the risk/maintenance of writing auto-managed internal state (not recommended given the docs' warning); or (c) model only the safe, documented surfaces under a different feature framing — e.g. trustedFolders and allowedUrls — which are not the tool allow/ask/deny model. Leaving open and labeled for that decision rather than emitting a guessed permissions-config.json that could corrupt user state.
Disposition (2026-06-24): keeping this open as a tracker per maintainer decision. Re-validation against the official Copilot CLI docs confirms the proposed target (permissions-config.json) is auto-managed CLI state with no published schema (the docs warn against editing it while a session runs), so generating it risks corrupting the user's permission decisions. The real tool-permission mechanism is launch-time flags (--allow-tool/--deny-tool) which rulesync cannot emit, and the only user-editable surfaces (trustedFolders, allowedUrls) do not correspond to the per-tool allow/ask/deny model. No safe, defensible output target exists today. Tracking here until GitHub publishes a hand-editable tool allow/deny schema.
Upstream update (re-check on 2026-07-10)
Newly found releases / changes
- v1.0.70 (2026-07-09) — Copilot CLI expanded its repo/project-scoped settings at
.github/copilot/settings.json: trusted-reposettings.jsoncan now pin model/effort/context tier and carries URL / MCP / skill deny-lists. Source: github/copilot-cli changelog.
This issue currently documents only the global ~/.copilot/ surfaces (permissions-config.json, config.json trustedFolders, settings.json allowedUrls). The .github/copilot/settings.json file is repo-scoped and committable, and its deny-lists belong to the same permissions dimension.
Additional or changed gaps
- No new separate gap — this stays within the
permissions=unsupportedgap this issue already tracks. It does, however, add a project-scope angle to the proposed follow-up: alongside the planned global~/.copilot/permissions-config.json, rulesync could also target the committable.github/copilot/settings.jsondeny-lists (URL/MCP/skill). Worth deciding project vs global scope when implementingcopilotcli-permissions.ts. - Everything else reviewed for v1.0.60→v1.0.70 (2026-06-05 → 2026-07-09) was runtime/exec behavior (hook exit-code-2 deny,
modifiedArgs/updatedInput, nested-subagent tool filters, draft-skill generation) — not new config-file schema rulesync must emit.commandsremains upstream-unimplemented (open FRs #618), so rulesync'sunsupportedthere is still correct.
References
- https://github.com/github/copilot-cli/blob/main/changelog.md — v1.0.70 (2026-07-09) trusted-repo
.github/copilot/settings.jsonwith URL/MCP/skill deny-lists; the v1.0.60→v1.0.70 window used to confirm the rest are runtime-only. - https://github.com/github/copilot-cli/issues/618 — open feature request confirming custom slash commands are not yet an upstream config surface.
Re-checked in a batch autonomous pass (2026-07-16). v1.0.71 (2026-07-16) ships sandbox-policy enforcement and plan-mode hard blocks only — no new user-editable tool allow/deny configuration file or schema, and no changes to permissions-config.json documentation. The recorded disposition still holds: no safe, defensible emit target exists for the per-tool allow/ask/deny model (the file is auto-managed state; the real mechanism is launch-time flags rulesync cannot emit). Keeping this open as the tracker until GitHub publishes a hand-editable schema; the repo-scoped .github/copilot/settings.json deny-lists (URL/MCP/skill, v1.0.70) remain the candidate partial surface if a partial-coverage adapter is ever deemed acceptable.
Re-checked against the official Copilot CLI documentation on 2026-07-22. One premise in the earlier disposition has changed: GitHub now publishes the full permissions-config.json schema and explicitly says to use that filename for new edits.
That still does not provide a safe, complete Rulesync permissions target:
- The file stores saved approvals only, keyed by the exact absolute repository/directory path. It cannot express deny rules, ask rules, default modes, URL rules, tool filtering, or a repository-local shared policy.
- The CLI owns and mutates this per-user state; it removes stale location entries,
/reset-allowed-toolsclears approvals, and later writes may remove unknown fields. Editing during a running session is explicitly warned against. --allow-tool,--deny-tool,--available-tools, and--excluded-toolsremain session-only command-line controls, so Rulesync cannot emit them as configuration.settings.jsonURL approvals and the repository-scoped.github/copilot/settings.jsondeny lists remain partial, separate surfaces rather than a mapping of Rulesync's allow/ask/deny model.
Sources:
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference
- https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools
Classification remains Inconclusive / no code change. Keeping this issue open for a maintainer decision on whether an approval-only, user-local adapter or a partial repo-settings adapter is desirable; otherwise the safe threshold is still a stable declarative policy surface that covers the permissions model without overwriting mutable personal approvals.
Upstream update (re-check on 2026-07-23)
Newly found releases / changes
- The latest stable release is Copilot CLI v1.0.73, published 2026-07-21.
- v1.0.11 (2026-03-23) added hierarchical discovery for instructions, MCP, agents, and skills.
- v1.0.70 (2026-07-09) added repository
disabledMcpServers/disabledSkills. - The current hook docs added
userPromptTransformedon 2026-07-17.
One correction to an earlier comment: Copilot CLI does have a native project command surface. v0.0.399 (2026-01-29) added .claude/commands/*.md; this is separate from the feature request previously cited.
Additional or changed gaps
- Commands: Rulesync still marks
copilotclicommands unsupported, so the native project.claude/commands/*.mdsurface is not generated or imported. - Hierarchical discovery: Rulesync imports only one root for rules, MCP, agents, and skills, losing nested/ancestor resources and their precedence in monorepos.
- MCP/skills settings:
disabledMcpServers,disabledSkills, and built-in GitHub MCP toolset settings are not owned or round-tripped. - Skills:
user-invocableanddisable-model-invocationare dropped, and documented name/description constraints are not validated. - Hooks:
userPromptTransformed, four documented matcher surfaces, portablecommand, and thetimeoutalias are missing or lossy.
The permissions conclusion in the latest comment remains accurate: published permissions-config.json is approval-only mutable personal state, while the declarative URL/repository settings are partial surfaces.
References
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference — current config paths and settings.
- https://docs.github.com/en/copilot/reference/hooks-reference — current event/matcher/handler contract.
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference — native command files and fields.
- https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools — current permissions behavior.
Re-checked against the current official GitHub Copilot CLI documentation and the latest stable release, v1.0.74 (2026-07-23). No safe declarative tool-permission output surface exists for Rulesync today.
The now-documented permissions-config.json schema is an automatically managed, absolute-location-keyed cache of saved approvals. It supports approvals only and explicitly cannot represent deny rules, ask rules, default modes, URL rules, tool filtering, or repository-local shared policy. The CLI may rewrite the file, removes stale location entries, and clears entries through /reset-allowed-tools. The actual allow/deny controls (--allow-tool, --deny-tool, --available-tools, and --excluded-tools) remain session-only command-line options. settings.json URL approvals and repository-scoped URL/MCP/skill deny lists are separate partial surfaces, not a faithful mapping of Rulesync permissions. v1.0.74 adds no new permission policy schema.
Implementing the proposed adapter would therefore either overwrite mutable personal state or mark a materially incomplete adapter as permissions support. Closing as not planned rather than emitting unsafe or misleading configuration. This can be reopened if GitHub publishes a stable, user-editable declarative policy surface that represents tool allow/ask/deny semantics.
Sources:
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference
- https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools
- https://github.com/github/copilot-cli/releases/tag/v1.0.74