Messages in the agent
A blocked call reads moat: <verdict> [<rule>] — <reason>: <what it did>.
From 0.17.0 that line sits inside a short message headed OpenMoat blocked: <the rule's title> (or OpenMoat is holding this for you: … for a review), with why the rule exists and one next step (What the message says); openmoat why --last explains it in full.
The reason is the rule’s own, from the default policy. Run the fix in your own terminal; agents are denied every one of these commands.
| Message starts with | Means | Run |
|---|---|---|
moat: deny [secrets-paths] — secret material |
A key, token file, .env or a command that prints a stored token |
Nothing; to give the agent a token, openmoat secret add |
moat: deny [build-credentials] — build tool credentials |
~/.m2/settings.xml or ~/.gradle/gradle.properties |
Nothing; mvn and gradle still read them in the sandbox |
moat: deny [env-secrets] — secret environment variable |
A variable named like a secret (*_TOKEN, *_KEY, AWS_*, …) |
Nothing; see .env and variables |
moat: deny [env-dump] — prints every environment variable, secrets included |
env, printenv, export -p, /proc/self/environ, inline code printing the environment |
Print the one variable you need, if its name is not a secret’s |
moat: deny [env-poison] — changes how later commands resolve or load code |
Setting PATH, LD_PRELOAD, NODE_OPTIONS, GIT_*, MOAT_* and the like |
Set it yourself before you start the agent |
moat: deny [pipe-to-shell] — executes remote or decoded content |
curl … | sh, base64 -d | sh, eval |
Download the script, read it, run it yourself |
moat: deny [destructive] — irreversible damage |
git push --force, git reset --hard, rm -rf ~, sudo, … |
Run it yourself if you mean it |
moat: deny [kernel-self] — OpenMoat protects its own policy, hooks and binary |
The agent touched OpenMoat’s files or ran a person-only openmoat command |
Nothing; run the command yourself (Self-protection) |
moat: deny [agent-folders] — renaming or removing this folder moves agent settings OpenMoat protects |
mv .github …, rm -r .github |
Rename it yourself |
moat: deny [shell-rc] — edits persist into every future shell session |
A write to ~/.zshrc, ~/.bashrc, ~/.curlrc, … |
Edit the file yourself |
moat: deny [managed-settings] — … |
A write to an agent’s system-wide settings (Claude Code’s managed settings, Gemini CLI’s system settings, /etc/codex) |
Nothing; an administrator changes them (Code that runs later) |
moat: review [injected-input] — the host … came from … |
A command or write uses what untrusted output named earlier in the session | Approve it if you asked for it (Injected input) |
moat: review [mcp-cross-server] — this call to MCP server … |
Data one MCP server returned, sent into another’s writing tool | Approve it if you meant it (MCP data between servers) |
moat: review [container-host] — … |
A container given the host: --privileged, a host namespace, the host’s root or the Docker socket |
Approve it if you need it (Code that runs later) |
moat: review [provenance-notes] — … |
The agent writes OpenMoat’s provenance notes ref | Write notes yourself with openmoat provenance --write-notes (Provenance) |
moat: deny [cloud-metadata] — instance metadata and link-local services hand out cloud credentials |
169.254.169.254, metadata.google.internal |
Nothing |
moat: deny [token-egress] — sends a known kind of token to a host that is not its service's |
A GitHub, OpenAI, AWS, … token on its way to another host | Nothing; see tokens sent to the wrong host |
moat: deny [card-egress] — sends a payment card number to a host off this machine |
A card number in a URL, a web search or what a command sends, to any host but this machine | Take the number out; processors’ published test numbers are allowed (Card numbers sent out) |
moat: deny [placeholder-egress] — sends a brokered secret's placeholder to a host the proxy does not put that secret in |
A brokered placeholder sent elsewhere | Nothing |
moat: deny [canary] — a decoy key OpenMoat planted… |
A decoy key openmoat init planted at your yes was read, changed or sent |
Find what in the session went looking for keys: openmoat why --last, openmoat watch (Decoy keys) |
moat: deny [default.net] — no rule matched net <host> |
A host the policy does not list, for a command that can send data | openmoat allow --site <host> (Network allowlist) |
moat: deny [push-secret] |
A commit the push would publish adds a token | Remove it from the commits (GitHub) |
moat: deny [mcp-server-changed], ending in a person must review it: run `openmoat mcp accept <server>` in a terminal |
The server’s definition changed or is new | openmoat mcp accept <server> (MCP) |
moat: deny [kernel-integrity] — … was modified |
A pinned file changed | openmoat (Hooks, lock and binary) |
moat: deny [project-settings] |
A project’s .claude/settings.json turns hooks off or sets a command |
Look at the file (Something was blocked) |
moat: deny [executables] |
The command’s program resolves somewhere other than its pin | If you installed it there, openmoat doctor --accept |
moat: deny [kernel-error] |
OpenMoat could not decide at all: missing state, unreadable policy, a repository policy that does not parse | openmoat doctor (a repository policy denies every call) |
moat: deny [repo:<id>] — …, moat: review [repo:<id>] — … |
A rule in the project’s own .moat/policy.yaml |
Read the rule in that file; approve a review as any other (Use it in your projects) |
moat: deny [pack:<name>:<id>] — …, moat: review [pack:<name>:<id>] — … |
A rule of a policy pack you installed | Ask the pack’s maintainer, or openmoat policy remove <name> (Signed policy packs) |
moat: review [git-internals] — git runs what its config, hooks and refs name, later and outside any sandbox |
A write into .git, git config that sets a value or runs a subcommand (reading one, git config user.name, is allowed), git remote |
Approve, or openmoat allow --last |
moat: review [runs-later] — CI, commit hooks, the editor or the agent host run this later, outside any sandbox |
A CI workflow, commit hook, agent hook, skill or MCP setting | Approve, or openmoat allow --last |
moat: review [persistence] — runs again later, outside this session |
~/Library/LaunchAgents, ~/.gitconfig, crontab, at |
Approve, or openmoat allow --last |
moat: review [stops-openmoat] |
pkill or killall naming moat |
Approve only if you mean it |
moat: review [home-sweep] — reads the whole home folder, secrets included |
grep -r … ~, find ~ |
Ask the agent to search a narrower folder |
moat: review [secret-names], [other-home], [opaque-code] |
A secret’s file name behind an unknown variable, another user’s home, a program OpenMoat cannot read | Approve if it is what you expect |
moat: review [package-near-miss] — looks like a typo of a popular package's name |
The name is one typo from a popular package | Check the name (Install and publish) |
moat: review [docker-secrets] — hands secrets, the SSH agent or the host to a build |
docker build --secret, --ssh, --network, … |
Approve if the build needs it |
moat: review [session-taint] |
The session read a secret or untrusted content earlier | Session taint |
moat: review [push-runs-later], [push-unchecked] |
A tainted session’s push changes a CI or hook file; a push OpenMoat could not check in 10 s | Push from your own terminal |
moat: review [unchecked], [unparseable] |
OpenMoat sees only part of the call, or cannot read part of it | Approve if it is what you expect |
A deny whose message says to run openmoat allow --last |
A review on an agent that cannot show a prompt (Codex, Claude Code in bypassPermissions, the Cline CLI, goose, …) |
openmoat allow --last, then ask the agent to retry |
no decision within 30 s |
OpenMoat could not decide in time | Retry (details) |
The same messages with the one command that gets you moving again, for everyday work: Something was blocked.