Four ways of working side by side, illustrating an AI coding workflow comparison
Geeky

Which AI Coding Workflow Works? 4 Approaches Compared

AI writes most of my code these days, and I stopped feeling guilty about that a while ago. Whether to use it isn’t the interesting question anymore. The interesting question is which AI coding workflow you trust with code that has to keep working.

Ask five developers and you’ll get four answers. Some paste snippets into a chatbot. Some “vibe code” and never read the output. Some write a full spec before the agent touches anything. And some hand the agent a task plus a test suite and let the tests decide. Each camp is sure the others are doing it wrong.

So here’s a straight comparison of the four: what each one is good for, where each one breaks, and the one I’d actually pick.

Four AI coding workflows at a glance

ApproachWhat you give the AIWhat you checkGood forBreaks when
Chat and pasteA question or a snippetEach answer, by eyeSmall functions, explanationsThe change spans many files
Vibe codingA goal in plain EnglishWhether it seems to runPrototypes, one-off scriptsSomeone has to maintain it
Spec-drivenA written spec, plan, and task listThe spec files, then the codeNew features with real requirementsThe task is small or the codebase is old
Test-anchored agentsA task plus a pass/fail checkTest output and the diffMost production workThe tests are weak

Chat and paste: where most of us started

You ask a chatbot for a function, copy the answer into your editor, fix the imports, and repeat. You stay fully in control, which is the good part.

The bad part is that you’re the glue. The model only sees what you paste, so it can’t follow a change across your codebase, run your tests, or notice that the helper it just wrote already exists two folders over. It’s still the right tool for a regex or a quick “what does this error mean?” Past that, you spend more time shuttling text than writing software.

Vibe coding: fast, fun, and disposable

Andrej Karpathy coined “vibe coding” in February 2025: you give in to the vibes and forget that the code even exists. A year later, he proposed “agentic engineering” as its successor, meaning you orchestrate agents instead of writing most of the code yourself, and the “engineering” part says it takes real expertise. He now describes the original post as a throwaway tweet that fit fun projects and demos.

When the person who named a practice moves past it, that tells you something. Vibe coding is great for a weekend prototype, a demo for a client meeting, or a script you’ll delete on Friday. It falls apart the moment the code needs an owner, because nobody read it. The first bug report turns into an archaeology project.

Spec-driven development: structure, with paperwork

Heavy paperwork for a tiny task, the overhead of spec-driven AI coding

Spec-driven development flips the order. You write down what to build, the agent turns that into a plan and a task list, and only then does it write code. GitHub’s Spec Kit, which reached version 1.0 in August 2026, walks you through a project “constitution,” then specify, plan, and tasks. AWS’s Kiro has a similar requirements, design, and tasks flow.

The appeal is real. Agents love to make decisions you never asked for, and a spec forces you to make them first. For a new feature with actual business rules, writing them down is just good engineering.

The cost is real too. When Thoughtworks’ Birgitta Böckeler tested Kiro, Spec Kit, and Tessl in October 2025, Kiro turned a small bug fix into four user stories with 16 acceptance criteria. Spec Kit buried her in verbose Markdown files, and she concluded she’d rather review code than all that Markdown. Worse, the agent sometimes ignored the spec anyway: it took notes about existing classes as new requirements and generated duplicates.

That last point matters most. A spec doesn’t make an agent obey. It gives you a clearer intent and more documents to review, and you still have to check what the agent built.

Test-anchored agents: let the check do the trusting

Passing checks giving a developer confidence in a test-anchored AI coding workflow

The fourth approach gives the agent a task and a way to prove it’s done: a test suite, a build, a linter, anything that comes back pass or fail. Kent Beck, the person most associated with test-driven development, calls his version augmented coding. You keep the same standards as hand coding, tidy code with tests that pass, you just don’t type most of it.

Anthropic’s Claude Code best practices make the same argument from the tool side. An agent stops when the work looks done. Without something it can run, “looks done” is all it has, and you end up as the test suite. With a check, it changes the code, runs the check, reads the failure, and fixes it before it reports back. The same page suggests asking the agent to interview you and write a short SPEC.md before a bigger feature, so a light spec still has a place here.

This is the workflow that has worked best for me. I used Claude Code and Codex to port a work project from Go to Node.js, and, for learning, to port a small Windows utility of mine from C# to Rust. In both cases, unit and end-to-end tests are what made sure everything still worked. I didn’t need to trust the agent. I needed to trust the tests, and I could read those.

The weak spot is obvious: an agent can make a failing test pass by “fixing” the test. So the tests have to be good, and you have to watch them.

Pro Tip: Treat any change to a test file in the agent’s diff as a red flag. Write or approve the tests first, then tell the agent the tests are fixed and only the code may change.

What the research says about AI coding workflows

Nobody has run a clean head-to-head of these four approaches, at least none I could find. What we have is evidence about AI coding in general, and it points the same way.

In July 2025, METR ran a randomized trial with 16 experienced open-source developers working in their own repos. With AI, they took 19% longer, while believing it had sped them up. METR tried to repeat the study in late 2025 and hit a new problem: developers refused to take part, or skipped tasks, because they didn’t want to work without AI. The new numbers leaned toward a speedup, but METR calls them unreliable and treats them as a lower bound. Its honest summary is that developers are probably faster with AI now, but nobody knows by how much yet.

Google’s 2025 DORA report, based on nearly 5,000 technology professionals, found that 90% of them use AI. Its main conclusion is that AI is an amplifier. It makes strong teams stronger and makes the problems of weak ones worse.

My reading: the gains don’t come from the model alone. They come from the process around it. Fast feedback, small changes, and real review are what turn AI speed into working software, and those are exactly what vibe coding throws away.

Which AI coding workflow to use, by job

You don’t have to pick one for life. Match the workflow to the code’s size and lifespan:

The jobWorkflow
A throwaway prototype or demoVibe coding
One function, a regex, an explanationChat and paste
A bug fixFailing test first, then the agent
A new feature in an existing appShort spec, tests, then the agent
A port or a rewriteTests first, then the agent, on its own branch
A new product with fuzzy requirementsA spec-driven toolkit to pin it down

My default is test-anchored agents, with a short written spec for anything bigger than a day of work. I skip the full spec toolkits on existing codebases, because reviewing a pile of Markdown is still reviewing, and I’d rather spend that time on the tests. Vibe coding stays reserved for code I fully plan to delete.

The model you use will be outdated in six months. A good test suite won’t.

FAQ

Is vibe coding bad?

No, it’s just narrow. It’s a fast way to explore an idea or build something you’ll throw away. It becomes a problem when vibe-coded code ships to production and nobody understands it.

Do I need Spec Kit or Kiro for spec-driven development?

No. A plain Markdown file describing the feature, its edge cases, and what “done” means gets you most of the benefit. The toolkits add structure, which helps on new projects and can feel heavy on small fixes.

Doesn’t writing tests first cancel out the speed of AI?

The agent can write most of the tests too. Your job is to read them and make sure they test the behavior you want. That review is far faster than reading every line of generated code, and it keeps paying off on every later change.

Can I combine these approaches?

Yes, and most developers do. A common mix is a short spec for intent, tests for proof, and an agent for the typing in between.

Keep reading about: AIComputersMicrosoftOpen sourceProgrammingVibe coding

Related

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.