From 8724ec1cbcf22e6c8b9327371a6fa7cdabc31f4d Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 20 Feb 2026 11:30:28 +0000 Subject: [PATCH] Move Claude Code permissions to committed settings for worktree sharing Agents running in git worktrees weren't inheriting permissions from settings.local.json since it's path-specific. Moving the allowlist to the committed settings.json ensures all worktrees get pre-approved permissions automatically. Co-Authored-By: Claude Opus 4.6 --- .claude/settings.json | 56 +++++++++++++++++++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 59 insertions(+) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..0f678c5 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,56 @@ +{ + "permissions": { + "allow": [ + "Bash(cargo build:*)", + "Bash(cargo check:*)", + "Bash(cargo clippy:*)", + "Bash(cargo llvm-cov:*)", + "Bash(cargo nextest run:*)", + "Bash(cargo test:*)", + "Bash(cargo watch:*)", + "Bash(claude:*)", + "Bash(curl:*)", + "Bash(git -C:*)", + "Bash(git add:*)", + "Bash(git branch:*)", + "Bash(git checkout:*)", + "Bash(git commit:*)", + "Bash(git merge:*)", + "Bash(git mv:*)", + "Bash(git push:*)", + "Bash(git rm:*)", + "Bash(git stash:*)", + "Bash(git stash pop:*)", + "Bash(git stash push:*)", + "Bash(git status:*)", + "Bash(git worktree *)", + "Bash(ls:*)", + "Bash(lsof:*)", + "Bash(npm run build:*)", + "Bash(npx @biomejs/biome check:*)", + "Bash(npx @playwright/test test:*)", + "Bash(npx biome check:*)", + "Bash(npx playwright test:*)", + "Bash(npx tsc:*)", + "Bash(npx vitest:*)", + "Bash(pnpm add:*)", + "Bash(pnpm build:*)", + "Bash(pnpm install:*)", + "Bash(pnpm run build:*)", + "Bash(pnpm run test:coverage:*)", + "Bash(pnpm test:*)", + "Bash(printf:*)", + "Bash(python3:*)", + "WebFetch(domain:crates.io)", + "WebFetch(domain:docs.rs)", + "WebFetch(domain:github.com)", + "WebFetch(domain:portkey.ai)", + "WebFetch(domain:www.shuttle.dev)", + "WebSearch", + "mcp__story-kit__*" + ] + }, + "enabledMcpjsonServers": [ + "story-kit" + ] +} diff --git a/.gitignore b/.gitignore index 8cd4502..e783dd6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Claude Code +.claude/settings.local.json + # App specific store.json .story_kit_port