Repository navigation
fix(settings): let role sessions read installed plugin and skill files - #16
Open
matthewtsmith wants to merge 1 commit into
Open
matthewtsmith wants to merge 1 commit into
matthewtsmith wants to merge 1 commit into
Conversation
The base deny list carried Read(~/.claude/**). Installed plugins and skills live under ~/.claude/plugins/cache, ~/.claude/plugins/marketplaces and ~/.claude/skills, and a skill a session loads tells it to read its own references/*.md. Every such Read, and every head/cat of the same path, was denied, so a role session could load a plugin skill but not follow it. Replace the blanket rule with denies for what must stay unreadable: the top-level json/jsonl/sh files and dotfiles (credentials, settings, history), transcripts, sessions, session env, shell snapshots, file history, paste cache, debug, jobs, backups, daemon, downloads, todos, state, telemetry, feedback, cache, and plugins' json, data, store and synced. Read(~/.claude/*) is not an option: it matches the plugins directory itself, and a denied directory denies its contents. Verified with claude -p under these settings: a plugin reference and a skill file read OK; keybindings.json, .credentials.json, a shell snapshot and plugins/installed_plugins.json are denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JrFSqoqP4wWM257QRuPs6z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The base deny list carried
Read(~/.claude/**). Installed plugins and skills live under~/.claude/plugins/cache,~/.claude/plugins/marketplacesand~/.claude/skills, and a skill a session loads tells it to read its ownreferences/*.md. Every such Read, and everyhead/catof the same path, was denied, so a role session could load a plugin skill but not follow it. This blocks running AppTree connector repos (the/connectorplugin) under the foreman.*.json,*.jsonl,*.shand dotfiles (credentials, settings, history), andprojects,sessions,session-env,shell-snapshots,file-history,paste-cache,debug,jobs,backups,daemon,downloads,todos,state,telemetry,feedback,cache, plusplugins/*.json,plugins/data,plugins/store,plugins/synced.Read(~/.claude/*)is not an alternative: it matches thepluginsdirectory itself, and a denied directory denies its contents (checked withclaude -p).Edit/Writeof~/.claude/**stay denied.Trade-off: a new top-level directory Claude Code adds under
~/.claudelater is readable until it is added here. The settings tests already document that the deny list is not a sandbox.Test plan
pnpm lint && pnpm typecheck && pnpm test(800 passed)claude -p --permission-mode dontAsk --setting-sources user,project --settings <these denies>: plugin reference OK, skill file OK;keybindings.json,.credentials.json, a shell snapshot andplugins/installed_plugins.jsonDENIEDSide finding, not changed here: Claude Code warns that
Write(~/.claude/**)andWrite(~/.foreman/**)"are not matched by file permission checks — only Edit(path) rules are". The matchingEditrules are present, so nothing is open, but theWriterules are dead weight.🤖 Generated with Claude Code
https://claude.ai/code/session_01JrFSqoqP4wWM257QRuPs6z