Write the "never" list before the agent writes code

We let AI agents work on the repository that manages every laptop in the company. That only works because we wrote the "never" list before they wrote any code.

Before an agent goes near infrastructure, decide what it may never do. Write it down, together with what it should do instead.

Never push, tag, release, or deploy without my go for that action.
Never run commands on a real device or server. Give me the command.
Never edit a generated file. Put the change in the generator.

A "never" rule works when it names the action exactly. "Be careful with production" doesn't count. The agent can't do anything with that.

It also has to say what to do instead. "Give me the command" keeps the work moving, where a plain "don't" just leaves the agent stuck.

And look at the words "for that action" in the first line. A yes for one push is not a yes for the next one.

So the agent writes and a person pulls the trigger. Whatever the agent wrote is in Git, where you can review it and revert it.

0%