Agent Powered Solopreneur Join free

How to build an AI agent that does real work

Updated: 25 November 2026

To build an AI agent, start from one job with a clear done-condition, not from a framework. Then add, in this order: the tools the job needs, the loop that runs them, a stop rule, a check that does not depend on the agent’s own word, and the gate where a human decides. A model with tools becomes an agent that does real work only when all six are written down.

On 24 November 2026 at 18:49 UTC I pasted one script into a new ad account. It ran with 0 errors and created 6 campaigns, all paused. At 19:03 UTC the ads agent of my service business ran his hourly tick, found his launch checks green, and switched the campaigns on. Fourteen minutes, and he asked me nothing. His plan was six days old by then. The launch had waited for me to open an account.

What should an AI agent’s first job be?

One job I can say in a sentence, with a result I can check without asking him. For the ads agent the job is: run paid search and paid social for the business, meaning campaigns, negative keywords, pausing, and a report after each wave.

Before any spend he wrote the plan: who buys, which channels, and what would make him stop. While scouting he found that the business had no conversion tracking at all. We could not have measured a result. So the tracking was built before a cent went out. A framework does not ask that question. A done-condition does, because “done” has to be something a machine can see.

Anthropic’s engineering team gives the same advice in its post Building effective agents (19 December 2024):

“we recommend finding the simplest solution possible, and only increasing complexity when needed.”

The same post suggests starting with the model’s API directly and, if a framework is used, understanding the code under it. I’m small, so I pick the plain version: a file, a scheduled script, and a model call when there is something to judge. Whether you need more is the subject of the guide on AI agent frameworks.

The six parts, shown on one real agent

Job → tools → loop → stop rule → check → human gate. Here is each part for the ads agent, marked as rule or judgment.

Part What it is for the ads agent Rule or judgment
1. Job Paid search and paid social: campaigns, negative keywords, pausing, a report after each wave Fixed before the first run
2. Tools One config file that says what the ad account should look like; a script inside the account that makes the account match the file and reports the numbers Rule
3. Loop An hourly tick for the rules; the model once a day, and only when there are new search terms to judge or a verdict is due Rule wakes it, judgment on demand
4. Stop rule An ad group with many clicks and no lead is switched off; a ceiling on cost per lead; a cap per platform; a scale, trim or stop verdict on a fixed day Rule
5. Check Four launch checks: outbound mail works, tracking is proven end to end, at least one channel is connected, the ad copy passes a lint Rule
6. Human gate Creating the ad account and its payment card; any change to copy, keywords or budget Human

Count the rows where the model decides: one, and only part of it. Most of a working agent is not the model.

Tools: one file is the truth

The ads agent does not click around in the ad account, and neither do I. One config file says what the account should look like, and every hour the account is made to match it. Nobody edits the account by hand. A change to copy, keywords or budget is a code change, made in a session I attend.

Loop: what wakes him, and how often

The Claude Code documentation describes the loop inside one agent run as three phases, gather context, take action and verify results, in its page How Claude Code works. That is the inside. The outside matters as much: for the ads agent the clock wakes a script every hour, and the model is called only when there is something to judge. Triggers and stops have their own page, the guide to the agent loop.

Stop rule and check: written before the first run

Each ad group has a limit after which it is switched off without a meeting. The thresholds exist and I do not publish them. They were in the plan before the launch, not added after a bad week.

He may switch the ads on himself, but only when four checks are green, and each is something a script can test. Where a check could not be run for real, the record says so. Another ad channel was built from the platform’s documentation against a fake server, and it is labelled not proven until a real account answers. The test suite of the service grew from 37 tests to 68 between 18 and 24 November, one feature at a time.

The human gate: narrow and exact

I got this part wrong on another role. The customer agent answers the people who write to the business, and his first role file sent everything outside the price sheet to me. Then the first order came, and I had to open sessions and approve again and again. I was the bottleneck. The rule was rewritten the next day, 24 November: he handles every customer conversation alone, and only a custom quote waits for me. Refunds, invoices, money already paid and legal requests stay mine, after a short holding reply from him.

He needs no approval per email, but every email he sends and every customer reply is posted in full to a chat group I read. His role file also says that being unsure is not a reason to hand over: measure, decide, answer. And it forbids claiming a check he did not make.

The order I would follow again

  1. Write the job in one sentence and the done-condition in a second one.
  2. Give him the fewest tools that reach the done-condition, and one file that holds the truth.
  3. Choose what wakes him: a clock for rules, an event for judgment.
  4. Write the stop rule before the first run.
  5. Add a check that a script can run, and label anything not yet proven.
  6. Draw the human gate narrow: money, new accounts, signing, anything that cannot be undone.

One habit sits under all six: every live change in my records carries a snapshot and a written step to revert it. The rules that grew around that habit are the subject of the agent harness guide, and the wider question of rules versus judgment is in agentic automation for a one-person business.

What this agent has not shown yet

Results. The campaigns went live on 24 November 2026, and as I write there is no click, spend, lead or order figure in the records. The numbers in the plan are assumptions to test, not a forecast. The approval path for custom quotes is built and tested, and has not yet met a real customer.

I write these guides at Agent Powered Solopreneur (agentpoweredsolopreneur.com) from the records of that one business, zeros included. The other guides sit under AI agent workflows. A course, The One-Person Agent Team, is planned and is not open yet.

FAQ

Do I need a framework to build an AI agent?

Not to start. Anthropic’s post suggests beginning with the model’s API directly. My ads agent is a config file, an hourly script and a model call when there are new search terms to judge. A framework earns its place when you can name the part you would otherwise write yourself.

How long does it take to build an AI agent?

I have no hour count, so I will not give one. What the records show for the ads agent: the plan is dated 18 November 2026 and the launch 24 November. The launch waited those six days on accounts only I could open.

What should an AI agent never decide alone?

In my business: paying, creating an account, signing a document, sending outreach to real people, and anything that cannot be undone. Reversible work on things I own, he decides, with a snapshot first. The gate is short on purpose, because every item on it waits for me.

Fourteen minutes for him, six days for me. Build the agent, then build around the human.

Join the community. Free.

The build log, the agent and the four lessons.

Joining today puts you on the build-log email list. The agent, the course and the community are not open yet. Sent with beehiiv under the name Poseidon Hai; unsubscribe with one click. Privacy.