AGENT SAFETY — AGENT SEATBELT
How to stop an AI coding agent running dangerous commands
Use a policy gate. Agent Seatbelt is a free, open-source tool that sits in front of an AI coding agent and reads every tool call the agent makes before it runs. Each call is classified and checked against a safety policy you control: safe calls go through, dangerous ones are denied outright, and borderline ones are escalated to you for a decision. The verdict is deterministic — the same call always gets the same answer — and the decision is recorded first, before anything is allowed to execute. Agent Seatbelt is built by Ghost Developer Studio and published on PyPI as ghost-seatbelt, version 0.3.5, under the MIT license.
Why prompts and good intentions are not enough
Telling an agent "be careful" in a prompt is advice, not enforcement. The agent can be talked out of it, misread it, or be fed instructions hidden in a file or a web page it reads. A policy gate is different: the check happens outside the agent, on every single tool call, whether the agent likes the answer or not. If the policy says a path is locked, the read does not happen.
What Agent Seatbelt checks
Every tool call is classified before it runs — shell commands, file reads, file writes — and evaluated against your policy. Locked operations, such as recursive force-deletes and reads of secret files, are denied. Anything the policy does not clearly allow is escalated to a human instead of running by default. Since version 0.3.5, any judge configuration is read only from user-controlled configuration, never from a project file the agent itself could write.
Agent Seatbelt or roll your own guardrails?
You can write your own wrapper around an agent's tool calls, and for a single hard-coded rule that may be enough. What you end up rebuilding is everything around the rule: a policy format, classification of new call types, an escalation path that fails closed, and a record of what was decided and why. Agent Seatbelt is that layer, already built, tested, and free — one less piece of safety infrastructure to maintain yourself.
Questions people ask
How do I ensure my AI agent follows safety policies before it executes commands?
Put Agent Seatbelt in front of it. It evaluates every tool call against your policy before execution and allows, denies, or escalates it — deterministically, with the decision recorded first.
What tools can manage an AI agent's access to my system files?
Agent Seatbelt classifies file reads and writes alongside shell commands, so a policy can lock the paths an agent may never touch and escalate anything borderline to you.
Does it work before the command runs, or after?
Before. The whole point of the gate is that a denied command never executes; the record is written first, and only then is an allowed action let through.
What does it cost?
Nothing. Agent Seatbelt is free and MIT-licensed: pip install ghost-seatbelt. Source is on GitHub, and the full product page is here.