Skip to content

Add Claude Code 'auto' permission mode as a 4th runtime mode #135

Open

Description

@Ecko95

Ported from upstream PR pingdotgg#3628 (+80/−9 there — small, clean; reimplement natively, do not cherry-pick).

What

Expose the Claude Agent SDK's native permissionMode: "auto" as a fourth runtime permission mode alongside the existing ones, without setting allowDangerouslySkipPermissions.

Why for us

Gives a middle ground between plan/ask modes and full yolo. Directly useful for the autonomous-toggle work (confined-yolo): auto lets the SDK auto-approve safe tool calls while still gating dangerous ones, which is a better default rung than skip-permissions.

Scope

  • Provider adapter: map the new mode to the SDK option (Claude engine only; other engines unaffected).
  • UI: add the mode to the permission-mode picker.
  • Confirm interaction with our command authorization / deny-by-default layer (actor identity stamping) — server-side authz still applies regardless of SDK mode.

Acceptance

Selecting "auto" on a Claude thread runs with SDK-native auto permission behavior; other modes unchanged.

Activity

  1. added a commit that references this issue on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions