Supercharge

Permissions

Ask, auto, always-approve, and allow or deny rules

Permissions

By default the agent asks before it runs a shell command or edits a file.

Work mode and permission mode are separate. Shift+Tab changes both, one stop at a time. Details of custom agents are on Custom agents.

Work modeWhat the model does
AgentReads, edits, and runs tools. This is the normal chat.
PlanWrites a plan first. /plan [text] enters it and can start the turn with that text. /view-plan shows the saved plan.
AskRead-only. It answers and does not write files, including a new agent file.
Permission modeWhat happens before a tool runs
AskYou approve each shell command and edit.
Auto-Review (/auto)A classifier approves tools it treats as safe. Dangerous ones can still ask.
Always-Approve (/always-approve, Ctrl+O, --yolo)Tool prompts are skipped. Deny rules and hooks still apply.

Turning on the permission mode you are already in switches back to ask. Turning one permission mode on while another is active switches to the new one. Always-Approve wins over Auto-Review when both would be set. Always-Approve and Auto-Review also return the work mode to Agent.

Modes

HowEffect
DefaultAsk each time.
/always-approve, Ctrl+O, --yolo, --permission-mode bypassPermissionsSkip approval prompts.
/autoAuto-Review. A classifier approves tools it treats as safe. Dangerous ones can still ask.
Shift+TabCycle Agent, Plan, Ask, your custom agents, Always-Approve, then Auto-Review.
/planPlan before coding. /view-plan shows the saved plan.

Always-approve is the mode to use when nobody is at the keyboard (supercharge agent serve, a daemon, CI). Deny rules and hooks still apply.

Rules

--allow and --deny are repeatable and work in the UI and in headless mode. They gate a tool. They do not remove it. --disallowed-tools removes the tool from a headless run.

supercharge --deny 'Bash(rm *)' --allow 'Bash(git *)'
supercharge -p "lint the repo" --deny 'Edit(**)'
PrefixMatches
Bash(...)Shell text. * matches any characters, including spaces. Bash(git:*) is a prefix match. A bare Bash matches every command.
Edit(...), Write(...), Read(...), Grep(...)Paths. * is one level. ** is recursive.
WebFetch(...)URL glob, or domain:host.
MCPTool(...)An MCP tool call.

Project memory of "always allow this command" is on by default ([ui] remember_tool_approvals = true). The first approval prompt's preselected row is [ui] default_selected_permission.

Plan mode and permission prompts are per session unless you pass the flags at launch or save the UI defaults.

Ctrl+I
Assistant

How can I help?

Ask me about configuration, installation, or specific features.