Skip to content

chore(agents): allow make, kubectl, ansible and safe git commands #5133

Closed

Description

@dan-petty

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

  1. added
    source/agent
    type/chore
    scope/agents
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 12, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/agentssource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions