🧩permissionMode Option
Also known as permissionMode, permission_mode, Agent SDK permission mode, Claude Agent SDK permissionMode
The option that sets the mode for what needs a yes.
Think of it like
It is like how much a new helper may do on their own.
Example
Leo's agent runs in a test box in CI that is thrown away after. He uses bypass mode there, and default mode on his laptop.
Why it matters
The same agent needs a tight leash on a laptop and a loose one in a sandbox.
Definition
Common mistake
Key takeaways
- 1Picks the mode. Six choices.
- 2default needs a callback. Or it denies.
- 3Change it mid-session. setPermissionMode.