Supported agents
Each agent calls openmoat guard from its own hook before each tool call it reports. openmoat init finds the agents installed on your machine and asks before setting up each one.
For an agent with an OS sandbox, openmoat init also writes the sandbox settings from the same policy, so a script inside an allowed npm test cannot read your keys either. For the others, the hook is the only check; there, running a script the same session wrote needs review first (Code the agent wrote).
At a glance
Section titled “At a glance”OpenMoat checks fourteen agents: Claude Code, Codex, Cursor, OpenClaw, GitHub Copilot CLI, pi, Gemini CLI, OpenCode, Hermes Agent, the Cline CLI, goose, the Antigravity CLI, Qwen Code and Crush.
- Protection
- hook + OS sandbox (macOS, Linux, WSL2); hook only on native Windows
- Hook run by the real agent
- Linux, macOS
- Where you answer a review
- Claude Code's own prompt
- openmoat init --hosts
claude-code
- Protection
- hook + OS sandbox
- Hook run by the real agent
- Linux, macOS
- Where you answer a review
- the call is denied; run
openmoat allow --last - openmoat init --hosts
codex
- Protection
- hook + OS sandbox (macOS, Linux); hook only on Windows
- Hook run by the real agent
- preview on every OS
- Where you answer a review
- Cursor's prompt for shell and MCP calls;
openmoat allow --lastfor file tools - openmoat init --hosts
cursor
- Protection
- hook only (a
before_tool_callplugin) - Hook run by the real agent
- Linux, macOS
- Where you answer a review
- OpenClaw's own approval request
- openmoat init --hosts
openclaw
- Protection
- hook only
- Hook run by the real agent
- Linux, macOS
- Where you answer a review
- Copilot's own prompt
- openmoat init --hosts
copilot-cli
- Protection
- hook only (an extension)
- Hook run by the real agent
- Linux
- Where you answer a review
- a pi dialog
- openmoat init --hosts
pi
- Protection
- hook only
- Hook run by the real agent
- Linux
- Where you answer a review
- Gemini CLI's own confirmation
- openmoat init --hosts
gemini-cli
- Protection
- hook only (a plugin)
- Hook run by the real agent
- preview on every OS
- Where you answer a review
- OpenCode 2's own permission prompt; on OpenCode 1 the call is denied, run
openmoat allow --last - openmoat init --hosts
opencode
- Protection
- hook only
- Hook run by the real agent
- preview on every OS
- Where you answer a review
- Hermes's own approval prompt
- openmoat init --hosts
hermes
- Protection
- hook only (
PreToolUseandPostToolUsehook scripts) - Hook run by the real agent
- Linux, macOS
- Where you answer a review
- the call is denied, which ends Cline's run; run
openmoat allow --last - openmoat init --hosts
cline
- Protection
- hook only (a plugin)
- Hook run by the real agent
- Linux, macOS
- Where you answer a review
- the call is blocked; run
openmoat allow --last - openmoat init --hosts
goose
- Protection
- hook only
- Hook run by the real agent
- Linux, macOS
- Where you answer a review
- Antigravity CLI's own prompt, asked every time
- openmoat init --hosts
antigravity-cli
- Protection
- hook only (preview)
- Hook run by the real agent
- preview on every OS
- Where you answer a review
- Qwen Code's own prompt, even in YOLO mode
- openmoat init --hosts
qwen-code
- Protection
- hook only (preview)
- Hook run by the real agent
- preview on every OS
- Where you answer a review
- the call is denied; run
openmoat allow --last - openmoat init --hosts
crush
- Protection
- not checked: it runs no hooks and is no longer maintained upstream
- Hook run by the real agent
- none: it runs no hook
- Where you answer a review
- none: use
openmoat run - openmoat init --hosts
- none
openmoat status prints the level each agent has right now. It says not protected when:
- the hook is missing or out of date;
- the agent’s own settings turn hooks off;
- OpenMoat’s entry lacks the agent’s fail-closed key (
failClosed: truefor Cursor,fail_closed: truefor Hermes Agent); - Hermes Agent’s
shell-hooks-allowlist.jsondoes not approve the hook; - the agent ran without loading OpenMoat’s plugin;
- or the agent’s version does not load OpenMoat’s hook (OpenCode before 1.3.4).
The line names the file and the setting. When the agent’s installed version has a published security advisory that a later version fixes, openmoat status and openmoat doctor add a warning line naming the version to upgrade to.
For any agent, openmoat run -- <agent> starts the whole agent inside one sandbox made from your policy, with network only through OpenMoat’s proxy (macOS 13 or later, Linux). It answers nothing command by command; that is the hook’s job. See Auto-approve and CI.
Each week CI installs every agent’s latest release and sets it up with openmoat init; where the agent runs without an account, CI checks that the real agent loads OpenMoat’s hook, and (from 0.20.0) makes the hook fail under it to check what the agent then does (what is checked per agent).
The Hook run by the real agent column says on which systems a real copy of the agent ran OpenMoat’s hook and the decision held; everywhere else, Windows included, the hook is set up and its payloads are tested, but it is preview. Each agent on each OS, with the tests behind every claim: Protection by agent and OS.
openmoat doctor names each agent that runs a call when OpenMoat’s hook cannot start, crashes or times out (“fails open”), with the way out: start it with openmoat run, and add require.run: full-boundary so openmoat run refuses to start without its whole boundary.
What each agent’s hook sees
Section titled “What each agent’s hook sees”Every hooked agent sends OpenMoat its shell commands, file reads and writes, and MCP tool calls. A tool OpenMoat has no mapping for is still checked for the paths, URLs and shell commands its arguments name, so an extension’s tool that reads ~/.ssh/id_rsa is denied. The differences are below.
Claude Code
Section titled “Claude Code”- Checked:
Bash,Monitor,PowerShell(not parsed, so it goes to your agent’s prompt), file tools (Read,Edit,Write,MultiEdit,NotebookEdit,Glob,Grep,LSP),WebFetch,WebSearch,SendFile, the local filesArtifactandArtifactDataupload or save, and MCP tools. A second hook,ConfigChange, sees settings files change during a session. A third,SessionStart(from 0.12.0), gives each session’s sandboxed commands their own credential foropenmoat proxy, so the proxy records their requests under the session and applies its taint (Agent sessions only). A fourth,PostToolUse(from 0.16.0), reports what each call returned, so a later call that uses a host, path or command untrusted output named needs review (Injected input). - In the editors: the VS Code extension and the JetBrains plugin use the same hook;
openmoat initalso finds the Claude Code the VS Code extension bundles (Editors). - Sandbox: Claude Code’s sandbox covers
Bash,PowerShellandMonitor. File tools,WebFetchand MCP servers run outside it and are checked by the hook only. On native Windowsopenmoat initleaves the sandbox off, because Claude Code would not start with it; run Claude Code andopenmoatinside WSL2 for it. Where the sandbox is not in place, running a script the session wrote needs review. - If the hook fails: with Claude Code 2.1.295 or later,
openmoat initsetsonFailure: "block", so the call is blocked whenopenmoatcannot start, crashes or times out. Earlier versions run the call unchecked. - Turned off by:
disableAllHooksin asettings.json. A project’s.claude/settings.jsonis loaded when the session starts, before any hook runs; see Project settings that turn hooks off.
- Checked: shell commands,
apply_patch(every file the patch names), MCP tools, and (from 0.15.0)read_mcp_resourceandview_image, as the resource or image they read. Codex’s web search and hosted tools are not sent to hooks, so OpenMoat does not see them. - The project is the session’s. A command’s
workdiris chosen by the model, so from 0.15.0 it does not set the project: a command run from outside the session’s project is decided as running in the session’s directory, and a write from~/Library/LaunchAgentsis checked as that path. - Input typed into a running program: Codex sends later input to a running shell or REPL with
write_stdin, which runs no hook. So a command that starts a shell, REPL, editor or login with no script or command of its own (bash,python3,node,sqlite3 db,ssh host) needs review;bash x.sh,python3 x.pyandssh host cmdare decided as usual. - Reviews: Codex hooks cannot show a question, so a review is sent as a deny. The message says to run
openmoatoropenmoat allow --last; run it, then ask Codex to retry. - One step in Codex: Codex runs a new or changed hook only after you trust it in its
/hooksview. Afteropenmoat init, and after an upgrade that rewrites the hook (0.15.0 did, forread_mcp_resourceandview_image) or adds one (0.21.0 adds thePostToolUsehook for injected input), open/hooksin Codex and trust OpenMoat’s hooks.openmoat initandopenmoat doctorremind you. - If the hook fails: Codex runs the call unchecked when
openmoatis missing, crashes or times out. - Turned off by:
[features] hooks = falseinconfig.toml.
Cursor
Section titled “Cursor”- Checked: shell commands, MCP calls, file reads, and the agent’s file, search and web tools. The hooks are installed with
failClosed, so a hook that fails blocks the call; an entry withoutfailClosed: trueis reported as not protected. - Tab (from 0.17.0):
beforeTabFileReadrefuses Cursor’s inline completion reading a file the policy refuses an agent (a secret, another agent’s login); every other file reads as before. Cursor also runs Claude Code’s hooks; OpenMoat reads such a call as Cursor’s and answers a review there as a deny (Editors). - The project is the session’s. From 0.15.0 a shell command whose
cwdis outside every workspace root is decided as running in the session’s directory, since the model picks thecwd. - Reviews: Cursor shows its own prompt only for shell and MCP calls. A review of a file tool is sent as a deny that says to run
openmoat allow --last. - Sandbox:
openmoat initwrites Cursor’ssandbox.jsonon macOS and Linux. While it is installed, a command Cursor runs in its sandbox that no rule decides is allowed, as Cursor would run it, instead of asking. Cursor still runs some commands outside it: one its Auto-review approves, everything in Run Everything mode, and the Cursor CLI without--sandbox enabled. Inside the workspace its sandbox cannot deny.envor.git. Cursor documents no sandbox on Windows, so there it is hook only, and running a script the session wrote needs review.
OpenClaw
Section titled “OpenClaw”- Checked: every tool, through OpenMoat’s plugin on OpenClaw’s
before_tool_callhook:exec, file tools,apply_patch,web_fetch,web_search, browser navigation and uploads, MCP tools, plugin changes, and cron jobs (which need review). - The call that runs is the one checked. The plugin decides at the highest priority and returns the parameters it checked at the lowest, so another plugin’s rewrite of the call is undone (OpenClaw runs the call OpenMoat checked). A plugin that changes the call and asks for approval in the same answer keeps its change once you approve it.
- Setup: restart the Gateway after
openmoat init(openclaw gateway restart).openmoat initrefuses anopenclaw.jsonthat has comments, because writing it back would drop them: move them out first. - If the hook fails: a plugin that throws, or an answer that takes over 45 seconds, blocks the call. If the Gateway does not load the plugin at all, calls run unchecked;
openmoat statussays “plugin not loaded yet” until the plugin has reported loading (Plugin loading). - Not checked: OpenClaw’s process input to a running
execsession;code_execution, which runs at the model provider. Running a script the session wrote needs review.
GitHub Copilot CLI
Section titled “GitHub Copilot CLI”- Checked: every tool, through a
preToolUsehook in a file of OpenMoat’s own (~/.copilot/hooks/openmoat.json):bash, file tools, patches, searches,web_fetch,web_searchand MCP tools. Input typed into a running shell (write_bash,write_powershell) needs review, because a command split over two calls would pass piece by piece. From 0.21.0 apostToolUseentry beside it reports what each call returned, for injected input; each entry names its event (openmoat guard --event), since Copilot’s payloads name none. - Reviews: Copilot’s own prompt. In autopilot mode Copilot turns a review into a deny.
- If the hook fails: Copilot blocks a call whose hook crashes, but runs one whose hook times out.
openmoat initsets the timeout to 600 seconds, far above OpenMoat’s own 30-second limit. - Turned off by:
disableAllHooksin~/.copilot/settings.jsonor a repository’s.github/copilot/settings.json. The agent cannot write those files, andopenmoat statusreports yours.
The pi coding agent (@earendil-works/pi-coding-agent).
- Checked: every tool, through OpenMoat’s extension (
~/.pi/agent/extensions/openmoat.js) on pi’stool_callevent, including the calls acodemodescript makes and the tools of other extensions. - Reviews: a pi dialog. In print and JSON mode, which have no screen, a review is a deny until you run
openmoat allow --last. - Deferred calls run. pi has no approval step of its own, so a call OpenMoat has no rule for runs without a question.
- Setup: restart pi after
openmoat init; it loads extensions when it starts. - If the hook fails: an extension that throws, or an answer that takes over 45 seconds, blocks the call.
pi --no-extensions, or a settings entry that leaves OpenMoat’s extension out, runs calls unchecked;openmoat statusreports such an entry, and reports pi as not protected once pi wrote a session without the extension reporting that it loaded (Plugin loading). - Not checked: an input change by an extension pi loads after OpenMoat’s, and an extension that replaces a built-in tool.
Gemini CLI
Section titled “Gemini CLI”- Checked: every tool, through a
BeforeToolhook in~/.gemini/settings.json:run_shell_command, file tools, searches,web_fetch,google_web_searchand MCP tools. A search without a directory (grep_searchorglobwithout adir_path), and everyread_many_files, is checked over the working directory and thecontext.includeDirectoriesof your user and project settings, the folders Gemini CLI then reads. From 0.21.0 anAfterToolhook beside it reports what each call returned, for injected input. - Reviews: Gemini CLI’s own confirmation, also in YOLO mode.
- Trusted folders only. In a folder Gemini CLI does not trust, it runs no hooks at all, and asks you before every tool instead.
- If the hook fails: Gemini CLI has no setting to block on failure. A hook that cannot start (
openmoatmissing) blocks the call; a hook that times out, is killed, crashes or exits with code 1 lets it run. - Setup:
openmoat initrefuses asettings.jsonwith comments: move them out first. When Gemini CLI saves a new model, theme or display setting there, calls keep being checked andopenmoat doctorreports the change.
OpenCode
Section titled “OpenCode”OpenCode 1 (opencode-ai, 1.3.4 and later) and OpenCode 2 (@opencode/cli), through one plugin (OpenCode 1 and 2).
- Checked: every tool, through OpenMoat’s plugin (
~/.config/opencode/plugins/openmoat.js) on OpenCode 1’stool.execute.beforeor OpenCode 2’sexecute.before. The plugin pins the call it checked, so a later plugin that rewrites it makes the call fail. - Reviews: on OpenCode 2, OpenCode’s own permission prompt. OpenCode 1 gives a plugin no way to prompt you, so a review is a deny that says to run
openmoatoropenmoat allow --last. A call OpenMoat defers is left to OpenCode’s own permission rules. - Setup: start OpenCode again after
openmoat init(OpenCode 2:opencode service restart). An upgrade from 1 to 2 needs no newopenmoat init. OpenCode before 1.3.4 is not set up:openmoat statussays to upgrade. - If the hook fails: a plugin that throws, or an answer that takes over 45 seconds, blocks the call. OpenCode runs calls unchecked when it does not load the plugin: OpenCode 1’s
--pureorOPENCODE_PURE, OpenCode 2’s-openmoatinplugins, or an error loading it.openmoat statussays “plugin not loaded yet” until the plugin has reported loading. - Not checked: your own
!shell commands. OpenCode 2’s--autoapproves OpenMoat’s reviews, and the plugin cannot tell. Other plugins and custom tools run in OpenCode’s process with the agent’s rights, and a project’s load at start with no prompt.
Hermes Agent
Section titled “Hermes Agent”- Checked: every tool, through one
pre_tool_callshell hook in~/.hermes/config.yaml($HERMES_HOME/config.yamlwhen that is set), withfail_closed: true.openmoat initedits the file as text, so your comments stay, and approves the hook’s command inshell-hooks-allowlist.jsonbeside it. Itsmemoryandskill_managetools are checked as writes of itsmemories/andskills/. A relative file path is checked against the directory Hermes started in; one that climbs out (..), and aterminalcall that moves the shell outside that directory, need review, and the message names the file and whether it is read or written. - Reviews: Hermes’s own approval prompt. Its “always” answer approves that same call again, never another call held for the same reason. In YOLO mode or with
approvals.mode: off, where Hermes would approve it unseen, a review is a deny you approve withopenmoat allow --last. - Setup: restart
hermesand the gateway afteropenmoat init(a running gateway picks the hook up within about 30 seconds). Hermes saveshermes modeland display choices in the same file without affecting OpenMoat; any other change there denies every call until you runopenmoat doctor --accept. - If the hook fails: a hook that cannot start, times out, exits non-zero without a decision or prints something that is not JSON blocks the call, and so does
plugins.hook_callback_timeout(30 seconds by default) running out. Hermes runs a call unchecked when its own hook dispatcher raises an error. - Skipped hook: Hermes’s gateway, cron and ACP sessions skip a hook its
shell-hooks-allowlist.jsondoes not approve, as Hermes does underHERMES_SAFE_MODE=1or in a profile OpenMoat did not set up.openmoat statusreports a hook the allowlist does not approve as not protected. - Not checked: what an
execute_codescript does itself (its tool calls are checked). Plugins, another hook’smodifyreply and tool middleware can rewrite a call’s arguments after the check. The in-session/yolotoggle andhermes -zapprove a review unseen. Terminal commands on a remote backend (docker, ssh, modal, …) are checked as local ones.
Cline CLI
Section titled “Cline CLI”The Cline CLI (cline, npm cline). Setup, the tools it checks and the limits in full: Cline CLI.
- Checked: every tool, through OpenMoat’s
PreToolUsehook script in~/.cline/hooks($CLINE_DIR/hookswhen that is set), with aPostToolUsecopy beside it (from 0.17.0) that reports what each call returned for injected input:run_commands,read_files,editor,apply_patch,search_codebase,fetch_web_contentand MCP tools; any other tool by the paths, URLs and commands its arguments name. The MCP servers in Cline’scline_mcp_settings.jsonare pinned. - Reviews: Cline’s hooks cannot prompt, so a review is a deny, which ends Cline’s run. Approve it with
openmoat allow --lastand continue the session. - If the hook fails: Cline itself runs a call whose hook fails, so OpenMoat’s script blocks the call when
openmoatis missing, crashes or gives no answer. A script that cannot start at all (nosh, as on native Windows) or is killed after Cline’s 120 seconds lets the call run, so from 0.20.0openmoat doctornames the Cline CLI as failing open. - Not checked: the Cline VS Code extension,
--yoloruns (no hooks run at all) and native Windows. Another hook or plugin can change a call after OpenMoat checked it;openmoat statusandopenmoat doctorprint these limits on a line of their own and name every otherPreToolUsefile and Cline plugin they find. - Workspace hooks: writes to
.clinerules/hooks/and.cline/hooks/, which Cline runs on each tool call, need review (runs-later).
goose, the open-source agent from Block, CLI and desktop app. Setup, the tools it checks and the limits in full: goose.
- Checked: every tool, through OpenMoat’s plugin,
~/.agents/plugins/openmoat/hooks/hooks.json, onePreToolUseentry withon_failure: block:shell,write,edit,tree,analyze,read_imageand extension tools. MCP extensions in goose’sconfig.yamlare pinned. - Reviews: goose hooks cannot prompt, so a review is a block you approve with
openmoat allow --last. - Setup: restart goose (the CLI or the desktop app) after
openmoat init; it loads plugins when it starts. - If the hook fails: with
on_failure: block, whichopenmoat initsets, a hook that cannot start, times out or answers wrongly blocks the call. goose runs every call unchecked when it does not load the plugin. - Not checked: what Code Mode’s
execute_javascriptdoes (its tool calls skip the hook, so the call itself needs review), and hooks a project’s.agents/plugins/adds.openmoat statusandopenmoat doctorreport goose not protected in a directory whose.agents/plugins/openmoatreplaces OpenMoat’s plugin, name the directory to remove, and warn about the hooks of the project’s other plugins.
Antigravity CLI
Section titled “Antigravity CLI”- Checked: every documented tool, through a
PreToolUsecommand hook under the nameopenmoatin~/.gemini/config/hooks.json(shared with the Antigravity app and IDE). Each tool is mapped by what it does; a tool not listed is treated as unknown. - Reviews: Antigravity CLI’s own prompt, every time (a saved “Always Allow” cannot answer it). With
toolPermission: always-proceedin its settings, a review is a deny. - Run on a real
agy(from 0.20.0): the weekly run of the agents’ latest releases starts a realagyon Linux and macOS. In its run of 2026-11-12 (43254846914)agyran OpenMoat’s hook, which denied a read of a planted key, and blocked the call when the hook binary was missing and when it exited 1 without output. On Windows it is preview (Protection by agent and OS). - If the hook fails: a hook that cannot start, crashes or exits non-zero blocks the call. What
agydoes when a hook times out (600 seconds) is not documented and not tried by the weekly run, so OpenMoat assumes the call runs;openmoat doctornames Antigravity CLI as failing open for that case only. For an OS sandbox as well, useopenmoat run -- agy. - Turned off by:
"enabled": falseon OpenMoat’s entry (a project’s.agents/hooks.jsonincluded), or deleting it.openmoat statusshows such an entry as not protected, andopenmoat initturns it back on. - Blocks with: exit 0 and the deny on stdout (from 0.22.0), the way
agy’s plugin guide says a hook blocks; a non-zero exit is ignored there.
Qwen Code
Section titled “Qwen Code”Preview from 0.22.0: what its docs and source say is supported, not yet run on a real Qwen Code.
- Checked: every tool, through a
PreToolUsecommand hook namedopenmoatin~/.qwen/settings.json(QWEN_HOMEnames the folder). MCP tools aremcp__<server>__<tool>. - Reviews: Qwen Code’s own prompt, even in YOLO mode; without a screen a review is a deny.
- If the hook fails: a hook that times out, cannot start or gives an answer Qwen Code cannot read lets the call run. For an OS sandbox as well, use
openmoat run -- qwen. - Turned off by:
disableAllHooksin a settings file,--safe-modeor--bare.openmoat runrefuses a project whose settings turn the hook off.
Preview from 0.22.0: what its source says is supported, not yet run on a real Crush.
- Checked: every tool, through a
PreToolUsehook namedopenmoatin Crush’s globalcrush.json(CRUSH_GLOBAL_CONFIG, else~/.config/crush). A project’scrush.json,.crush.json,.crush/crush.jsonandcrushrcscripts need review before a session changes them. - Reviews: Crush has no “ask”, so a review is a deny; run
openmoat allow --last. - Not seen: the calls of its subagents (
agent,agentic_fetch), so starting one needs review. An MCP tool is namedmcp_<server>_<tool>, which cannot be split back into its server, so per-server MCP rules do not apply: each MCP call is checked by what its arguments name. - If the hook fails: the call runs. For an OS sandbox as well, use
openmoat run -- crush.
Continue CLI
Section titled “Continue CLI”The Continue CLI (cn) is built to run Claude Code’s hook, but the released cn runs no hooks, so OpenMoat cannot check its calls, and its repository (github.com/continuedev/continue) says it is no longer actively maintained and is read-only. Start it with openmoat run -- cn to keep it in a sandbox; openmoat doctor warns about this.
macOS, Linux and Windows
Section titled “macOS, Linux and Windows”| Hooks | Agents’ own sandboxes | openmoat run |
openmoat proxy install |
|
|---|---|---|---|---|
| macOS | yes | Claude Code, Codex, Cursor | macOS 13 or later | launchd user agent |
| Linux | yes | Claude Code, Codex, Cursor | yes: the Isolated tier by default where bubblewrap works | systemd user unit |
| Windows | yes (not the Cline CLI) | Codex only; use WSL2 for Claude Code | no; use WSL2 | not yet |
- macOS:
openmoat runuses Seatbelt and needs macOS 13 or later. On macOS 12 it refuses to start and says so; the hooks still apply the policy. - Linux: from 0.20.0
openmoat runstarts the Isolated tier (bubblewrap) by default where bubblewrap works: the agent sees only the project, the read roots, its executable, the--writepaths and an empty temp directory, the project’s.env,.git/hooksand.moatincluded, and its network goes only through OpenMoat’s proxy. Where bubblewrap is missing or blocked, it starts the Lightweight tier (Landlock and seccomp), says why on every start and records it; there the network is limited by port only, and from 0.21.0 the project is granted entry by entry, so its.env,.gitand.moatstay covered but nothing can be created directly at its top (Project files on Linux).openmoat doctorsays which tier applies (Linux tiers and Landlock). - Windows: the hooks apply the policy to every call, except for the Cline CLI, which is not covered on native Windows (its hook script needs
sh). goose on Windows needsshon the search path to run any hook; without it every call is blocked. PowerShell commands are not parsed, so OpenMoat never allows one: they go to your agent’s prompt. Secrets kept in the system keychain cannot be brokered yet. From 0.21.0:- WSL crossings are denied (
wsl-crossing): handing work to the Windows Subsystem for Linux (wsl,wslg,wslconfig,bash.exein the system folders, the listed Store distribution launchers, also inside acmdor PowerShell line or astartline), any path on the\\wsl$or\\wsl.localhostshare, and copying the launchers, since no Windows path rule reaches inside WSL. Acmdor PowerShell line beyond simple commands, or one namingwslorbashanywhere, needs review. - The state directory gets its own access list:
openmoat initgives it your account andSYSTEMonly, and refuses a state directory another account owns;openmoat doctorreads back which account owns it and its access list and names any other account that may change or read it. This keeps other accounts out, not the agent, which runs as you; the hook’s rules keep the agent out. - Codex’s sandbox mode:
openmoat doctorshows which Windows sandbox mode Codex’sconfig.tomlselects, and warns underunelevated, which does not enforce OpenMoat’s read denies. Where WSL is installed it names WSL2 as the way to OS confinement, and under WSL1 it says thatopenmoat runneeds WSL2.
- WSL crossings are denied (
Agent settings that switch the hook off
Section titled “Agent settings that switch the hook off”An agent’s own settings can turn its hooks off, and OpenMoat cannot override them. openmoat status and openmoat doctor report the ones in your own settings as not protected, and warn about a project’s settings that turn hooks off, add hooks or start programs:
| Agent | Setting |
|---|---|
| Claude Code | disableAllHooks in settings.json |
| Codex | [features] hooks = false in config.toml, or OpenMoat’s hook not trusted in /hooks |
| GitHub Copilot CLI | disableAllHooks in settings.json |
| pi | an extensions entry that leaves OpenMoat’s out, or --no-extensions |
| Gemini CLI | hooksConfig in settings.json, or a folder Gemini CLI does not trust |
| OpenCode | -openmoat (or -*) in plugins, or a policies entry denying OpenMoat’s plugin, in opencode.json[c]; OpenCode 1’s --pure or OPENCODE_PURE |
| Hermes Agent | the hook’s command not approved in shell-hooks-allowlist.json; HERMES_SAFE_MODE=1; a profile OpenMoat did not set up |
| Cline CLI | --yolo; --config, --hooks-dir or a moved CLINE_DIR that OpenMoat did not install into |
| goose | disabledPlugins naming openmoat in ~/.config/goose/settings.json or a project’s .config/goose/ |
The agent itself is denied writing your own settings files of these, so only you, or a program running outside the agent, can change them.
Every gap per agent, with the reasons: THREAT_MODEL.md. Every tool each hook sees: INSTALL.md.