Skip to content

feat(permissions): deprecate the Cline command-permissions output - #3510

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2405-cline-permissions-deprecation
Oct 17, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2405-cline-permissions-deprecation

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Refs #2405 (the 2026-10-13 re-check item on the Cline permissions output).

No Cline CLI 3 release reads CLINE_COMMAND_PERMISSIONS. Upstream commit cline/cline@6354d209 removed it from the docs ("No CLI 3 release reads CLINE_COMMAND_PERMISSIONS"). The CLI reference now says "The CLI has no allow or deny list for shell commands" and recommends a PreToolUse hook. A code search of cline/cline finds no remaining reference to the variable.

rulesync still wrote .cline/command-permissions.json, told users to export it, and the docs cited a deny-precedence claim that upstream has deleted.

Changes

  • ClinePermissions.fromRulesyncPermissions now logs a deprecation warning on every generation. The warning says current Cline releases do not enforce the file and points users to a preToolUse hook for the cline hooks target.
  • The output itself is still generated, so this change is not breaking. Removing the target is left to a later maintainer decision.
  • docs/reference/file-formats.md: the Cline permissions paragraph now opens with a deprecation note, and the deleted "Cline documents that deny rules always take precedence" citation is gone. The source comments and the allow/deny collision warning no longer cite that upstream doc.
  • Tests: a new unit test checks the deprecation warning, and the existing "no warn" test now asserts only that no translation notice appears.

Still open in #2405

  • Removing the Cline permissions target outright (a breaking change, so it needs a maintainer decision).
  • Switching to, or dual-emitting, .cline/rules and .cline/workflows. This is optional, since .clinerules is still read.
  • Retiring the .clineignore output.
  • Dual-emitting global rules to ~/Cline/Rules.

🤖 Generated with Claude Code

https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv

dyoshikawa and others added 2 commits October 17, 2026 21:46
No Cline CLI 3 release reads CLINE_COMMAND_PERMISSIONS. Upstream removed
it from the docs (cline/cline@6354d209), and the CLI reference now says
the CLI has no allow or deny list for shell commands and points to a
PreToolUse hook instead.

Warn on every generation of .cline/command-permissions.json, point users
to a preToolUse hook for the cline target, and drop the docs citation
claiming Cline documents deny precedence.

Refs #2405

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv
…ine-permissions-deprecation

# Conflicts:
#	src/generated/docs-content.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant