Anthropic Claude Agent SDK — permission modes / interception and delegated-authority boundaries

用語・参照用語・参照実挙動未確認実挙動未観測鮮度未確認鮮度を確定できない
提供元・モデル・プラン・利用環境
Anthropic · Python and TypeScript runtime · permissions
記事ID
GX-0002

要点

Claude Agent SDK exposes permission modes, permission callbacks, and tool hooks. The effective authorization boundary is the combination of the selected permission mode, deny/ask rules, hooks, inherited settings, tool availability, and the execution environment. An allow-list or callback alone is not sufficient evidence of least privilege.

現在の判断

Permission configuration reduces reachable effects but does not make model behavior a security control.

どこまで当てはまるか

This article covers permission and interception boundaries in Anthropic Claude Agent SDK. It does not treat Managed Agents permission policies as the same control plane.

詳しく理解する

セキュリティとプライバシー

Current canonical evidence records that bypassPermissions auto-approves tool use and that allowed_tools does not constrain that mode. Deny/ask rules and hooks remain separate intervention surfaces. Therefore operators should read back the effective runtime configuration instead of inferring authority from one option.

Interception and observability

can_use_tool is not a complete per-tool observation surface: it is reached on permission decisions that require asking. PreToolUse and PostToolUse hooks provide broader interception/observation surfaces, but their presence does not by itself prove that every external side effect is prevented, observed, or exactly-once. Exact SDK/CLI tuple and hook configuration remain material.

Delegated execution

Subagents inherit bypassPermissions, acceptEdits, or auto from the parent and cannot independently override those modes under the documented boundary captured in the canonical source. Delegated execution must therefore be evaluated as part of the parent agent's effective authority, not as an isolated prompt-level policy.

仕組みと設計 2

Anthropic's current Managed Agents documentation uses per-tool permission_policy values always_allow, always_ask, and auto. auto is not a human checkpoint: calls evaluated as safe can execute before client review. Managed Agents migration documentation maps Agent SDK permission_mode / can_use_tool to this newer server-side policy surface, but the two runtimes must not be conflated.

よくある失敗・反証

  • Least privilege still depends on the smallest required tool set, external credential scope, network/filesystem boundaries, and explicit approval for irreversible external actions. Custom tools and external MCP servers retain their own enforcement responsibilities.

まだ確認できていないこと

    • Universal exactly-once tool execution is not established.
    • Universal session durability is not established.
    • Organization-specific managed policy and sandbox configuration are outside this source identity.
    • Cross-language SDK semantic parity is not assumed without version-specific verification.

根拠資料

この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。

このページから探す

種類

主題

やりたいこと

読み終えたら、次の判断へ

この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。

最初の知見から実務判断まで、3つの読み方を見る