Repository navigation
Description
Problem or Motivation
The committed .claude/settings.json allows only uv run devops, uv run pytest, openspec, tuicr and four git reads. Other standard project commands go to the auto-mode classifier, which can refuse them. On 2026-11-12 the classifier refused make k3s ANSIBLE_ARGS="--limit <node>" in the nested homelab clone under repos/, because no rule covers make. kubectl is allowed only in a personal settings.local.json. The owner asked (2026-11-12): "we should add make and other standard project management commands to the respective repo settings". The homelab cluster is the dev environment of the project, and agents have full access to it. Secrets and hardware stay with the owner.
Proposed Solution & Architectural Design
Add these allow rules to .claude/settings.json and to its template src/devops_cli/templates/claude_settings.json.j2 (a test keeps the two equal):
Bash(make *)Bash(kubectl *)Bash(ansible *),Bash(ansible-playbook *),Bash(ansible-inventory *),Bash(ansible-lint *)Bash(uv sync*),Bash(uv lock*)Bash(git fetch*),Bash(git show*),Bash(git rev-parse*),Bash(git merge-base*),Bash(git worktree *),Bash(git add *),Bash(git commit *),Bash(git rebase *)
Do not allow git push, git reset, git checkout, git switch or git stash: AGENTS.md limits them, so the classifier keeps a judgment on them. Keep the deny list. A deny rule wins over an allow rule, so --no-verify and bare gh stay refused. Update CONTRIBUTING.md, which describes the settings, and say that Bash(uv run devops *) already covers the planned devops infra commands.
The homelab repository gets its own committed .claude/settings.json in a separate pull request in that repository.
Target Subsystem
Agent configuration (.claude/settings.json, devops devcontainer init template).
Existing Tool Considered
Claude Code permission rules (https://code.claude.com/docs/en/permissions). The change adds configuration only and builds no code.
Activity
dan-petty commentedon Nov 12, 2026
Both edit .claude/settings.json and the template claude_settings.json.j2, but #4478 fixes a spec/template mismatch while the candidate adds new allow rules.