What
New slash command to display and change the tool permission mode directly from the REPL.
Usage
/mode # Shows current permission mode
/mode ask # Switch to ask mode
/mode auto # Switch to auto-approve modeDetails
- Lists available modes (excluding
bypassPermissions, which must be toggled via shift+tab) - Provides clear error messages for unknown modes:
Unknown mode "xyz". Usage: /mode <mode> - Also works non-interactively for SDK and automation use
- Attempting to set
bypassPermissionsreturns: "bypassPermissions is not available via /mode. Use the local TUI (shift+tab) instead."
Evidence
Mode command definition (search for "Set the permission mode") — Mx1 at line ~544016
Strings lifted out of the shipped bundle, so the claim above can be checked against them.