Stopping Dangerous AI Agent Actions Before Execution
OpenSource For U, Friday, November 20th, 2026
A pre-execution policy layer on Linux can allow, deny or send for review an AI agent's tool calls before they run.
The article describes a control pattern that checks an AI agent's proposed actions before they reach the shell or filesystem, rather than logging them afterward.
Each tool call is normalized into a deterministic record and a policy returns allow, deny or require review, keeping the decision outside the model.
The author recommends treating each tool as a capability, using deterministic rules or an engine such as Open Policy Agent instead of another language model, and reserving human review for high-risk actions like force-pushes or credential reads.
Agent-level policy should be layered with Linux controls such as containers, seccomp, AppArmor and SELinux, and tested like code, and HOL Guard is named as an open source implementation of the pattern.