CapabilityWire
// event · cli

Claude Code v2.1.304 adds person-only tool approvals, auto-mode setup, and managed-agents security audit

cli
vendor: Anthropicpublished: 2h agoconfidence: 0.90id: f2cde56f-bc7e-4d41-82c5-7dcea47d2526

Claude Code 2.1.304 ships several agent-authoring features: plugin `tool.check` hooks can now return `decider: "person"` to force human approval, and receive `e.isReadOnly` for read-only tool calls. A new `/auto-mode-setup` command teaches auto mode about your project (now also on Bedrock, Vertex, Foundry and Claude apps gateway), and `/claude-api managed-agents-secure` audits Managed Agent configs against Anthropic's security guide. Plus many fixes to subagents, hooks, headl

capability delta

An agent author can now force human-only approval on tool calls via `decider: "person"`, detect read-only calls in hooks, bootstrap auto mode with `/auto-mode-setup`, and audit Managed Agents against Anthropic's security guide with `/claude-api managed-agents-secure`.

curator note

Point release but introduces several net-new plugin-API surface (decider: person, isReadOnly) and new slash commands (/auto-mode-setup, /claude-api managed-agents-secure) that agent authors can leverage.

// install
npm i -g @anthropic-ai/claude-code@2.1.304
npm · @anthropic-ai/claude-code @ 2.1.304
// example
javascript
// In a Claude Code plugin, force human approval for a tool call
export const hooks = {
  async 'tool.check'(e) {
    if (e.tool === 'Bash' && !e.isReadOnly) {
      return {
        decider: 'person',
        reason: 'Shell writes must be approved by a human reviewer.'
      };
    }
  }
};
// links
claude-codeanthropicclipluginshooksmanaged-agentsauto-mode
source: github_release · https://github.com/anthropics/claude-code/releases/tag/v2.1.304