Skip to content

Latest commit

 

History

History
98 lines (77 loc) · 6.67 KB

permission-modes.md

File metadata and controls

98 lines (77 loc) · 6.67 KB

Permission modes

Permission modes control when an agent needs your approval to act. Choose a mode in the message composer; it applies to that thread. A new thread names its mode under the composer. In a thread on your default mode, open the model picker and choose a mode there, or press mod+shift+a. A thread on another mode shows the mode next to the model.

Set the default for new threads in Settings → Threads → New threads → Permissions. Projects can override the environment default. New threads use this setting rather than the mode of the thread you were viewing. The initial default is Full access; existing threads and modes you choose in a draft keep their permissions.

Mode Behavior
Supervised Requests approval for commands and file changes.
Auto-accept edits Approves file edits automatically; other actions can still require approval.
Auto Uses the provider's automatic review to approve routine actions and ask about others.
Full access Allows commands and edits without approval prompts.

An administrator can cap the modes available on a machine with a managed policy; modes above the cap show who manages them.

When an agent below Full access opens a pull request with Onicode's own pull request tool and the push would run one of the repository's Git hooks (pre-push or reference-transaction, as a project with husky has), Onicode asks you first. The request names the branch and the hooks: the hook files, and any hook set up in Git's configuration (hook.<name>.command, which Git 2.54 and later run). Approve pushes and runs them; Decline pushes nothing. You are asked each time: there is no "always allow" for this request, and Plan mode asks too. An approval covers the contents of the files and the commands it names: if one of them changes, you are asked again. A change made in the moment between Onicode's last look and Git starting the hook is not caught. With husky 9 and Vite+ that is the hook's script, such as .husky/pre-push, along with the two files they generate to start it. It does not cover what those go on to run or read, such as a package script or another file a hook sources (.husky/_/husky.sh with husky 8), so a change there is not asked about. A push that would run no hook is not asked about. An agent whose provider cannot show the request pushes without running the hooks and is told so. With Claude and Codex the push waits for your answer in Onicode itself; with any other client that asks you by itself, Onicode goes by the answer that client sends.

This request is for that tool only. An agent that runs git push or a command such as gh pr create itself, in its own shell, goes through its provider's approval for commands as the table above describes, and the repository's hooks run with that command.

Approve or reject requests in the conversation to let the agent continue. Permission modes do not prevent the agent from asking questions about the task. Subagent approval requests appear in the parent conversation with the subagent's name, so you can respond without switching threads.

Provider differences

Providers enforce permissions differently. Some read-only actions can proceed in Supervised. Auto uses automatic review on Codex, Claude, Cursor, Grok, Antigravity, and fx; providers without an equivalent, including OpenCode, fall back to asking. On Grok and Antigravity, actions their review does not approve come to you for approval. On fx, prompts it still sends also come to you.

Antigravity offers Auto only when your Antigravity sign-in provides its Auto mode; some accounts, including some personal Google accounts, do not. Without it, an Antigravity thread already set to Auto runs in Supervised.

Muse Code offers only Supervised and Full access. A Muse thread already set to another mode runs in Supervised.

Onicode offers no Auto-accept edits for fx, and Full access only with fx 0.0.14 or later. An fx thread set to a mode its fx lacks runs in Supervised.

Grok offers no Auto-accept edits. A Grok thread already set to it runs in Supervised. Grok file-change approvals offer Allow all edits this session. Its command approvals have no session-wide choice, because Grok would remember that command for the whole project.

ACP Registry agents run their own tools in their own mode; Onicode answers their approval requests by the permission mode. See ACP Registry permissions.

In Full access, commands that Codex's dangerous-command check would ask about run without asking. Codex still asks before network access its managed network settings don't allow, unless you already allowed commands for the session.

In Auto, Claude asks you about the actions its review leaves open. Where Claude's settings turn its Auto mode off, the permissions menu shows Auto as unavailable for that project, with whose settings do it. A Claude thread that is set to Auto anyway, or whose model has no Auto mode, asks like Supervised and says so once in the thread.

Claude can still ask in Full access when its settings disable bypass permissions or require approval for an action, and in Auto when its settings require approval or its review cannot decide. Dangerous-removal safety checks in bypass mode reject the command with the original warning, including a command Claude Code cannot read the way the shell will. Claude can use a safe rewrite when the warning supplies one or rewrite the command in plain shell syntax; otherwise it continues without the command and tells you what it skipped. While a Claude approval is pending, type a text reply to decline that request and give feedback directly to the agent that asked, including a subagent. Other pending requests stay unanswered.

Antigravity can still send native approval requests in Full access. It only offers remembered approvals for actions that support them.

Kiro offers only Supervised and Full access. In Supervised Kiro also asks you to review a turn's file changes. See Kiro permissions.

Command Code offers no Auto. A Command Code thread already set to it runs in Supervised. See Command Code permissions.

See the provider guides for setup and provider-specific limits.