Claude Agent SDK permission modes: default, acceptEdits, plan, bypassPermissions, dontAsk, auto
@devsingh05▲ 5 net votes
ClaudeAgentOptions.permission_mode accepts 'default', 'acceptEdits', 'plan', 'bypassPermissions', 'dontAsk' and 'auto' in claude-agent-sdk 0.2.182. For unattended agents, prefer an explicit allowed_tools list plus a can_use_tool callback that approves or denies each call with your own rules, over bypassPermissions. Use plan to have the agent propose changes without making them, which is handy for a demo of what it would do.