Essays 4 min read

What Is Agent Mode? A Working Engineer's Definition

Agent mode is when you stop typing code and start directing an AI that reads your codebase, writes the change, runs the tests, and reports back. Here is what it actually is, how the loop works, and when to reach for it, from someone who ships production systems this way.

What Is Agent Mode? A Working Engineer's Definition

If you have heard the term "agent mode" and gotten a different answer every time you asked, here is a plain one.

Agent mode is when you stop typing code and start directing an AI that reads your codebase, makes the change, runs the tests, and reports back. You describe the outcome. The agent does the work across as many files as the task needs, checks itself, and tells you what it did. You review, correct, and send it again.

That is the whole idea. The rest is detail. But the detail is where most of the confusion lives, so here it is.

It is not autocomplete, and it is not chat

Three things get lumped together and they are not the same.

Autocomplete finishes the line you are already writing. You are still the one holding the whole task in your head, typing it out, one suggestion at a time. The AI is a faster keyboard.

Chat answers a question. You ask how to configure a load balancer, it explains, you go apply the explanation yourself. The AI is a smarter search engine.

Agent mode takes the task off your hands. You say "add rate limiting to the payments endpoint and update the tests," and it reads the relevant files, writes the change, runs the suite, and comes back with a diff. You were never in the editor. You were directing.

The difference is not speed. It is who holds the task. In autocomplete and chat, you do. In agent mode, the agent does, and you hold the intent.

The loop is specify, generate, verify

Traditional coding has a loop: write, compile, test, repeat. Agent mode has a different one: specify, generate, verify, specify.

  • Specify. You describe what you want clearly enough that an agent can act on it. Vague intent produces vague output, so this is where the real work moves.
  • Generate. The agent reads context and produces the change, often across several files at once.
  • Verify. It runs the tests, or you read the diff, or both. AI-generated code can pass every test and still be wrong, so verification is not optional.
  • Specify again. You correct course and send it back.

Your hours stop going into typing and start going into the first and third steps: being precise about what you want, and checking that you got it.

A concrete example

A real one from my own work. I needed to stand up an AWS service behind CloudFront with a private S3 origin and a basic-auth gate. The old way: read the docs, write the CDK, wire the origin access control, debug the bucket policy, fix the cache behavior, repeat.

In agent mode I described the end state: private bucket, served only through this distribution, gated by a password at the edge. The agent wrote the configuration, explained the origin-access-control wiring, and flagged the one gotcha that breaks these setups (the REST endpoint does not serve directory index files the way the website endpoint does). My job was to decide the design and verify the result, not to remember the order of the CDK arguments.

That is the shape of it. The cost of writing the configuration dropped to near zero. The cost of deciding what to build and confirming it was right became the whole job.

When to reach for it, and when not

Agent mode earns its keep when the task is well-specified and verifiable: scaffolding, refactors across many files, boilerplate, infrastructure, tests, migrations. Anywhere you can describe the outcome and check it cheaply.

It is the wrong tool when you do not yet know what you want. If the problem is still fuzzy in your own head, no amount of delegation helps, because you cannot specify what you have not figured out. That part is still yours.

Where to go next

This is the short answer. If you want the long one, I wrote a whole book on working this way: AgentSpek, free to read here in full. For how it changes the feel of the work, see AI-Assisted Development Is Not Vibe Coding, and for how I actually build with it day to day, AI-Assisted Development.