Maiden Cube
Menu
← All insights AI agents · Maiden Cube Engineering · November 2026

Giving AI agents permission to act: the guardrails we build in

An AI agent that can send emails, update records or place orders is far more useful than one that only chats. It is also far riskier. These six rules let an agent do real work without doing real damage.

1. Give each tool only the access it needs

A tool that reads orders shouldn't be able to cancel them. Keep read and write tools separate, and scope each one to the smallest set of data and actions its job requires.

2. Ask before anything you can't undo

Sending a message, issuing a refund or deleting a record should wait for a person to confirm. The agent prepares the action; a human approves it.

3. Enforce limits in code, not in the prompt

"Never refund more than ₹10,000" belongs in the tool's code, where the model can't talk its way around it. Prompts guide behaviour; code enforces rules.

4. Treat data as data, never as instructions

An email or web page the agent reads may contain text that looks like a command. The agent should never follow instructions found inside the content it is working on.

5. Log every call

Record what the agent did, with which inputs, on whose behalf and when. When something goes wrong, the log shows exactly what happened.

6. Start narrow, then widen

Launch with one well-defined job and a few tools. Add more once the first job runs reliably on real tasks.

Planning an agent that can act on your systems? See our agent work