Talk this topic through with an AI

You get an answer from the documentation and the page it comes from.

exec0

How exec0 checks tool calls

exec0 checks every tool call an AI agent makes before it runs, on the device. This page lists what is checked, how a decision is made, which rules apply without the model, and what is stored where.

~5 min read · exec0

What is checked

ToolCheckedNote
BashyesShell commands
Write, Edit, NotebookEdityesFile writes and edits
WebFetch, WebSearchyesWeb requests
MCP toolsyesEvery call to an MCP server
Read, Grep, GlobpartlyHarmless reads pass without the model. Sensitive paths such as SSH keys, .env or agent settings are checked. What the agent read is context for the next check.
SubagentsyesTheir own tool calls are checked like any other
AgentStatus
All popular coding agents, including Claude Code, Codex, Cursor and Gemini CLIsupported

What the check sees

InputContent
RequestThe last request you sent the agent
SessionEarlier tool calls of the same session: Name and truncated arguments
Read contentThe content of the last file, web page or MCP response the agent read
CallTool name and arguments of the call about to run

Decisions

DecisionWhenEffect
allowNo sign of harmThe call runs.
askThe case is unclearThe window “poison0 agent: exec0 safeguard” appears in the foreground, with Block preselected. The call waits for your answer, at most 40 seconds. You confirm Allow with an administrator sign-in.
blockA fixed rule matches, or Melira AI sees clear harmThe call does not run. The agent receives the reason.
The call counts, not who asked for it. A clearly harmful call is blocked whether it came from a web page, a file, injected text or your own request, and without asking first. Clear harm: Data sent to a third-party destination, a security function switched off, credentials taken, destruction.

Fixed rules

Checked first, without the model. A match blocks at once, even when the engine is not running. An administrator can lift such a block once, see Confirming Allow, or with poison0 exec0 allow.

RuleExample
Delete the root, home or system foldersrm -rf on /, ~ or /usr
Format or overwrite a disk, write to /devdd onto a disk device
Run code from the internet directlycurl … | sh
Export the system keychainsecurity dump-keychain or security export
Send a secret to a third-party hostA GitHub token sent to example.com. The same token sent to api.github.com is not blocked by this rule.

Calls that are sometimes legitimate go to Melira AI with a note instead:

  • Writing agent settings and hooks
  • Writing to credential folders, for example ~/.ssh/authorized_keys
  • Force push to main or master

Confirming Allow

You can allow two kinds of case: A question (ask) and a block by a fixed rule. Both take two steps. Both windows are titled “poison0 agent: exec0 safeguard”.

StepWhat happens
1. PoisonZero windowAppears in the foreground and names the product, agent, command and reason. Block is preselected: One click, no password.
2. Administrator sign-inOnly if you choose Allow does the operating system's sign-in window appear right away in the foreground. Then exactly this call runs, once.
Operating systemSign-in window
macOSThe macOS system window with Touch ID or password
WindowsThe “Windows Security” window with the PoisonZero text. If a PIN or fingerprint is set up, Windows offers it there.
LinuxThe polkit system authentication. PoisonZero never sees the password.

Allowing a blocked call once

If exec0 blocked a call you need, you can let exactly this call run once, after an administrator sign-in. Every exec0 block message names this command. Run it in your own terminal, not through the agent: exec0 and leak0 block it from agent shells.

CommandEffect
poison0 exec0 allowAllows your most recent blocked call once
poison0 exec0 allow --listShows your blocked calls of the last 10 minutes, each with its ID
poison0 exec0 allow <id>Allows exactly this call once
sudo poison0 exec0 offSwitches exec0 off. Windows: poison0 exec0 off in a terminal run as administrator

The approval fits exactly this call: Same tool, same arguments, same folder, same agent session. It is valid for 10 minutes, and the first matching call uses it up. A changed call stays blocked.

Operating systemSign-in
macOSThe system window for an administrator, in a desktop session. Over SSH: sudo poison0 exec0 allow
WindowsName and password of a local administrator, in the terminal
Linuxpolkit, as a system window or in the terminal, also over SSH

With sudo no further sign-in is needed.

Settings

You set how exec0 intervenes during onboarding.

Timeouts and errors

SituationResult
No answer in the dialog within 40 secondsblock
Dialog closed or dismissedblock
Sign-in cancelled or wrong passwordblock
Fixed rule matches while the engine is downblock
Model not ready or engine unreachable, no rule matchesProtection: block; with poison0 exec0 fail open the call runs. Observe: The call runs and is counted.
Same rule as for memory changes: No answer is a no. See answering the dialog and fail-closed.

Availability

ItemValue
ActivationOptional, set during onboarding
AgentsAll popular coding agents
RequirementEnterprise. Runs on the CPU of the device on macOS, Linux and Windows, no GPU needed.

Privacy

DataCloud modePrivate mode
Call content: Command, arguments, file paths, file content, URLOn the deviceOn the device
Request, session, read contentOn the device, per sessionOn the device, per session
Allowed calls (allow): Entry in the local journal, without contentOn the deviceOn the device
Interventions (block, ask): Audit entry, without contentOn the device and in the consoleOn the device

An audit entry holds only these fields:

FieldContent
TimeWhen the intervention happened
Actionblock or ask
ToolOnly the tool name, for example exec0:Bash
ReasonName of the fixed rule, or Melira AI
CategoryName of the detected category
Danger valueValue from 0 to 1, when Melira AI decided
Never in the audit: Command, arguments, file paths, file contents, URLs or your request. In Private mode, the audit does not go to the console either; the device only fetches its license about every 30 days.

Full list: What Cloud mode sends.

exec0 and inject0 Gateway

inject0 Gatewayexec0
ChecksContent, before an agent reads itActions, before an agent runs them
RunsAs a service at api.inject0.comOn your device
AnswerDanger value from 0.000 to 1.000allow, ask or block