Skip to content

Permission modes

Every agent can run shell commands and edit files in its session’s folder. The permission mode decides what it asks you about first. When it asks, the question shows in the transcript with exactly what will run: “Run this command?” with the command in a code font, “Allow these changes?” with the files it changes, with Codex “Allow this MCP server’s tool to run?” with the server and its tool, or “Allow” and the tool’s name in words for any other tool, as Allow Web Fetch?, an MCP server’s tool with Claude Code and Gemini CLI as MCP, its server and the tool, as Allow MCP · Moontors · List Sessions?. Where a hook made the agent ask, as one of yours can with Claude Code and Grok Build, the question says under it which hook asked, by its event and, for a plugin’s or a skill’s, that plugin’s or skill’s name, or with Grok Build the hook’s own, and the reason the hook gave, such as PreToolUse hook asks · formatter: …. Where a plugin’s own call asks, as a Claude Code mod’s can, it says that the plugin asked, by its name, over the rest. You answer Allow or Deny. A Deny stops the turn. Once answered, the question shows Allowed or Denied.

With Codex, the reason Codex gives for asking shows under the question, as its own terminal shows it, such as a retry outside the sandbox or why the agent wants more access. A command your organization’s managed rules say needs a person’s approval asks you every time, in Manual, Plan and Auto alike, as Codex’s own review never decides it, with the rule’s reason under the question, such as `npm publish` requires human approval: releases need a person. In Bypass, Codex refuses it instead. Where your organization’s managed network rules don’t allow a host a command reaches for, Codex asks Allow Network Access? with the host’s address, such as https://example.com, and Allow for this session lets that host through for the rest of the conversation. If the request that asked ends before you answer, Codex stops waiting, and the question shows No longer needed, with nothing left to answer. Codex’s own network proxy from your config doesn’t ask in Moontors: where it runs, a host it doesn’t allow is refused, with nothing asked. An MCP server’s tool asks with what its server says of it, as tags under the question: Read-only, Destructive, in amber, Repeatable and External, each only where the server says so, and on your computer the ⓘ beside them says what each means. Neither Moontors nor the agent checks what a server says.

ModeWhat happens
ManualThe agent asks before each edit and command.
Edit automaticallyFile edits go through; commands still ask.
PlanThe agent explores and plans, and edits nothing.
AutoSafe steps go through; anything risky is checked before it runs.
BypassNothing asks; the agent edits and runs commands on its own.

Moontors offers each of these five wherever an agent has it. Some agents have other modes of their own that Moontors doesn’t offer: Claude Code’s Don’t ask mode, its proactivity levels and its restricted and safe modes; Codex’s Ask for approval and Read Only, its permission profiles and its granular approvals; OpenCode’s own agents besides Build and Plan; and a sandbox level of the agent’s own, picked for a session.

A new session starts in the mode Create session picks, Manual unless you or a preset pick another (see Sessions and the board). A fork, /branch or /subtask starts in the mode of the session it came from.

ManualEdit automaticallyPlanAutoBypassSwitching
Claude Codeyesyesyesyesyesany time, even mid-turn
Codexyesnoyesyesyesbetween turns
Gemini CLIyesyesyesnoyesany time, even mid-turn
Grok Buildyesyesyesyesyesat launch, between turns
OpenCodeyesyesyesnoyesat launch, between turns

Codex has no Edit automatically, because none of its settings lets edits through while still asking for every command. In Bypass, Claude Code still asks about a few calls it holds too risky to run unasked, such as some file moves and commands that reach its own sign-in files. Gemini CLI has no Auto. Grok Build has every mode, though its session offers none of its own: Bypass is its own --always-approve, Auto its own Auto mode, Plan its own plan mode, and Edit automatically is Moontors answering for you, allowing each edit Grok Build asks about in the session’s folder or one added to it, an edit outside them still asking, so a switch between them starts its agent again, going on with the conversation. In Plan, Grok Build edits nothing but its plan, which it keeps in its own folder, and its commands still ask, as in Manual. With Codex, Manual still runs the commands Codex knows only read, such as ls and cat, without asking, with Gemini CLI the commands it knows only read, in the session’s folder, and with Grok Build its read-only tools and commands, and a bare mkdir or touch (see Known limits). OpenCode’s session offers no modes of its own, and on its own it asks before nothing but reading a .env file, so Moontors gives it the asks: in Manual, before each edit, command, web fetch or search, and file outside the folder, your own OpenCode rules still deciding where they say otherwise. Edit automatically and Bypass are Moontors answering for you, as OpenCode’s own --auto does: Edit automatically allows each edit OpenCode asks about inside the session’s folder or one added to it, an edit outside them still asking, and Bypass everything it asks about. A deny of yours or a project’s still holds in both, as OpenCode refuses a denied call without asking. Plan is OpenCode’s own Plan agent, which edits nothing but the plans it keeps in its own folder; leaving Plan goes back to your default agent, OpenCode’s Build unless your OpenCode config names another. A switch starts its agent again, going on with the conversation.

Auto is each agent’s own. With Claude Code, it’s Claude Code’s auto mode, and Claude Code decides what goes through; while its check holds a call for more than a few seconds, the call’s row says Checking permission…. With Codex, the approvals Codex would ask you for go to its own review instead. Either way, a call the review decides on says so as its row’s status, Auto-approved or Denied, with the risk Codex’s review saw, and opens to the review’s reason, and to the rule of your own auto mode settings that Claude Code’s check went by, where it names one. A call Claude Code’s auto mode couldn’t check, because its check doesn’t run in the session or gave no answer, is denied too, and its row says the check couldn’t check it and that it wasn’t found unsafe. With Grok Build, it’s Grok Build’s own Auto mode: its check lets routine work through without asking, and a call it blocks fails, its row saying Denied and opening to the check’s reason. Grok Build’s check goes by what you asked for: a command you name runs, even one deleting something outside the folder, while the same command coming from a file in the folder was blocked, as you never named its path. Where its check can’t decide, Grok Build asks you, as in Manual.

A denial doesn’t stop the turn to ask you: the agent goes on without the call, and the session is marked Action denied, on its card and in its header, until you decide on the denied call’s row. Click the mark to go to that row: the transcript scrolls to it and lights it a moment, and on a card the session opens there first, a long transcript going to the row once it has loaded from its start. A denial with no call row of its own shows as its own line, saying the agent’s own review denied it, where you decide on it instead. Its choices sit on a line of their own under the row, in small text that’s underlined as you point at it, as every action a transcript row offers is, in this order, each where it applies: Approve once, Allow for this session and Keep denied. Each can be reached with Tab and pressed with Enter. Approve once shows, as code beside it, exactly the command or call it approves, never the agent’s own description of it, any character that would read as nothing spelled out, and a denial that doesn’t say what it would approve offers no Approve once. A newer denial takes the mark over, and only its row offers Keep denied, which leaves it denied, as any message you send the session does, and the transcript says you kept it denied. /clear ends the mark too. A denial you haven’t decided on outlasts a restart: quit Moontors, or restart the computer, and the session is marked Action denied again when Moontors opens, its row’s choices still offered, until you decide. With Codex, Approve once approves a denied command, or a call of an MCP tool, once: while a turn runs, the agent may try it again in that turn; while the agent is idle, Moontors also sends “Approved: run this again:” and the command or call as your message, so it tries now. The transcript then says you approved it once. Your approval stays in the conversation for Codex’s review to weigh, and the retry and each later try are still reviewed. Codex’s review names an MCP tool’s call by its server and tool alone, so its approval covers that tool with any arguments, shown beside the choice as the two. An approved denial takes no second approval, from this window or the phone, and one from before /clear takes none. A denial of anything else, such as network access, can only be kept denied. /approve lists the commands and calls the review denied in this session that you can still approve, newest first, each beside the command or call it approves, with Approve once. See Conversation commands.

With Claude Code, Approve once approves a call its auto mode’s check denied as Claude Code’s own terminal does from its recently denied list: Moontors sends Claude Code’s own words as your message, that you allow this exact command (or call), as one whole string, and nothing more, and that it may try it again now. Claude Code’s check reads those words as your consent. They go once the turn under way ends, as a message sent into a running turn isn’t read as your consent. A call its check couldn’t check, and one refused as Don’t wait for me keeps it from asking you, can be approved once too: its retry meets whatever decides then, the check again while the session is in auto mode, or Claude Code asking you once Don’t wait for me is off. Only a call too long for Claude Code’s own approval to quote can’t be approved once; keep it denied, or allow it for the session where that’s offered. /approve lists them as it does with Codex.

With Grok Build, Approve once is your message too, as Grok Build takes an approval in your words alone: Moontors sends that you approve this exact command only, once, quoted as one whole string, and Grok Build’s check then lets it through. It goes once the turn under way ends. A denial of anything but a command can only be kept denied there.

With Claude Code, a denied call that one of Claude Code’s rules can name exactly, a command, or a file read or written that’s already there, by its full path, offers Allow for this session, for the rule that names the call, such as Bash(git push origin main). It adds that rule to the session’s rules, where you can remove it as any other (see Allow for this session), and Claude Code lets a call the rule names through, its review not asked. While a turn runs and nothing waits behind it, Claude Code takes the rule at once, in that turn; while the agent is idle, or something waits behind the turn, the agent starts again with the rule. Either way Moontors then sends “Approved: run this again:” and the rule as your message, behind what waits, so the agent tries the call again, and the row says Allowed for this session. Should Claude Code refuse the rule, Moontors says why, and the call stays denied.

Only a file’s rule is offered, never a folder’s, as Claude Code’s rule for a folder covers everything in it, nor one for a link or a file not written yet. A command with a wildcard, a pipe, a subshell, a group or a command substitution offers none, as a rule of its text would allow more than the call or nothing, and neither does a page fetched or an MCP tool, whose narrowest rule covers more than the one call. Nor does a PowerShell command, as Claude Code matches its rules against its own reading of one, statement by statement and by its start, so a rule of its text could allow more than the call. Nor does a command that is only an interpreter’s or a shell’s name, such as python or sudo, whose rule Claude Code’s auto mode sets aside; and while your or your organization’s Claude Code settings have auto mode check every command (autoMode.classifyAllShell), no command offers one. Where your organization sets that from its server or a device profile, which Moontors can’t read, the rule is still added, but under auto mode Claude Code may still check later runs of the command.

Your account can still refuse a mode the agent normally has, such as Claude’s Auto. Then the switch fails with the agent’s own reason, and the session keeps its mode. A switch the agent doesn’t answer in time fails too, saying so.

  • The mode picker is in the composer’s toolbar. Only the modes the agent has are listed, and the current one has a check. Manual, which a new session starts in unless you choose another, is marked (default) in the menu and on the button. Create session has the same picker, starting at the agent’s default mode set in Settings, else at Manual.
  • Shift+Tab in the message box steps through the modes the agent has.
  • Switching to Bypass always asks you to confirm first: “Turn off permission prompts?”, with Switch to Bypass and Cancel. Choosing it as an agent’s default for new sessions, in Settings, asks the same, once, there.
  • While a Codex, Grok Build or OpenCode turn runs, you can still pick a mode. The picker shows it as chosen at once, with a clock beside it that says “Takes effect when this turn ends.”, and Moontors switches to it when the turn ends, before a message waiting for that end goes, so the message runs in the new mode. With Grok Build and OpenCode, every message you send while the turn runs waits for that end; one Codex takes into the turn still runs in the turn’s mode. Another pick replaces it, and picking the session’s own mode again lets it go. A Stop, a crash or an error still ends the turn into it. If Codex refuses the mode then, the transcript says why, and the session keeps its mode. Grok Build and OpenCode take it as their agent starts again on the conversation, and the mode’s row shows after the turn’s reply.
  • Each change shows as a quiet row in the transcript.

The agent can also change its own mode. When you approve a plan, Claude leaves Plan by itself, and the picker follows. Grok Build goes into Plan by itself when its model decides a task needs a plan first, and leaves it when you approve the plan, back in the mode the session was in before; the picker follows each.

For a session you leave running, Don’t wait for me has the agent refuse an action it would ask your approval for, at once, and carry on without it, so nothing in the session waits for you. Switch it on in Create session’s Options, or after the modes in the mode picker on the desktop and the phone. With Claude Code, each refused action is marked on its row, which says it didn’t run as the session doesn’t wait for your approval, and the session is marked Action denied, so you can approve it when you’re back (see Allow for this session); and the agent asks you no questions, brings no plan to approve, and ends its turn after ten refusals in a row. Once you switch it off, Claude Code still has its own instruction not to retry what it refused, so tell it it can ask again.

  • Claude Code and Codex have it. With Codex, it works in Auto: the agent stays in its sandbox, and what would need your approval to leave it fails in the turn, unmarked. In Manual, Codex would run what it asks about instead, so it’s off there. Gemini CLI, Grok Build and OpenCode don’t have it (see Known limits).
  • With Claude Code it holds in Manual, Edit automatically and Auto, with Codex in Auto. It’s off in Plan, which waits for you to approve its plan, and in Bypass, where nothing asks for your approval; the switch says why.
  • In the mode picker it’s a switch, and the menu, or the phone’s sheet, stays open as you turn it, so you see it change. Under its name it says in a line what it does, and the ⓘ beside its name tells all of this: point at it, or move to the switch with the keys, on the desktop; tap it on the phone to show the rest under that line. While it’s on, the mode’s button shows a no-entry mark after the mode, and says “Don’t wait for me is on” when you point at it, as a screen reader hears it.
  • A change takes effect as the agent starts again, as the session’s other settings do. While a turn runs, it waits for the turn’s end, the picker showing the clock.

A session’s agent has tools of Moontors’ own. Three reach your sessions: list_sessions, which lists them, send_to_session, which sends one of them a message, and session_history, which reads a session’s conversation back (a few sessions start without them; see Known limits). The rest are the time tracker’s, which read it and time a task in its current list (see Agents and the time tracker). No agent asks before send_to_session or the time tracker’s tools, in any mode, nor has its own check judge them: a message only reaches your own sessions on this computer, and what it has the receiving session do runs under that session’s own mode, not the sender’s; the time tracker’s only change Moontors’ own list. Before the other two, the agent asks as it does before any MCP server’s tool, by its mode:

send_to_session and the time tracker’slist_sessions and session_history
Claude Codenever asksasks; in Auto, Claude Code decides
Codexnever asksnever asks, as they only read
Gemini CLInever asksasks
Grok Buildnever asksasks; in Auto, Grok Build decides
OpenCodenever asksnever asks

In Bypass, none asks. Allow for this session stops one asking again in that session, where the agent offers it. A deny rule of your own for one that never asks still applies. With Claude Code and Grok Build, so does an ask rule of yours for it, and a hook of yours that asks, and with Gemini CLI, your tools.confirmationRequired naming it: Moontors only never asks itself. With Gemini CLI, they’re offered in Plan too, as Moontors’ allow keeps them there.

What a message has the receiving agent do runs under that session’s own mode, not the sender’s: a session in Manual can ask one in Bypass to run anything (see Sessions messaging each other).

Besides asking before a tool, an agent can ask you a question, show you a plan, ask you what to do next, ask you to fill in a form, or ask you to open a link. No permission mode answers these: they wait for you, even in Bypass. How each one shows, and how you answer it, is in Questions and plans.

QuestionsPlansChoicesFormsLinks
Claude Codeyesyesyesyesyes
Codexin Plan mode onlyyes—yesyes
Gemini CLI—yes———
Grok Build—yes—yesyes
OpenCode———yes—

Choices are Claude Code’s own: a refused request’s other model, usage credits, and auto mode’s notice (see Choices). Forms and links come from MCP servers, and with Codex, a server’s OpenAI forms are forms too. OpenCode asks its own questions as a form, and passes on no MCP server’s form or link. A form with a field Moontors can’t show is declined.

  • Claude Code asks one to four questions at once. A question can take several choices, and its choices can come with a preview. Other, for an answer of your own, is always there.
  • Codex asks for one choice per question, with Other where Codex offers it.

With either agent you can add a note to your answer.

Accept this plan? offers an answer for each mode the agent can go on in, such as Yes, and edit automatically. Yes, and bypass permissions confirms first, as switching to Bypass does: “Turn off permission prompts?”

  • Claude Code goes on in any of its modes but Plan.
  • Codex goes on in Manual or Auto, with its own prompt to carry out the plan.
  • Gemini CLI goes on in Manual only. Moontors reads its plan from Gemini CLI’s plan file, and your feedback goes to it as your next prompt.
  • Grok Build goes on in the mode its plan mode lay over: Manual for a session in Plan, or the session’s own mode for a plan its model went into by itself. It starts on the plan at once, in the same turn, and your feedback goes to it with your answer.

No, keep planning sends your feedback instead, and the agent stays in Plan.

Where the agent supports it, a question also offers Allow for this session. Its tooltip names the exact rule it adds. Answering with it adds that rule, so the same request isn’t asked again in this session, and the question shows Allowed for this session. The session’s rules are listed in the Configuration dialog, under This session, where you can remove one. See Configuration.