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 <noreply@anthropic.com>
This commit is contained in:
Dave
2026-02-20 11:30:28 +00:00
parent b2d0267f23
commit 8724ec1cbc
2 changed files with 59 additions and 0 deletions

56
.claude/settings.json Normal file
View File

@@ -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"
]
}

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
# Claude Code
.claude/settings.local.json
# App specific
store.json
.story_kit_port