DEV Community

Cover image for Stop Chasing Better AI Models. Start Engineering Better AI Workflows.
john Clent Oira
john Clent Oira

Posted on

Stop Chasing Better AI Models. Start Engineering Better AI Workflows.

Everyone seems to be asking the same question lately:

Which AI model is best for coding?

But I think there's a more interesting question:

Why can two developers using the exact same AI model produce dramatically different results?

I've been thinking a lot about this, especially with the growing capabilities of coding agents like Claude Code and Codex.

My perspective is that model intelligence is only one part of the equation. The way we design the development environment, provide context, define requirements, and verify outputs can matter just as much.

The Problem Isn't Always the Model

Imagine giving an AI coding agent the following instruction:

Build a production-ready REST API with authentication, database integration, and automated tests.

The agent might produce something that looks impressive. But does it actually handle:

  • Concurrent requests?
  • Expired authentication tokens?
  • Database transaction failures?
  • Invalid input?
  • Security vulnerabilities?
  • Existing architectural constraints?

A working application isn't necessarily a reliable application.

The problem is that we've delegated implementation without clearly defining how correctness should be verified.

From Prompt Engineering to Workflow Engineering

Instead of relying on one massive prompt, consider treating the AI agent as one component of a structured software engineering system.

A possible workflow looks like this:

  1. Analyze requirements.
  2. Identify constraints and acceptance criteria.
  3. Inspect the existing architecture.
  4. Create an implementation plan.
  5. Implement the changes.
  6. Run automated validation.
  7. Review edge cases and regressions.
  8. Fix identified issues.
  9. Require evidence before accepting the result.

The important distinction is that the agent doesn't determine whether its own implementation is correct simply by saying it is.

The verification process does.

Context Is an Engineering Problem

Giving an AI model more context doesn't necessarily produce better results.

The challenge is providing the right context at the right stage.

For a coding agent, I would consider organizing project knowledge like this:

  • AGENTS.md — project rules and engineering standards.
  • docs/architecture.md — architectural decisions and constraints.
  • docs/requirements.md — functional requirements.
  • docs/acceptance-criteria.md — measurable success conditions.
  • examples/ — reference implementations.
  • tests/ — executable verification.
  • scripts/validate.py — automated quality checks.

This approach makes project requirements persistent, reusable, and easier to evaluate across different agent sessions.

It also reduces our dependence on conversation history.

Never Make the Agent's Confidence Your Acceptance Criteria

One of the most important principles in AI-assisted development is separating implementation from verification.

An agent can confidently report that a task is complete while overlooking a subtle requirement.

A stronger acceptance process might require:

  • Unit and integration tests to pass.
  • Static analysis to pass.
  • Security checks to pass.
  • Every mandatory requirement to have supporting evidence.
  • Human approval for consequential architectural decisions.

Even then, passing tests does not guarantee correctness. The quality and coverage of those tests still matter.

What Should Senior Developers Focus On?

I don't think software engineering fundamentals are becoming less important.

If anything, AI makes these skills more valuable:

  • System design
  • Architectural reasoning
  • Requirements analysis
  • Debugging
  • Security engineering
  • Test design
  • Technical decision-making

Generating code is becoming easier.

Knowing whether that code should exist, whether it behaves correctly, and whether it will remain maintainable is still an engineering challenge.

The Next Engineering Skill

Perhaps the next major skill in software engineering isn't simply writing better prompts.

It's designing environments in which AI agents can perform useful work, recognize failures, receive meaningful feedback, and produce independently verifiable results.

A more intelligent model can improve the outcome.

A well-engineered workflow can improve the process itself.

I'd Love to Hear Your Perspective

For developers who regularly work with AI coding agents:

  • Do you rely primarily on prompts or structured project instructions?
  • How do you validate AI-generated implementations?
  • Do you use separate agents for implementation and code review?
  • Have you found workflow design more important than model selection?

I'm particularly interested in hearing how experienced engineers approach AI-assisted development in real-world production environments.

Let's exchange ideas.


AI disclosure: This article was drafted with AI assistance.

Top comments (5)

Collapse
 
leob profile image
leob • • Edited

Can't argue with what you said, good advice in general - the only problem is that AI (and more specifically, AI's capabilities) are a moving target, which makes things very "fluid" - something which may have been true last week might not be so next week ...

I used Cursor half a year ago, and it was pretty okay - then I used Claude Code last month, and was blown away by its capabilities - and that with not much "guidance" from my side ...

However - here it comes - I used Laravel with its "Boost" package, which provides more or less all the stuff that you mentioned "out of the box" - I think that made a BIG difference ...

In fact, this corroborates what you said - the only difference is that I didn't provide the setup or the workflow myself - Laravel did!

P.S. what makes engineering AI hard, I think, is (a) it's a black box, and (b) it's non-deterministic - very different ball game than what we've been used to until now, it's all a bit of "voodoo" magic ...

Collapse
 
johnclentoira profile image
john Clent Oira •

Thanks for sharing your experience, Leo! The Laravel Boost example is particularly interesting because it demonstrates how much difference a well-structured environment can make, even without extensive manual guidance.
I agree that model capabilities are a moving target. That's exactly why I think investing in reusable workflows, context management, and verification mechanisms is valuable. Ideally, those components should remain useful as the underlying models evolve.
Your point about non-determinism is equally important. Unlike traditional software, we can't always guarantee identical outputs from identical inputs. Perhaps the goal isn't to make AI deterministic, but to build deterministic validation mechanisms around its probabilistic behavior.
I'm curious — did you find that Laravel Boost improved the consistency and correctness of Claude Code's output, or was the biggest improvement in its understanding of the codebase?
Really appreciate your perspective and the practical example!

Collapse
 
leob profile image
leob • • Edited

Agreed on all accounts! The beauty of Laravel (with Boost) is that it more or less provided all of the stuff that you mentioned "for free", without much effort from my side (because I tend to be lazy, haha) ...

Yes, I'm convinced that Laravel Boost makes a big difference, because they've gone out of their way to provide an extensive set of "skills" and related stuff, tailored to each of the popular mainstream coding agents (Claude Code is one of them) ...

The fact that Laravel apps follow a highly standardized structure (which the AI agents are familiar with from their training data, further "boosted" by Boost) helps a lot as well - the feedback that Claude Code gave me when executing tasks clearly showed that it was VERY familiar with how things are supposed to be done in the "Laravel world" ...

On top of that, I was impressed with the eye for detail when Claude Code executed a task - example: I asked it to change the app's theme color (branding) - and it did that, but it informed me that it had slightly changed the color to make the background/foreground contrast better, both in "light" and in "dark" mode (accessibility, A11N) - just one example where it did something useful while I hadn't even asked for it!

But no doubt that quality was "enabled" ('boosted', there we go again) because Claude Code had a structured and organized codebase that it could "understand", and that it was able to work with ...

Powerful combo!

Thread Thread
 
johnclentoira profile image
john Clent Oira •

That's a great example, Leo! The accessibility improvement is particularly interesting because Claude went beyond the explicit requirements and made a useful engineering decision on its own.
I think Laravel's standardized architecture is a significant advantage here. When an agent understands the conventions, dependencies, and expected patterns of a codebase, it can spend less effort figuring out the environment and more effort solving the actual problem.
It also raises an interesting question: should we start designing frameworks and codebases not only for human developers but also for AI agents?
Perhaps AI-friendly architecture will become an important consideration in software engineering alongside maintainability, scalability, and testability.
Really enjoying this discussion. You've given me another reason to explore Laravel Boost! 😊

Thread Thread
 
leob profile image
leob • • Edited

Yeah more than once I noticed that Claude Code was "proactive" and did something extra (which I didn't ask for), and in almost all cases the "extra" thing was a good thing - and it clearly communicated the "extra" thing as well, and explained why it did it :-)

So, I tell it in pretty much detail what I want, with screenshots and all that - but then it goes off and does its thing, doesn't need much "babysitting", and produces quality results ... check, test, commit to Git, and on to the next step (I tend to work in pretty small steps/increments) ...

"Should we start designing frameworks and codebases not only for human developers but also for AI agents" - I have the feeling the answer is yes! Laravel (with Boost) is testament to that - they clearly strived to make it "AI friendly", and from what I can tell they succeeded ...

P.S. last week I learned that, to my surprised, they launched Rust and Go ports of Laravel - clearly shows that they have a vision of the framework (not the language) being the main thing, because it shapes the architecture :-)