How to build a system in the vibe coding era · Site post

How do you put an AI agent inside the product? First decide what it may do.

Today almost every system wants AI inside: a chat that answers customers, an agent that schedules meetings, an assistant that reads emails and drafts replies. And technically, it has never been easier. You connect a model, give it a few tools, and it works.

A post written for the site. Beside it, the lines I want to stay with you after reading.

But the moment AI enters the product is different from everything before it. Until now, every action in the system started with a person who clicked something. From now on, there's someone in the system who acts on their own.

What an agent is, in one line

A language model that was given tools: to read data, send messages, change things. It decides on its own which tool to use and when, based on what it read and what it was asked.

An agent doesn't make decisions instead of you. It makes every decision you didn't make.

Decision 1: answers, or also acts

A customer writes at two in the morning: "Can I cancel yesterday's booking and get a refund?" What the agent answers now is your policy. Did you decide it? The full case here.

There are three ways, and each has a price:

  • Answers only. Explains and refers, doesn't touch data. Zero risk of a wrong action, but the customer still does everything alone.
  • Acts from a list. It may cancel, reschedule, refund up to a set amount. Everything else goes to a person. This requires writing the list, and a log of everything it did.
  • Acts freely. Everything the system allows. Fastest to set up, and most expensive to fix.

The middle way is usually the right one. Not "no agent", but an agent with a list someone signed.

Decision 2: what it reads, and what that can make it do

An agent that reads emails reads everything, including a hidden line inside a supplier's invoice that a person doesn't see at all. And if that line tells it to send something out, it may try. The full case here.

You can't filter every hidden instruction. So the decision isn't how to filter, but what it may do with what it read: draft for a person to send, or send on its own. And if it sends on its own, it can't see sensitive data. I also wrote about it here.

Decision 3: what it costs, and what happens when it doesn't stop

Every call to the model costs money. And unlike any other part of the system, an agent can get into a loop: try again, read again, send again. Without a cap, one loop at night can burn a month's budget. The quota case explains what needs deciding before that happens.

What's a pipe and what's a wall

  • Pipe: which model, the wording of the instructions, the tone. All of these change every month, and that's fine.
  • Wall: what the agent may do without a person, what it sees, what it can send out, and who's responsible when it's wrong. Once a customer has received an answer or an action from the agent, that's your policy, whether you decided it or not.

What to ask the AI

Before you build the agent, write me three lists: what it may do on its own, what it may only suggest to a person, and what it must never do. For every tool you give it, the worst thing it could do with it. And build a log of every action it takes, on whose behalf and why.

How you know it holds

  • Ask the agent for something on the "never" list, in a clever phrasing. It refuses.
  • Send it a document with a hidden instruction. It doesn't carry it out.
  • Check the log: you can tell what it did yesterday, on whose behalf and why.
  • Hit the budget cap in a test environment. Something stops, and someone gets an alert.

The right agent isn't an agent without limits. It's an agent whose limits someone signed.

Previous in the series: money. Next: going live.

A question for you

If your agent gets a request tomorrow you didn't think of, what will it do?

Did a post meet you in your system?

Half an hour, the system open, free. You leave with your open decisions.

or on WhatsApp, if it's a single question. Nothing is stored on the site.