Chapter 1 of 4
Why agents break things
Ask a desktop agent to free up disk space, and it will try to help. It finds a large folder, decides it looks unimportant, and reaches for the delete tool. The folder holds a week of your work.
Whether you lose that work depends entirely on decisions made before the agent ever ran. Can it delete at all? Does it have to ask first? Can you undo what it did? This playbook is about making those decisions well.
The problem#
A chatbot that gives a wrong answer wastes your time. An agent that takes a wrong action changes your files, your systems or your money. Models will get better, but they will never be perfect, so the safety has to live in the code around the model, not in the model itself.
“The model proposes. The code verifies.”
Who this is for#
- Engineers building agents that call tools on real systems.
- Anyone running local models who wants to let them do more than chat.
- Teams deciding how much an agent should be allowed to do on its own.
What you'll learn#
- How to draw hard boundaries the agent can never cross.
- How to decide which actions need your permission and which don't.
- How to make every action reversible, so mistakes become cheap.
Remember
- Agents will make mistakes. Design for that, don't hope against it.
- Put safety in the code around the model, not in the prompt.
- The goal is cheap mistakes, not zero mistakes.