Monitor and limit agent actions
Set rules for commands, file access, and tool calls on the machines where your agents run. Each host evaluates rules locally and can block supported actions when you enable enforcement.
Delete the home directory
Codex on build-runner-02
Local rule matched
Recursive deletion of root or home
How it works
Pair the agent host
Register a host through MCP and pair it with the one-time token.
Set the rule mode
Set a rule to monitor or enforce through MCP. The host applies it locally.
Review alerts
Ask your agent to read the alert through MCP for the rule and redacted evidence.
What you get
See the redacted alerts your team gets when a Pi command contains sensitive data or an agent tries to read an environment file.
Client: Pi on support runnerRule: PII or PHI in tool argumentsEvidence: Patient ID [redacted]Mode: EnforceDecision: Denied before executionWebhook event: agent.action_blockedThe monitoring workflow receives the block, and the team switches the support task to a synthetic record.
Use cases
Frequently asked questions
More reading
- Blog
Why coding agents need controls around commands and files
Examples from coding agent assessments trace hostile repository content and package scripts into command execution, secret theft, and broader infrastructure access.
- Blog
Why terminal output needs a clipboard permission check
Research on affected Warp builds shows how terminal output could read or overwrite the clipboard without a permission prompt.