Paste a failing test into a chat assistant and it tells you what to try. Give the same model a terminal, the test command and the goal "make this test pass", and let it run the test, read the failure, edit the code and run the test again, and it fixes the bug. The model did not change between those two sentences. What changed is everything around it, and that is what "agentic" means.

Thesis: AI is agentic when a model works in a loop toward a goal: it chooses the next step, acts through tools, reads what happened and goes again until the goal is met, and in a well-built one, something other than the model decides that it is. Agency is a property of that system, not of a smarter model, and it comes in degrees: how much the loop may do without asking is a decision you make per action, not a feature you buy.

TLDRThree steps, about twenty seconds
modelYouthe codeYou are the loop.You paste the error.modelThe applicationthe codeThe application, not the model, ends the runOne agentread anythingedit freely on a branchneed approval to mergeAct within boundsAct with approvalmodelYouthe codeYou are the loop.You pastethe error.modelThe applicationthe codeThe application, not the model, ends the runOne agentread anythingedit freely on a branchneed approval to mergeAct within boundsAct with approval

Step 1 of 3

What Makes AI Agentic

A chat assistant tells you what to try, and you carry out each try. Run test, read failure, edit, rerun: whoever drives that cycle is the loop.

Read the TLDR as text
  1. What Makes AI Agentic. A chat assistant tells you what to try, and you carry out each try. Run test, read failure, edit, rerun: whoever drives that cycle is the loop.
  2. From Answer to Action. Now the application drives the loop: the model only asks, the application runs each request, and ends the run after restoring and rerunning the tests itself.
  3. Autonomy Is a Dial. Autonomy is set per action: one agent may read anything, edit a branch freely inside enforced limits, and merge only with approval.

From Answer to Action

The previous chapter ended on one sentence: a model reads what it is given on one call and writes a response, keeps nothing between calls, and does nothing else. Here is the same failing test handled both ways.

As a chatbot. You paste the error. The model writes a response: "The test expects a date in UTC; your function returns local time. Try converting before returning." You make the edit, run the test, paste the next error. You are the loop.

As an agent. The application around the model gives it a goal and three tools: read a file, edit a file (but not the tests), run a command. The code lives in a Git repository, so every change can be compared with the last saved version, a commit. Then:

  1. The model asks to run the test suite. The application runs it and puts the output into the model's input for the next call.
  2. The model reads the failure and asks to open the function. The file's contents come back.
  3. It asks to edit one line. The edit is made.
  4. It asks to run the tests again. They pass, and the model says it is done.
  5. The application checks for itself: it restores the test files from the commit the run started on, so nothing the model did to them counts (the run-command tool could still have changed them), and runs the suite. It passes. The application, not the model, ends the run.
sequenceDiagram
    participant M as Model
    participant H as Application around the model
    participant R as Code and tests
    H->>M: The goal and the three tools
    M-->>H: Asks to run the tests
    H->>R: Runs the test suite
    R-->>H: One test fails
    H->>M: Everything so far, plus the failure
    M-->>H: Asks to open the function
    H->>R: Reads the file
    R-->>H: The function's code
    H->>M: Everything so far, plus the code
    M-->>H: Asks to edit one line
    H->>R: Makes the edit
    H->>M: Everything so far, plus confirmation of the edit
    M-->>H: Asks to run the tests again
    H->>R: Runs the test suite
    R-->>H: All tests pass
    H->>M: Everything so far, plus the pass
    M-->>H: Says it is done
    H->>R: Restores the test files, runs the suite itself
    R-->>H: All tests pass
    Note over H: The application, not the model, ends the run

Figure: The bug-fix run as messages. The model only ever asks; the application runs the tests, reads the file and makes the edit, sends everything so far back on each call, and ends the run itself after restoring the tests and seeing them pass.

Follow the model's column: every arrow out of it goes to the application, and none reaches the code. Every step the model took is still "read what it is given, write a response". The difference is that its response could be a request to use a tool, a tool call; something outside the model carried that request out, and the result went back in. The model never touched the file. It asked.

Three words name the pieces of that run, and the glossary holds this site to them, because they count different things: cost grows with every call, while what you care about is the request. Your request is what you asked for: make this test pass. (API documentation often calls a single call a request; on this site it is always the ask.) Each trip to the model is a call: one input in, one response out; this run took five. A turn is one call plus the tool runs it triggers: the model asks to run the tests, the application runs them, and the result waits for the next call. One request, five calls, five turns.

Four Ingredients

Anthropic's widely cited Building Effective Agents (December 2024; the post now notes that much of the tooling has changed since) describes agents as "typically just LLMs using tools based on environmental feedback in a loop." That gives three parts. Add the goal this site insists on, and you have four ingredients of agentic AI:

  • A model that can choose the next step.
  • Tools: functions such as search, read a file, run a command or call another system. The application lists them in each call, the model asks for one by name, the application runs it, and the result comes back as text in the next call.
  • A loop that keeps calling the model with the latest results until a stop condition is met.
  • A goal someone answers for, which gives the loop a reason to run and a test for when to stop. Its test is a check the model cannot fake. Many agents simply stop when the model says it is finished. This series treats that as the first failure below, not as a different kind of thing.

The code and configuration around the model, which builds each call's input, runs the tools, enforces the limits and decides when to stop, is called the harness. The next chapter opens it up. For now, notice that the tools, the loop and the goal are not the model.

flowchart TD
    Goal["A goal"] --> Model{"Model<br/>chooses the next step"}
    Model -->|"says it is done"| Check{"Does a check outside<br/>the model agree?"}
    Model -->|"asks for a tool"| Act["Harness runs the tool<br/>the model asked for"]
    Act --> Observe["The result goes back<br/>into the next call"]
    Observe --> Model
    Check -->|"not yet: go again"| Model
    Check -->|"yes"| Done["Goal met"]

    style Model fill:#5a5a8a
    style Done fill:#2d6a4f

Figure: The agent loop. From a goal, the model chooses a step; a tool request is run by the harness and its result goes into the next call, and when the model says it is done, a check outside the model decides whether to go again or call the goal met.

The Agent Is a While Loop traces how this shape emerged in research from 2022 onward and makes the point this series leans on: the unit of agentic work is the loop, not the prompt.

Step Through the Loop

The lab below runs the bug fix from the start of this chapter as that loop, one phase at a time: the harness builds the input for the next call (observe), the model chooses a step (decide), the harness runs it (act), and the harness decides whether to stop (check). Two switches change the run. The first has the model change the test instead of the function, which its command tool allows. The second skips the outside check and ends the run when the model says it is done. Try both together, then turn the check back on. Without JavaScript, the table shows the same five rounds.

Round Observe: the harness builds the call's input Decide: the model Act: the harness Check: the harness
1 The goal and the three tools Asks to run the tests Runs them: one test fails Not done: the failure goes into the next call
2 Everything so far, plus the failure Asks to open the function Reads the file Not done: the code goes in next
3 Everything so far, plus the code Asks to edit one line of the function Makes the edit Not done: the confirmation goes in next
4 Everything so far, plus the confirmation Asks to run the tests again Runs them: all pass Not done: the pass goes in next
5 Everything so far, plus the pass Says it is done Nothing to run Restores the test files, runs the suite itself: all pass, goal met

If in round 3 the model had used its command tool to change the test instead, the tests in round 4 would still pass and the model would still say it is done. Only the check in round 5 catches it: with the original test files restored, the test fails, and the run goes round again. Skip that check and the run ends on the model's word, with the bug shipped.

Autonomy Is a Dial

"Autonomous" is the word that makes agentic AI sound either magical or dangerous. In practice autonomy is a setting, and you set it per action.

Level What the agent does A human… Fits actions that are…
Suggest Proposes the step (like an autocomplete suggestion you accept or ignore) takes every action anything, while you are learning what it does
Act with approval Prepares the step and waits approves each action hard to undo, or touch money, customers or production
Act within bounds Acts freely inside limits the harness enforces reviews the result reversible, inside a sandbox (an isolated environment it cannot reach out of) or a branch (a separate line of changes that leaves the main code alone until merged)
Act alone Acts and reports afterwards audits a sample cheap to undo and caught by a check if wrong

One agent usually runs at several levels at once: it may read anything, edit freely on a branch, and need approval to merge. The question is never "how autonomous is the agent?" but "what may it do without asking, and what enforces that?" Confidence Is Not Consent argues why the agent's own confidence cannot be the answer: whether the goal is understood and whether the method is safe to run unsupervised are two separate clearances.

What Agentic AI Is Not

Not a smarter chatbot. The test-fixing example used the same model both ways. A better model makes each step better; only the loop and the tools make it act.

Not a workflow with a model in it. Anthropic calls both "agentic systems" and draws its line inside that family: workflows are "systems where LLMs and tools are orchestrated through predefined code paths," while agents "dynamically direct their own processes and tool usage." A workflow decides the steps in advance and uses the model to fill gaps. An agent is given the goal and decides the steps. Both are useful. They fail differently, so call each by its name. This series keeps "agentic" for the agent side of that line.

Not an employee. Vendors, and earlier posts on this site, have called agents "AI employees." The phrase is a useful contrast, not a description. It gets one thing right: like a new hire, an agent needs a role, limits and review. It gets the important thing wrong: an employee can be held accountable, and an agent cannot. When it gets something wrong, a person answers for it, and the system should name that person in advance.

Where Agents Go Wrong

Because the loop is the new part, it is where the new failures live.

  • It stops too early, declaring victory before the work is done. If the model's own "finished" ends the run, nothing checked the work, and Agents Will Lie to Escape the Loop argues models will claim success to get out of a task. The fix is a check the model cannot fake (Loop on the Gap, Not the Try-Count).
  • It never stops, retrying the same failing step. The fix is a limit and a reason to stop that the harness enforces.
  • It drags stale context forward. Each pass adds to what the model must read, and old results crowd out the goal. The fix is to keep progress in files and start each pass fresh (The Files Are the Memory).
  • It acts where it should have asked. The fix is a permission the harness enforces, not a sentence in the prompt asking it to be careful.

None of these is fixed by a smarter model. Each is fixed in the loop.

When a Workflow Wins

The best case against agents comes from the same Anthropic post: "workflows offer predictability and consistency for well-defined tasks, whereas agents are the better option when flexibility and model-driven decision-making are needed at scale." It goes further, and recommends "finding the simplest solution possible": often one well-prepared model call, with no workflow or agent at all.

That advice is right more often than agent enthusiasts admit. If the steps are known, the inputs are regular and a wrong improvisation is expensive, a fixed sequence of steps with a model filling one or two slots is cheaper, faster and easier to audit than an agent. Payroll runs, invoice matching against a known template and nightly report generation usually belong here.

An agent earns its extra cost when the path cannot be written down in advance: the inputs vary too much, the next step depends on what the last one found, or the number of cases is too large to script. Bound, Don't Script gives the rule for that case: specify the what and the why, then let the agent choose the how.

An Example: Access Requests

A service desk handles requests for access to internal applications. There are four hundred applications, requests arrive as free text ("I need to see the Q3 numbers in the finance tool"), and each application has its own roles and approval rules.

A workflow would need a form per application. It works for the ten most common and fails on the rest.

An agent gets the request, a read tool for the entitlement catalogue, a read tool for the approval policy, and one write tool that creates an access grant, which the harness activates or holds according to the rules below. It reads the request, finds the application and the narrowest role that fits, checks the policy, and drafts the grant with its reasoning attached. The run ends when the access system validates the draft: the role exists and a policy rule matched. The model's opinion that it is done does not end it. That check proves the grant is valid, not that it is the narrowest; the weekly sample and the approver cover that.

The autonomy is set per action. Reading the catalogue and the policy: alone. Activating a grant for a low-risk application: alone, logged and audited in a weekly sample. Anything touching finance or customer data: the grant waits for a named approver, and the harness, not the prompt, refuses to activate it without that approval. The service desk lead is accountable for the outcome: every access granted is the narrowest that does the job, and every sensitive grant has an approver on record.

The model is the same one the service desk's chatbot uses. The tools, the loop, the limits and the named owner are what made it an agent. The next chapter takes those parts one by one.


What to Do Next

  • Find the loop. In any product sold as agentic, ask what calls the model again, with what, and what makes it stop.
  • List the tools. What an agent can do is exactly what its tools allow. Read the list before reading the marketing.
  • Set autonomy per action. Write down, for each tool, whether it runs alone, within bounds, with approval, or not at all, and make the harness enforce it.
  • Try the workflow first. If you can write the steps down, write them down. Reach for an agent when you can't.

Previous: What an LLM Actually Is. Next in Foundations: Model, Harness, Agent, the parts an agent is made of. Terms are defined in the glossary. For the loop in depth, read The Loop series.