Claude認定 対策ノート

講座 › 分野7 開発者の生産性と運用支援

7.2 Agent SDKとClaude Codeの構成

配点 3.0%Agent SDK and Claude Code Configuration

チームの作業を、安全と自動化の枠の中で動かすために、許可の出し方、実行前後に挟む処理、専門担当の定義、人が見ない環境での運用を、順に整える。

未読

許可のモードの使い分け

図解:許可のモードの使い分け

モードは、確認なしで動く範囲の基準です。defaultは、読み取りが中心で、慎重な作業向きです。acceptEditsは、ファイルの編集まで許し、レビュー中のコードの改良に向きます。planは、変更せず調べる時のモードです。autoは、背景の安全確認つきで、ほぼ何でも動き、長い作業向きです。dontAskは、確認が要るものを拒否し、固定のCIや自動処理向きです。bypassPermissionsは、すべてを許すので、隔離したコンテナや仮想マシンに限ります。

出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Configuring the Claude Agent SDK or Claude Code (permission modes such as default, acceptEdits, plan, auto, dontAsk, and bypassPermissions; hooks; subagent definitions; headless or CI operation) to support a team workflow within stated safety and automation guardrails.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Permission modes
| `acceptEdits` | Reads, file edits, and common filesystem commands (`mkdir`, `touch`, `mv`, `cp`, etc.) | Iterating on code you're reviewing |
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)
出典:Permission modes
| `plan` | Reads, plus classifier-approved commands when auto mode is available | Exploring a codebase before changing it |
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)
出典:Permission modes
| `auto` | Everything, with background safety checks | Long tasks, reducing prompt fatigue |
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)
出典:Permission modes
| `dontAsk` | File reads inside your working directories and pre-approved tools; anything that would prompt is denied, though a mod you installed can still approve some of those calls | Locked-down CI and scripts |
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)
出典:Permission modes
| `bypassPermissions` | Everything | Isolated containers and VMs only |
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)

モードの上に、規則を重ねる

図解:モードの上に、規則を重ねる

モードは基準で、その上に、許可や拒否の規則を重ねます。拒否の規則は、bypassPermissionsを含めて、どのモードでも効きます。確認を求める規則に当たる呼び出しは、bypassPermissionsでも、確認のコールバックに回ります。フックは、ツールの実行の直前と直後で、決まった処理を挟みます。

出典:Permission modes
Deny rules block in every mode, including `bypassPermissions`.
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-23)
出典:Configure permissions (SDK)
If an ask rule matches, the call falls through to your
https://code.claude.com/docs/en/agent-sdk/permissions.md(取得 2026-11-23)
出典:Agent SDK hooks
a tool is about to be called (`PreToolUse`), a tool returned a result (`PostToolUse`)
https://code.claude.com/docs/en/agent-sdk/hooks.md(取得 2026-11-23)

ヘッドレスとサブエージェント

図解:ヘッドレスとサブエージェント

人が画面を見ない運用では、プロンプトを指定して非対話で走らせ、使えるツールを明示します。サブエージェントは、作業ごとに専門の指示を持たせ、文脈を分けて並列に動かせます。

出典:Run Claude Code programmatically
To run Claude Code in non-interactive mode, pass `-p` with your prompt and the
https://code.claude.com/docs/en/headless.md(取得 2026-11-23)
出典:Run Claude Code programmatically
claude -p "Find and fix the bug in auth.py" --allowedTools "Read,Edit,Bash"
https://code.claude.com/docs/en/headless.md(取得 2026-11-23)
出典:Create custom subagents
Create and use specialized AI subagents in Claude Code for task-specific workflows
https://code.claude.com/docs/en/sub-agents.md(取得 2026-11-23)
出典:Subagents in the SDK
Use them to isolate context, run multiple analyses in parallel, and apply specialized instructions without adding to the main agent's prompt.
https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-23)
試験のポイント