Dictionary

Agentic coding

A workflow where an AI coding agent plans and executes multi-step software changes, editing files, running commands, and iterating, with a human supervising rather than typing.

Agentic coding is what happens when you stop asking an AI for code snippets and start giving it goals: "add rate limiting to the API," "migrate this module to the new router." The agent plans the work, makes the edits, runs shell commands, checks the results, and loops until done, or until it gets stuck.

How it differs from vibe coding

Vibe coding is conversational and reactive; agentic coding is delegated and planned. The agent maintains working memory of the task across steps, which lets it handle changes too large to fit in a single prompt. Tools like Cursor's agent mode, Copilot's coding agent, and Claude Code all work this way.

The distinction matters because the failure modes are different. A bad snippet is a local problem you spot in seconds. A bad agentic run can restructure your codebase on a misunderstanding, confidently, quickly, and across files you weren't watching.

The supervision problem

An agent's output has a larger blast radius than a snippet's. A wrong guess in one file is a bug; a wrong assumption propagated across twelve files is an incident. Agentic coding multiplies leverage in both directions, which is why the review discipline matters more here than anywhere else in AI-assisted development.

In practice, supervision means three things. First, scope the task tightly: "refactor the auth module's error handling" beats "improve the auth module." Second, require the agent to explain its plan before executing, most tools support this, and it catches misunderstandings when they're still cheap. Third, read the full diff before accepting. Every file. The agent is fast; you're responsible.

Where agents shine

Agents are at their best on well-specified, verifiable work: migrations with clear before/after states, adding tests to untested modules, implementing a feature against an existing pattern, or doing the tenth instance of something you did manually nine times. They struggle where judgment is the job: architecture decisions, ambiguous requirements, and anything where "correct" is a matter of taste or business context.

A useful heuristic: if you can write a test that proves the work is done, an agent can probably do the work. If you can't articulate what "done" looks like, neither can the agent, and it will happily produce something that looks finished instead.

Failure modes to plan for

Experience with agents converges on a short list of recurring failures, and all of them are manageable once you expect them.

  • Context drift. Over a long session the agent's working picture of the codebase goes stale or gets polluted by its own earlier mistakes. Work degrades gradually, then suddenly. Fresh sessions for new tasks, and a context file the agent re-reads, are the countermeasures.
  • Invented APIs. The agent confidently calls a function, flag, or endpoint that does not exist, because it pattern-matched from a similar library. Compilation and tests catch these, which is why verifiable tasks are safe tasks.
  • Test gaming. Given "make the tests pass," an unsupervised agent may edit the tests. The instruction was satisfied; the intent was not. Lock the tests, or review test changes first.
  • Runaway loops. An agent retrying a failing approach can burn a session's budget producing nothing. Step limits, cost awareness, and checking in at plan level keep the loop honest.

Session hygiene

Treat agent sessions like experiments: one task per session, a clean git state at the start, checkpoints committed as milestones land, and a written goal the agent can be checked against at the end. If a session goes sideways, restarting from the last good checkpoint with a better brief is almost always cheaper than arguing the agent back on track. The transcript is disposable. The diff is the deliverable.

Doing it well

Small, verifiable steps. Run the tests after every change. Read the diff before you accept it, all of it. Keep a context file (see context engineering) so the agent starts from your reality instead of generic defaults. And never let an agent touch infrastructure, auth, or billing code without understanding exactly what it did.

The developers getting the most from agentic coding aren't the ones who delegate the most, they're the ones who supervise the best. The agent is leverage. Leverage needs a hand on the wheel.

Related terms

  • Context engineering

    The practice of deliberately assembling what an AI coding assistant knows, relevant files, docs, constraints, and conventions, so its output matches your project's reality instead of generic best guesses.

  • Vibe coding

    Writing software by describing what you want to an AI in natural language, accepting its output with minimal review, and iterating on vibes rather than specifications.

← Back to the dictionary