Claude Code for Teams: Permissions, Hooks and What Changed This Week

By Kallistesoft · · 3 min read

Illustration: a terminal window and a shield
Illustration: a terminal window and a shield

Information checked on December 4, 2026 in the changelog and documentation of Claude Code. A coding agent that reads your code and runs commands is useful as long as you know what it is allowed to do. Four versions released between November 30 and December 3 touch exactly that.

What changed (versions 2.1.333 to 2.1.336)

Several of these changes target organizations using the Enterprise console. For a small team, the essentials fit in a versioned file. Still, the direction is clear: each release tightens approvals and gives administrators more control, so settings that were fine a month ago deserve a second look after an update.

Permission rules and hooks apply before a command runsRulesdeny, ask, allowPreToolUse hookscript: exit 2 = blockExecutionor refusalThe most restrictive answer wins: deny, defer, ask, allow
Permission rules and hooks apply before a command runs

Shared rules in the repository

The permissions documentation says you can check settings into version control for the whole team. An example from the documentation:

{
  "permissions": {
    "allow": ["Bash(npm run *)", "Bash(git commit *)"],
    "deny": ["Bash(git push *)"]
  }
}

Three rules to remember: a deny always beats a more specific allow; an ask rule does too; and a bare tool name such as Bash in deny removes the tool entirely.

Hooks for what rules cannot express

According to the hooks guide, a PreToolUse hook runs before a tool call and can block it: a script that exits with code 2 denies the action and sends its error message back to Claude. The guide's example is a script that denies commands containing rm -rf. When several hooks answer, the most restrictive answer applies.

A team checklist

  1. Commit .claude/settings.json with narrow allow rules (Bash(git log *), not Bash(git *)).
  2. Deny git push and any command that touches production.
  3. Never keep secrets in the repository; deny reading them with a Read rule.
  4. Review "Yes, and don't ask again" approvals: they are saved to .claude/settings.local.json.
  5. Read the changelog on each update: defaults move fast.

Pitfalls

Sources

Related reading