From 26bd44cad6ddee78de59d630e00b3e2adc0590c0 Mon Sep 17 00:00:00 2001 From: RobertLD Date: Sat, 21 Mar 2026 20:50:24 -0400 Subject: [PATCH] chore(claude): allow gh pr/issue/run/api commands for subagents Worktree agents only see .claude/settings.json (committed), not settings.local.json (gitignored). Adding gh commands here lets agents create PRs and query CI without needing manual intervention. Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.json | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..6b51f82 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,53 @@ +{ + "permissions": { + "allow": [ + "Bash(npm run build)", + "Bash(npm run build:*)", + "Bash(npm test)", + "Bash(npm run test:*)", + "Bash(npm run lint)", + "Bash(npm run lint:fix)", + "Bash(npm run typecheck)", + "Bash(npm run format)", + "Bash(npm run format:check)", + "Bash(git status)", + "Bash(git diff*)", + "Bash(git log*)", + "Bash(git add*)", + "Bash(git commit*)", + "Bash(git branch*)", + "Bash(git checkout*)", + "Bash(git stash*)", + "Bash(npx tsc --noEmit*)", + "Bash(npx prettier*)", + "Bash(gh pr*)", + "Bash(gh issue*)", + "Bash(gh run*)", + "Bash(gh api*)" + ] + }, + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-ts.sh" + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash.sh" + } + ] + } + ] + } +}