Researchers built AgentBouncer, a system that watches each command a software-writing agent sends to the computer. Before the command runs, the system asks two questions: does this command serve the task the agent was given, and is it safe? Both questions get a yes-or-no answer from a large language model acting as a judge. If either answer is no, the command is blocked. The paper tests AgentBouncer against SWE-bench, a standard set of coding tasks, and against published attack scenarios. The system blocks harmful commands at a high rate while letting benign work through with low disruption. Scoring necessity and safety as two distinct questions gives designers a clearer picture of what failed and why than a single pass-or-fail verdict. For designers, the finding that matters most is the judgment frame. Each command gets evaluated against the original brief the human set. That brief becomes a live reference point, not a one-time input. The system can catch drift before damage is done. That is a design pattern worth carrying into any product where an agent touches files, services, or external systems.