Sunday, July 19
What Is an Agent? Automation and AI, Defined
Transcript
Koko: Here is the one instinct this whole lesson is built on: before you argue about tools, vendors, or whether to build at all, you have to place the thing on the ladder. That single habit will save you from more bad projects than any framework you will ever learn. So let's build the ladder.
Max: The ladder meaning the different levels of automation? Because in my experience everyone in the room uses the words AI and automation like they mean the same thing.
Koko: Exactly the problem. The hype collapses a whole spectrum of designs into one shiny rung. Your job as an advisor is to un-collapse it. So here is the picture. Six rungs, from most predictable to most autonomous. Rung one: deterministic automation. A scheduled script, a rules engine — it runs the same fixed steps every single time. No model, no judgment.
Max: Like a cron job that fires an invoice at midnight.
Koko: Perfect example. Rung two: a single model call. One request, one response. A classification, an extraction, a summary. There is no loop, nothing feeds back in. Rung three: a retrieval assistant — often called RAG. It fetches relevant documents and answers a question, but the path is fixed and the actions are read-only. It cannot change anything.
Max: So a really good search box with a language model on top.
Koko: That is a fair description. Rung four: an LLM workflow. A chain, a router, a loop — the model does some of the thinking, but code still decides the path. Classify, then draft, then send. Someone wrote that sequence and froze it. Rung five: the bounded single agent. This is where things get interesting. At runtime, the model itself picks and sequences its own actions, calls tools, observes results, adapts. Inside hard limits, but the model is steering. And rung six: a multi-agent system. Several goal-directed agents coordinating with each other.
Max: Okay, so I want to make sure I have the real dividing line. It sounds like rungs one through four all use code to decide what happens next, and five and six are where the model takes the wheel.
Koko: You just said the most important sentence of this course. Who decides the next step — code, or the model? On rungs one through four, a person wrote the path and froze it in code, even when a model does some of the work. Only on rungs five and six does the model choose its own next move at runtime. That is the operational definition of an agent.
Max: Can you say that definition out loud in full? I want to be able to repeat it in a client meeting.
Koko: Here it is. An agent is a model-directed execution loop that selects and sequences actions, uses tools to affect or inspect an environment, observes the results, and adapts — inside bounded authority and explicit stop-or-escalate conditions. And here is the one-line version to keep in your pocket: workflows decide the path, agents decide part of the path, tools do the work, and policies decide what is allowed.
Max: I like that. Four things, clean. So what is the everyday picture for this? Because I will need to explain it to a CFO who has never touched a line of code.
Koko: A thermostat. It follows one fixed rule: too cold, turn on the heat. Now picture a facilities manager who walks the building, notices the west wing is empty today, and decides on the spot to close a vent and reroute the airflow. Both of them manage temperature. Only the second one chooses its own steps.
Max: And the thermostat is not dumb — it is just not an agent.
Koko: Right, and that matters. Deterministic automation is fast, cheap, and auditable. Do not upgrade it out of boredom. Now let's make this concrete with a case we will carry through the whole course. Northwind Logistics. Mid-size freight company. Customers dispute freight invoices — wrong weight tier, duplicate charge, damaged-shipment claim. Today a billing analyst reads each message, opens the invoice and the shipment record, decides whether a credit is owed, and replies. Leadership says, let's put an agent on this.
Max: And the instinct is to pause on that word.
Koko: Hard pause. Because same inbox, three different rungs. A known duplicate charge with a fixed rule — that is rung one. Deterministic automation, no model needed at all. A customer asking why a line item is priced the way it is — that is rung three. One grounded answer from the contract and the rate card. But a customer claiming the pallet arrived damaged, photos attached, asking for a partial credit across evidence from several systems — that needs judgment over messy, incomplete information. That is where rung five, a bounded agent, starts to earn its place.
Max: So the ladder is not about which rung is best. It is about matching the rung to the actual task.
Koko: Naming the rung settles most disagreements in the room on its own. Which brings us to the trap, because there is a very tempting wrong answer here.
Max: I can guess it. It uses a large language model, so it is an agent.
Koko: That is the trap exactly. A chatbot, a retrieval search box, a fixed classify-draft-send chain — all use a model, and not one of them is an agent, because code decides the path. And here is the other version of the same mistake: the plumbing tells you nothing. Saying we call two models or we use a fancy connector protocol says nothing about whether the model chooses the steps. Test the control path, not the vocabulary.
Max: Okay, that is genuinely useful in a due diligence situation. I am thinking about PE deal teams right now. A target company pitches a proprietary AI agent that autonomously resolves customer claims. That is a real thing I have heard in a data room.
Koko: Walk it down the ladder. If code decides every step and the model only drafts the reply, that is a rung-four workflow wearing an agent costume. Still possibly valuable — but not the defensible, hard-to-copy moat the deck implies. The tempting-wrong move in that data room is to take the word agentic at face value and price it as a moat. The ladder is your refusal to do that.
Max: So the instinct is: place it on the ladder before you price it or build it or argue about anything else.
Koko: That is the instinct. Name the rung first. Everything downstream — the risk conversation, the vendor choice, the build-versus-buy call — gets sharper once you have done that. One more thing before we move on. The course runs on a five-phase method. Align, Ground, Equip, Narrow, and Trace-and-Tune. This module lives in Align — deciding what outcome matters and whether an agent is even the smallest sufficient solution. The next two modules are still inside Align. Keep that word in mind.
Max: So we are not picking tools yet. We are still figuring out what we are even choosing between.
Koko: Exactly. And that restraint is what separates an advisor who builds something valuable from one who builds something impressive. Let's keep going.
Koko: So here is where most of the enterprise money gets quietly wasted. People call things agents that are not agents. Three things in particular.
Max: Three specific things?
Koko: Chatbots, retrieval assistants, and fixed LLM workflows. And each one is sneakier than the last.
Max: Okay, chatbots first. That one seems obvious — just a chat interface.
Koko: You would think. But the confusion is real, because a chatbot answers in natural language, which feels intelligent. The issue is that if it only responds turn by turn, with no ability to take actions and no self-directed loop, it is a single model call in a nicer wrapper. That is it.
Max: Right, it just talks. It does not do anything.
Koko: Exactly. Now retrieval assistants — the pattern behind most chat-with-your-documents products. Those look more powerful because they cite your own knowledge base. But the path is hard-coded: retrieve, then answer. Read-only. It never chooses to do anything.
Max: So the RAG pattern — retrieve-augmented generation — that is still not an agent.
Koko: Not even close. And then the sneakiest one: the fixed LLM workflow. This is where a model genuinely is making judgment calls — classify this dispute, draft a response, route for approval. Real intelligence at each step.
Max: That sounds pretty agentic, honestly.
Koko: That is exactly the trap. Because a person wrote that sequence and froze it. The model fills in the blanks. It does not decide what the blanks are. That is not an agent.
Max: Okay, so what is the actual test?
Koko: One question, and it never changes: who decides the next step? If you can draw the flow as a diagram a developer coded — box, arrow, box — it is a workflow. However much intelligence sits inside each box.
Max: And it becomes an agent when...
Koko: When the model, at runtime, decides which box comes next. That is the line.
Max: That is a cleaner distinction than I expected.
Koko: Here is the image that makes it stick. Think of an escalator versus a driver. An escalator carries you through a sequence someone else laid out — smooth, useful, utterly fixed. It cannot decide to turn left. A driver reads the road and chooses the route as they go.
Max: So a chatbot, a retrieval box, a scripted chain — those are all escalators.
Koko: Escalators with excellent motors. An agent is the driver. And the motor's horsepower — the size of the model — is not what tells them apart.
Max: Wait, so I cannot just use a bigger model and get an agent?
Koko: No. A more powerful model running a fixed sequence is a faster escalator. You still cannot turn left.
Max: So how does this play out when you are looking at a real workload? Like the Northwind inbox from before.
Koko: Let us split it honestly. Same charge billed twice on one invoice — that is a rule. Deterministic automation resolves it, no model at all.
Max: Pure logic, no language model needed.
Koko: Right. Then someone asks, why is this line item priced this way — that is a single grounded answer. Retrieval handles it. Then the intake step — reading an incoming email and tagging it duplicate, damage, or weight dispute — that is a model call inside a fixed workflow. Still not an agent.
Max: Even though it is using an LLM.
Koko: Even though. The sequence was written in advance. Only the messy damage claim — where the system must decide which records to pull, how to weigh them, how much credit to propose — only that crosses into agent territory.
Max: So out of the whole inbox, you are calling exactly one stream a genuine agent task.
Koko: And that is the instinct to build. When someone says we are building an agent, your reflex should be to ask what actually decides the order of operations. Nine times out of ten the honest answer reveals a workflow — and that is usually good news.
Max: Good news because workflows are cheaper and easier to test.
Koko: Cheaper, more predictable, far easier to control. The boring rungs produce most of the value. The trap is skipping straight past them.
Max: And the trap has a very specific shape in a boardroom, right?
Koko: It does. It sounds like this: our competitors have an agent strategy, so we need an agent strategy. That lands badly, because it skips the question of what the work actually requires.
Max: It sounds ambitious but it is actually just committing to the most expensive rung before you have shown the simpler ones fail.
Koko: That is exactly it. Most of a realistic roadmap is deterministic automation and retrieval. Leading with agents first buries the two or three things that are actually real underneath eight that are dressed up.
Max: Okay, let us make this concrete for the room I am usually in. Transformation lead at a large manufacturer. They are being sold agentic everything by a dozen vendors at once. What does the ladder actually do for that conversation?
Koko: Run the shortlist down the ladder in a single workshop. The picture usually clarifies fast. The invoice-matching tool is deterministic automation. The policy-lookup assistant is retrieval. The contract summarizer is a single model call. And exactly one of the twelve is a genuine bounded agent.
Max: One out of twelve.
Koko: Often. And now the budget conversation is honest.
Max: The tempting wrong answer — the one the room wants to hear — is yes, these are all agents, let us stand up an agent platform.
Koko: And that answer inflates cost, inflates risk, and buries the two or three things that are real. Your value as the advisor is naming which rung each one is actually on — and being willing to say that most of their wins do not need the top rung at all.
Max: That takes a certain amount of nerve to say out loud when the vendor in the room is calling everything agentic.
Koko: It does. Which is exactly why it is valuable. The same lens works inside a private-equity portfolio. A mid-market distributor might have AI initiatives on every function's slide. Placing each one on the ladder separates the two that could move earnings this year from the eight that are science projects dressed as agents.
Max: Board-grade defensibility.
Koko: That is the phrase. It comes from naming the rung, not the buzzword. And from being the person willing to say, on the record, that the exciting-sounding thing is a workflow. That is not a downgrade — that is the analysis.
Max: So the instinct here is: before you touch a budget or a roadmap, ask what actually decides the next step — and be honest about the answer even when the room does not want to hear it.
Koko: That is it. The ladder is not a vocabulary exercise. It is the frame that keeps the money going to the work that actually earns it.
Koko: So we have the ladder, we have the definition of an agent, and now we have one question left: how do you pick the case worth building — and set the bar before you fall in love with the build.
Max: And this is where Northwind comes in properly, right? We have been circling it the whole lesson.
Koko: Exactly. And it was not picked at random. Northwind was chosen because it has the full range on purpose. It has a trivially automatable case — the clean duplicate charge, nothing to argue about. It has a genuinely ambiguous case — the disputed damage claim, where judgment is actually required. And it has a consequential action: the ability to give money back.
Max: So the mix is the point. If you only had the easy case, you would never learn what agency actually is.
Koko: Right. A case with no judgment would not teach you agency. A case with no real-world action would not teach you controls. Northwind has both, which means it forces every hard question. That is what makes it a good teacher.
Max: Okay, so you pick a case that actually stresses the system. Not a showcase, a stress test.
Koko: That is the instinct. And by the end of working through Northwind, you should be able to say in one breath: whether it should be an agent at all — decided on the ladder, not by enthusiasm — and if so, exactly what it may decide, exactly what it may touch, how you will prove it works, and what one resolved dispute actually costs.
Max: One breath. That is a pretty high bar.
Koko: It is. And if you cannot say it in one breath, you are not ready to build.
Max: Okay, so the bar. You keep saying set it before you fall in love with the build. What does that actually mean in practice?
Koko: It means two definitions have to be nailed down before you write a line of code. First: should this even be an agent? That is a ladder decision, not a gut feeling. Second: what does good enough to scale actually mean? A specific, measurable number a pilot must clear before it earns a rollout.
Max: And if you do not define it before you start...
Koko: You define it after. And the definition quietly becomes: the demo worked. That is how bad agents ship.
Max: That is a little painful to hear, because I think most teams would say that honestly sounds familiar.
Koko: Most teams. Think of it like a pre-flight checklist. Pilots do not run through that list because they doubt the plane. They run it because I am pretty sure it is fine is not evidence. This module is the pre-flight: name the case, name the bar, then go. The discipline is not distrust — it is refusing to substitute a good feeling for a stated standard.
Max: And this connects back to what you called the Align phase — the A in the AGENT method from module one.
Koko: Exactly. Align asks what outcome matters and why an agent is the smallest sufficient solution. And it produces two things: a fit decision, and a set of baseline numbers you will measure everything against. The best builders can say out loud what evidence would make them choose a simpler design — before they have built anything to defend.
Max: That last part is doing a lot of work. Before they have anything to defend. Because once you have built something, you are going to defend it.
Koko: Every time. So the instinct is: on day one, write down the number that decides scale. Resolution accuracy. Cost per resolved dispute. The rate of wrongly issued refunds. And the threshold each one must hit. A bar you can name is a bar you can be held to.
Max: Okay, so what is the trap? Because I can already hear an eager team saying — can we just start building and figure out the success criteria once we see it run? It feels faster.
Koko: That is the trap, word for word. And it feels faster right up until the pilot has no pre-agreed bar, at which point it always looks like a success to the person who built it. The dressed-up executive version is: the proof of concept resolved ten disputes in the demo, let us roll it out. Ten cherry-picked runs is not a scale decision.
Max: So what should an investment committee or a board actually be asking when they see that slide?
Koko: They should be asking: what was the pre-committed bar, and what is the named counterfactual? If the thesis on a newly acquired company leans on an AI-driven productivity lever — faster dispute resolution shrinking the collection cycle, say — the hundred-day plan must state the bar before a dollar of build spend. What accuracy, at what cost per outcome, with what control over the money-moving action, counts as good enough to scale. That is board-defensible. A founder's confidence is not.
Max: And the same holds on the Fortune 500 side — a controller or a shared-services lead under pressure to have an AI story.
Koko: Same discipline, different room. Setting the bar up front reframes the conversation from did we build an agent to did we hit the outcome. That is the only framing that survives contact with a CFO. And naming in advance the evidence that would send you back down the ladder to a cheaper design — that is not weakness. That is what makes the eventual recommendation defensible, in either direction.
Max: So the willingness to name the off-ramp is actually what gives the recommendation its credibility.
Koko: That is it. If you can only argue for the agent, you cannot be trusted to evaluate it.
Max: All right. We have covered a lot of ground across this lesson. Can we do a quick pass on what to actually carry forward?
Koko: Let us do it. Three instincts. First: place every task on the ladder before you reach for an agent. Simpler designs are not failures — they are correct answers. The trap is skipping straight to the most capable thing because it feels impressive.
Max: Second is the definition. An agent perceives, decides, and acts — on real systems, with real consequences.
Koko: Right. And the instinct there is to ask: does this thing actually have autonomy over a real action, or is it a smart lookup? The trap is calling a chatbot an agent and then being surprised when the controls do not match the stakes.
Max: And third is this module. Pick the case deliberately, set the bar before you build, and make sure you can name the number that decides scale and the evidence that would send you back down the ladder.
Koko: Exactly. The trap is letting the demo become the bar. Every concept from here — redesigning the workflow, architecting the agent, contracting the tools, writing the evaluations, setting the controls, costing the outcome — it only holds together because right here, you named the case and the bar before you touched the build.
Max: That is a good place to land. Everything else is layers on this foundation.
Koko: And those layers are exactly what comes next. The guided journey at KokoAI Academy walks you through each one — the labs, the evaluations, the full Northwind build — and you can find all of it at kokoknows dot A I. The foundation you laid today is the hardest part. Now go build something worth shipping.