least contex Get a quote

How to build an AI agent: start with the room

November 19, 2026

There are a hundred guides on how to build an AI agent. Most of them start with code. Pick a framework, connect a model, add some tools.

Start somewhere else. Start with the room.

You might not need an agent

Anthropic, the company behind Claude, draws a useful line between two things. A workflow follows a path you wrote in advance. An agent decides its own steps as it goes.

Their advice is to find the simplest thing that works and only add complexity when you need it. A lot of "agents" would be better as workflows. Read this email, pull out the order number, look it up, draft a reply for a person to approve. That's a workflow. It's easier to test and harder to break.

Use an agent when the steps really can't be known ahead of time.

Seven steps, starting before step one

1. Write the job in one sentence. If it takes a paragraph, it's more than one agent.

2. Do it by hand once. Walk through the job yourself. Note every file you opened and every decision you made. That's your spec.

3. List what it needs to see. Only those files and systems. Everything else stays out.

4. Give it tools with the least access. Its own keys, read only where possible, nothing that can delete or pay.

5. Build the check. How will you know the output is right? Write that check before you write the agent.

6. Run it on real cases. Not the easy demo. The messy ones from last month.

7. Widen slowly. Add one tool or one permission at a time, once it's earned it.

The hard part of building an agent isn't the code. It's deciding what it doesn't get.

Any model, same rules

This works the same whether you build with Claude, ChatGPT or Copilot. The model will change. The room you give it is yours to design.

For the two ideas underneath this, read least privilege for AI agents and what context engineering is.

Sources: Anthropic, "Building effective agents".