Section650

Writing

TopicAI
Reading10 min

Vibe Coding vs. Agentic Engineering: Writing Code Is No Longer the Hardest Part

AI made writing code cheaper and faster. It didn’t make bad engineering decisions any cheaper. It just implements them sooner.

By Ka Lun Chan · Cloud & AI · AI / Leadership / Delivery

The bottleneck moved

Agent-generated code can reach a working demo quickly. Teams maintaining the result still need to agree on requirements, architecture and how to verify a change.

Common review concerns include abstractions with no clear need, duplicated code and behaviors that were never specified.

Implementing a mistaken requirement quickly makes the wrong system easier to build. The earlier the team checks its assumptions, the less it has to unwind.

The bigger change is where the time goes. A team with AI agents can now produce code faster than it can review, test and validate it. The bottleneck has moved from writing code to deciding what to build and verifying that it works. That shift is the main difference between vibe coding and agentic engineering.

What vibe coding is good at

Andrej Karpathy coined “vibe coding” for a way of working where you describe what you want, accept what the model writes, and mostly forget the code exists. The workflow is a loop:

Prompt → generate code → run it → find problems → prompt again.

It’s exciting, and it opened software up to people who couldn’t build it before. A product manager can try an idea before asking for engineering time. An operations lead can build the internal tool they’ve wanted for a year. It’s also a cheap way to find out in an afternoon whether an idea is worth more time.

It works well for prototypes, demos, throwaway scripts, personal tools and experiments where being wrong costs very little.

The risk starts when the loop is all there is. If nobody understands the implementation, every new prompt is a guess about code you haven’t read. Fixes stack on fixes. The app works until it meets real data, a second user role, or an attacker. And a prototype that “just works” has a way of becoming production without anyone deciding it should.

What makes it agentic engineering

About a year after coining vibe coding, Karpathy suggested “agentic engineering” for the more disciplined version: you orchestrate agents that write most of the code, and you provide the oversight. The term is still settling, and people use it loosely.

Agentic engineering, as used here, puts AI agents inside a software delivery lifecycle with defined requirements, design constraints and verification.

Fig. 705-1 In agentic engineering, agents work at every stage and engineers own every decisionRead top to bottom. The dashed column is the agent’s work. The solid column is what a person is accountable for.
  1. 01 RequirementsAgent doesDrafts user stories and asks about missing casesEngineer ownsThe problem, the user and what done means
  2. 02 PlanningAgent doesBreaks the work into small tasksEngineer ownsScope, and what falls outside it
  3. 03 ArchitectureAgent doesCompares options and finds code to reuseEngineer ownsThe design and its tradeoffs
  4. 04 ImplementationAgent doesWrites code against the planEngineer ownsKeeping it inside the agreed design
  5. 05 TestingAgent doesWrites and runs unit, integration and end-to-end testsEngineer ownsWhich risks deserve tests
  6. 06 ReviewAgent doesFirst-pass code and security reviewEngineer ownsFit, complexity and security boundaries
  7. 07 UATAgent doesWalks the flows as a simulated userEngineer ownsBusiness users accept it
  8. 08 DeploymentAgent doesPrepares the release and the rollbackEngineer ownsGo or no go
  9. 09 MonitoringAgent doesWatches errors and usage, summarizes themEngineer ownsWhether it worked, and what comes next

Production feedback informs the next requirement.

Using several agents doesn’t mean you’re practicing agentic engineering. If five agents are prompting, generating and rewriting each other’s code without written requirements, an agreed design or a definition of done, you’re vibe coding with five agents instead of one.

One feature, built two ways

Here’s a hypothetical feature from a multi-company SaaS product. A user can belong to several companies. Each company can have more than one business identifier, such as a tax ID and a government registration number. Each user has a role per company: owner, admin, member or read-only.

Vibe coding. A prompt for “multi-company accounts with roles” may produce tables, a company switcher and checks. The demo can look finished before tenant boundaries and uniqueness rules are clear.

Engineering with agents. Write down who may access which records, which identifiers must be unique and what switching companies means. Then check that behavior directly.

Clear constraints can slow down the first demo and reduce rework before customers use the feature. See where review fits in the lifecycle.

The tradeoffs side by side

Fig. 705-3 Vibe coding and agentic engineering, side by side
DimensionVibe codingAgentic engineering
Development speedFastest to a first working versionSlower to start, fewer rewrites later
PlanningMostly in the promptWritten requirements and acceptance criteria first
ArchitectureWhatever the model choseAgreed before the build, reviewed after
Code qualityVaries, and nobody may know which parts are weakChecked against team standards
TestingDoes it run?Tests chosen by risk, plus real acceptance
SecurityOften assumedBoundaries defined and tested
MaintainabilityHard to change code nobody understandsBuilt for the team that has to change it
AI token costsLow per prompt, high across loops and rewritesHigher up front, lower per delivered feature
Human involvementLow until something breaksAt every decision point
Production readinessPrototype, unless someone rebuilds itThe goal from the start
Neither column is always right. A weekend prototype doesn’t need the right-hand column, and a billing system can’t live with the left.

Vibe coding wins on speed to a first version and on cost when the code is disposable. Agentic engineering wins once the software has to be secure, maintained by a team, and changed for years.

Code review still matters

Automated review can flag style issues and common defects. Requirements, authorization and operational risk still need evidence and a person who understands the tradeoffs.

  • Does the implementation satisfy the business requirement?
  • Is the architecture appropriate for the problem?
  • Is it adding complexity the problem doesn’t need?
  • Are security boundaries enforced on every path?
  • Does the codebase already handle this?
  • Can the team maintain it?
  • What customer problem does the change solve?

An agent can help pose these questions. The team supplies the business context, checks the answers and owns the consequences.

Review, testing and UAT in parallel

If implementation got faster, the checks after it have to keep up. Running them one after another (review, then QA, then UAT) turns a two-hour change into a two-week wait. With pull-request preview environments, they can run at the same time.

Fig. 705-2 Five checks run at the same time against one preview environmentNothing merges until every lane passes. A change made after feedback reruns the lanes it affects.

Pull request opens a preview environment

  • Automated testsUnit, integration and end-to-end, in CIAgents and CI
  • Code reviewAI first pass, then a person, scaled to riskAI, then an engineer
  • Security reviewAI-assisted scan; a person for auth, data and permissionsAI, then an engineer
  • Simulated usabilityAn agent walks the flows and flags confusing stepsAI
  • User acceptanceBusiness users try it on the previewPeople only

Merge, release and monitor

Changed after feedback? Rerun the affected lanes.

Every pull request gets its own deployed preview. Automated unit, integration and end-to-end tests run in CI. An AI first pass on code and security runs alongside human review. An agent can walk through the main flows as a simulated user and flag confusing steps, unclear errors or dead ends. Business users can try the real thing on the preview while review is still going.

AI-simulated usability testing is a cheap early filter. It doesn’t replace a business user accepting the feature, because the agent doesn’t know how the work is actually done. And parallel checks only work if you retest when something changes. If review feedback changes the permission logic, the earlier UAT result no longer counts for that part.

The hidden cost of doing it wrong

Used badly, AI coding gets expensive in ways that don’t show up on a demo:

  • Repeated prompts that resend the same context and burn tokens
  • Several agents doing overlapping work, or rewriting each other’s implementations
  • A simple requirement turned into a framework
  • Hundreds of tests that don’t match where the real risk is
  • Features generated before anyone checked that customers want them
  • AI-generated technical debt piling up faster than a team could ever write it by hand

Measure useful changes that remain correct. Every unnecessary line adds work for the people who need to understand, secure and run it.

Judgment is worth more now

When typing the code is no longer the slow part, the engineer’s job shifts toward everything around it. Developers increasingly need to understand the business problem, define acceptance criteria, evaluate architecture, spot security and operational risks, review AI-generated implementations, and design a testing strategy.

Generalists can use experience across product, security and operations to see where a plausible implementation needs a specialist’s check.

What engineering leaders should change

Engineering leaders can shift attention to what should be built and how to verify it:

  • Move review earlier, to the plan and acceptance criteria, before the agents start. A wrong design costs a conversation there and a rewrite later.
  • Scale review to risk. Docs and copy can rely on automated checks. Authentication, permissions, billing, data migrations and production infrastructure always get a human approval.
  • Treat AI-generated debt like any other debt: set standards the agents follow, keep pull requests small, and budget time to remove duplication before it spreads.
  • Balance speed against operational risk. Feature flags, gradual rollouts and a tested rollback let you ship fast without betting everything on each release.
  • Protect how juniors learn. Ask them to explain the code and the tradeoff before merging, and give them decisions to make, not only prompts to write. Judgment comes from making decisions, with a mentor close by.

Once agents can produce large diffs quickly, measure customer and delivery outcomes. Prompt counts and lines of code tell little about either.

  • Lead time for changes: from commit to running in production
  • Change failure rate: how often a release causes a problem
  • Rework rate: deployments that exist to fix a recent one, which DORA added to its delivery metrics
  • Escaped defects: bugs customers discover after release
  • Production incidents: how many, and how severe
  • Cost per successfully delivered feature: people, tokens and infrastructure, divided by features customers actually use

These describe how the system of work is performing. They shouldn’t be used to rank individual developers, because people learn to game whatever they’re ranked on. If lead time drops while rework and escaped defects climb, the team got faster at producing problems.

Start by checking whether a proposed feature deserves its maintenance cost. See The Engineering Work Nobody Needed.

Short answers

What is the difference between vibe coding and agentic engineering?

Vibe coding is a loop of prompting, running the result and prompting again, judged mostly by whether it seems to work. Agentic engineering uses AI agents inside a structured lifecycle, from requirements and architecture through testing, review, acceptance and monitoring, with engineers accountable for the decisions at each stage.

Is vibe coding bad?

No. It is a fast way to prototype, test an idea, build a personal tool or let someone who doesn’t code build something useful. The risk starts when vibe-coded software goes to production, handles customer data or has to be maintained by a team, without anyone understanding how it works.

Does using multiple AI agents mean you are doing agentic engineering?

No. Agentic engineering is defined by the process around the agents: written requirements, an agreed design, tests tied to risk, review, real user acceptance and monitoring. Five agents prompting and rewriting each other without that structure is still vibe coding, only more expensive.

How should engineering leaders measure productivity with AI coding agents?

Measure delivery outcomes at the team level: lead time for changes, change failure rate, rework rate, escaped defects, production incidents and cost per successfully delivered feature. Lines of code, prompt counts and pull request volume measure activity, and none of these should be used to rank individual developers.

Using AI on software a team has to maintain

Vibe coding lowers the barrier to making a prototype. A structured engineering workflow gives a team a way to verify and maintain what survives the experiment.

A production team needs to understand a change, recover from failure and afford to operate the result.

Talk about how your team works with AI agents Engineering leadership practices