01 est. 20 min Free preview

Foundations: what an agent actually is

Module 01 · Free preview · est. 20 min · You’ll walk away with: the one mental model that separates a chatbot from a production agent — and a checklist to tell which one you’re actually building.

TL;DR: An agent isn’t a smarter chatbot. It’s a loop: a model that decides, tools that act, and a trigger that fires without you. If your “agent” can’t take an action in the real world and can’t run when you’re asleep, it’s a chatbot with a costume on. This lesson gives you the model I use to design every one of the 30+ agents I run in production — strip out the marketing, and the whole thing fits on an index card.

[Operator’s read] I’m writing this from inside the agent systems that actually run my businesses — a pickleball facility in Texas, a handful of content sites, my own inbox. Not a demo I built for a slide. What follows is the model I wish someone had handed me before I wasted three weekends building things that didn’t work.


Why this lesson is free

Because if I can’t teach you the foundations in 20 minutes and have you nodding, you shouldn’t pay me for the other seven modules. This is the filter. Read it, build the mental model, and decide if the rest is worth $199. (It is. But you tell me.)

Most of what gets called an “AI agent” in 2026 is a chatbot with better marketing. A box you type into, it types back, the end. Autocomplete with a personality.

Once you see the difference, you can’t unsee it, and you’ll stop paying for tools that promise “agentic AI” and deliver a glorified FAQ.

The definition, stripped of the marketing

An agent is three things in a loop:

  1. A model that decides — the LLM (Claude, in my case) that looks at a situation and picks what to do next.
  2. Tools that act — code the model can call to do something real: send an email, post to Instagram, read a database, hit an API, run a shell command.
  3. A trigger that fires — the thing that starts the loop without a human babysitting it. A cron schedule. A webhook. A new row in a table. A 7am alarm.

That’s it. Decide, act, fire. If you have all three, you have an agent. If you’re missing one, you have something else:

  • Model + tools, but no trigger = a copilot. Useful, but it only runs when you’re sitting there poking it. (This is most of what people call “agents.” It’s Claude Code waiting for you to type.)
  • Model + trigger, but no tools = a scheduled chatbot. It can think on a timer but can’t do anything. Generates a report nobody asked for, into a void.
  • Tools + trigger, but no model deciding = a plain old script. A cron job. Zapier. Fine! But there’s no intelligence in the loop — it does the exact same thing every time, and the second reality changes shape, it breaks.

What makes agents worth the trouble is the combination: a model deciding, with real hands, on its own schedule. That’s an employee who works for cents a run and never sleeps.

The chatbot vs. agent test (memorize this)

Two questions. Ask them about anything calling itself an agent:

Question 1: Can it take an action in the real world that outlives the conversation?

Writing the email doesn’t count. Can it send the email? Can it move money, change a record, publish a post, file a ticket, place an order. If the only output is text on your screen that you then have to act on yourself, it’s a chatbot. The action is the whole point. Text is cheap. Consequence is the product.

Question 2: Can it run when I’m asleep?

If the answer requires you to be present — to click “go,” to paste context, to approve each step — you have a copilot. Copilots are great. I live in one (Claude Code) all day. But the leverage of an agent comes from it firing on its own. My morning brief agent runs at 6am whether I’m awake or not. My LMNT reorder agent notices I’m low and reorders before I think about it.

Run anything through those two questions and you’ll instantly know what you’re dealing with. Most “AI agent” SaaS fails both. A lot of “agents” people are proud of fail the second one — they’re copilots, and that’s fine, just call it what it is.

The mental model that scales: the loop

Here’s the index-card version. Every agent I run, no matter how complex, is this loop:

code
TRIGGER fires
  → AGENT gathers context (reads the world)
    → MODEL decides what to do
      → TOOLS execute the action
        → AGENT checks the result
          → repeat until done, or stop and report

Read it again. Trigger, context, decide, act, check, repeat. That’s the skeleton of every agent on earth, from my “reply to Google reviews” agent to the trading systems hedge funds run. Toys and production systems run the same loop. What separates them is how well each step is built.

Let me make it concrete with one of mine. My Pickleland event-promo agent:

  • Trigger: runs on a schedule, a few days before events.
  • Context: reads our event calendar from PlayByPoint (our booking system), sees what’s coming up with open seats.
  • Decide: the model figures out which events need promotion, what the angle is, which audiences to hit.
  • Act: drafts a bundled email, drafts targeted Facebook group posts matched to each event.
  • Check: it stops there and hands me drafts. Nothing sends without my “yes.”
  • Repeat: next run, it does it again, learning nothing it doesn’t need to.

Notice the check step ends in a human gate. I chose that on purpose. Some of my agents send straight to production (my morning brief, my AI-trends digest — low stakes, just for me). Others draft and wait (anything that talks to customers or spends money). Knowing where to put the human gate is half the skill, and it’s Module 06.

The three things beginners get wrong

I’ve now built and rebuilt enough of these to see the same three mistakes every time. Avoid them and you’re ahead of 90% of people calling themselves “AI engineers.”

Mistake 1: Trying to build one agent that does everything.

The instinct is to build “an AI assistant for my business.” Don’t. That agent will be mediocre at twelve things and break constantly. The winning move is one agent, one job. My event-promo agent promotes events. It doesn’t also answer DMs or reorder supplements. Each of my 30+ agents is embarrassingly narrow. Narrow is why they’re reliable. (Module 03 is entirely about this — the four shapes a narrow agent takes, and the trap of trying to be all four.)

Mistake 2: Confusing “it works once” with “it works.”

You’ll build something, run it, it’ll work, and you’ll feel like a genius. Then it’ll run the next day with slightly different input and produce garbage. An agent that works once is a demo. An agent that works the 200th time, on input you didn’t anticipate, is a product. The gap between those is evals, error handling, and monitoring — the unsexy stuff (Modules 04 and 06) that separates people who talk about agents from people who run them.

Mistake 3: Thinking the model is the hard part.

The model (Claude) is the easy part. It’s smart, it’s cheap per run, and it gets better every few months for free. The hard part is everything around it: giving it the right context, the right tools, the right guardrails, and a place to run. You will spend 10% of your time on prompts and 90% on plumbing. That’s the job. If a course is all “prompt engineering” and no plumbing, it’s teaching you the 10% and skipping the part that makes money.

You don’t need Python (and other liberating facts)

Let me clear some debris that keeps beginners stuck.

You don’t need Python. Everyone assumes AI work means Python. I don’t write Python. I run my entire agent fleet on TypeScript, shell scripts, and prompt files. That’s it. If you can write a bash script and read a bit of TypeScript, you can build everything in this course. (Why? Because my world is web — Cloudflare, Astro, GitHub Actions — and TypeScript lives there natively. Use the language your infrastructure already speaks.)

You don’t need a GPU, a vector database, or “fine-tuning.” Those are answers to problems you don’t have yet. For 95% of real business agents, you call an API and you’re done.

You don’t need a CS degree. You need to understand the loop and be willing to debug. That’s a craftsman’s skill.

You don’t need to “train a model.” You’re directing one that already exists, the way a manager directs a very fast, very literal employee. Your job is delegation.

Four ways to build one today

The loop is always the same. In late 2026 there are four ways to get it running, and they differ on two questions: who writes the loop, and who hosts it.

  1. Your own loop on the Messages API. You write the while loop yourself: call Claude, run the tools it asks for, send the results back, repeat. About 70 lines of TypeScript, hosted anywhere Node runs. Module 02 teaches this first, because once you’ve seen the loop you can debug any of the other three.
  2. The SDK’s Tool Runner. Same API, but Anthropic’s TypeScript SDK runs the loop for you (client.beta.messages.toolRunner). You write the tools; it does the plumbing. It’s a beta feature, and you still host it. You’ll see it at the end of Module 02.
  3. Claude Managed Agents. Anthropic hosts the loop and a sandbox the agent works in, with a shell, files, web access and code execution. You create a versioned agent once, start a session for each run, and it can fire on a cron schedule with no server of yours involved. It’s in beta, it bills session runtime on top of tokens, and session history stays on Anthropic’s side until you delete it. Modules 03 and 07 cover it.
  4. The Claude Agent SDK. Claude Code packaged as a library (@anthropic-ai/claude-agent-sdk), with file editing, bash, search, subagents and hooks built in. You host it. It fits when the job looks like “work through a folder or a codebase the way Claude Code does.”

Which one, honestly. Start by asking whether you need an agent at all. If the steps are fixed (read the calendar, summarize, post to Slack, in that order, every time), one model call inside an ordinary script is cheaper, faster and easier to debug. So is a fixed chain of calls, which is called a workflow. An agent earns its extra cost when the model has to choose which tools to call and how many times, because you can’t write the steps down in advance. The digest agent you’ll build in Module 02 sits close to that line, and that’s a fine place to start.

When it really is an agent:

  • Learning, or you want no beta dependencies: your own loop.
  • You host it and don’t want to maintain the loop: the Tool Runner.
  • It runs on a schedule or for a long time, needs a workspace, and you’d rather not run infrastructure: Managed Agents.
  • Its job is file and code work on your own machine or server: the Agent SDK.

The model choice is simpler. Default to claude-opus-5-5, Anthropic’s current recommendation, and drop high-volume, simple steps to claude-haiku-5-5, which costs a fortieth as much per token. claude-sonnet-5-5 sits between them. claude-fable-5-2 is the top model, for the hardest long-horizon work, at twice Opus’s price. Module 06 does the math.

What “production” actually means

I keep saying “production agent” like it’s a special thing. It is. A production agent has four properties a demo doesn’t:

  1. It runs on a trigger you didn’t fire. Cron, webhook, event. Not your finger.
  2. It handles inputs you didn’t anticipate without face-planting. The calendar’s empty? It says so and stops. The API’s down? It retries or reports. It doesn’t hallucinate a confident wrong answer.
  3. It tells you when it’s wrong (or when it’s unsure). It has a way to flag low confidence and escalate to a human. An agent that fails silently is worse than no agent.
  4. You can see what it did. Logs. A report. A Slack message. If an agent runs and you can’t tell what happened, it’s a liability.

Hold those four up against any “agent” demo on Twitter. Most have zero of them. They’re impressive on stage and useless on Monday.

Hands-on lab

You don’t need to build anything yet — that’s Module 02. For this lab, you’re going to think like an operator, which is the actual prerequisite.

Step 1 — Audit your day. Open a note. List every recurring task in your business that (a) follows a pattern, (b) takes you under an hour, and (c) you do at least weekly. Don’t filter yet. I want 10+ items. (Mine, early on: “promote upcoming events,” “reply to reviews,” “summarize last week’s marketing numbers,” “reorder supplements I keep forgetting.”)

Step 2 — Run each through the two-question test. For each task, ask: Does it require an action in the real world? and Could it run while I sleep? Mark the ones that score yes/yes. Those are your agent candidates. The ones that need your judgment in the moment are copilot candidates — still useful, but different.

Step 3 — Map your top candidate to the loop. Pick the single best yes/yes task. Write out its loop on one line each:

  • Trigger: what would kick this off?
  • Context: what does it need to read first?
  • Decide: what’s the judgment call?
  • Act: what’s the real-world action?
  • Check: how would you know it worked — and where’s the human gate?

If you can fill in all five lines, congratulations: you’ve just designed your first agent. In Module 02 you’ll build exactly this one, in 30 minutes, by copying a repo I hand you. Keep this note — it’s your spec.


What’s next

You now have the model. Here’s what the paid modules turn it into:

  • Module 02 — Your first agent in 30 minutes. Copy my starter repo, wire it to Claude, and ship the agent you just spec’d. Working code, today — then the same agent with the SDK running the loop.
  • Module 03 — The four agent patterns that ship. Polling, event-triggered, scheduled, conversational. Pick the right shape so you never build the wrong thing, and learn when a team of agents is worth it.
  • Module 04 — Memory, tools, evals. Give your agent a memory that survives restarts, hands that don’t break (including MCP servers and Anthropic’s hosted tools), and a way to know when it’s wrong.
  • Module 05 — Prompting for production. Why the prompts you write for ChatGPT collapse the moment they run unattended — and the structure that doesn’t.
  • Module 06 — Cost, latency, security. The three things that kill an agent before features ever do. Where to put the human gate. How to not wake up to a $4,000 bill.
  • Module 07 — Shipping it. Cloudflare Workers, Pages Functions, GitHub Actions, cron, and Managed Agents scheduled deployments. The boring infra that makes agents actually run.
  • Module 08 — Case studies: my 30+ agents. Every agent I run in production, broken open. The wins, the failures, the rebuilds. Steal what you need.

Six hours. One weekend. The same playbook running my businesses right now. If you finish Module 01 and don’t think the rest is worth it, the refund button is right there. But I think you already know which yes/yes task you’re going to automate first.

Enroll, and let’s build it.

↵ ↵ to see all results esc esc to close