Skip to content

Conversation

@ShubyM
Copy link
Collaborator

@ShubyM ShubyM commented Sep 16, 2025

Introduces --approval-policy flag as described in #539. Paranoid mode also eliminates the choice of saying yes and don't ask me again

What other people do:

Gemini CLI has very similar options of:

  • default: Prompt for approval on each tool call (default behavior)
  • auto_edit: Automatically approve edit tools (replace, write_file) while prompting for others
  • yolo: Automatically approve all tool calls (equivalent to --yolo)

Claude Code has these 4:

  • default: Standard behavior - prompts for permission on first use of each tool
  • acceptEdits: Automatically accepts file edit permissions for the session
  • plan: Plan Mode - Claude can analyze but not modify files or execute commands
  • bypassPermissions: Skips all permission prompts (requires safe environment - see warning below)

@ShubyM ShubyM marked this pull request as ready for review September 17, 2025 17:57
# Tool and permission settings
toolConfigPaths: ["~/.config/kubectl-ai/tools.yaml"] # Custom tools configuration paths
skipPermissions: false # Skip confirmation for resource-modifying commands
approvalPolicy: auto-approve-read # Approval policy: auto-approve-read, paranoid, or yolo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to think a bit more on names of these, otherwise the PR is looking good.

Will come back to it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants