Are frameworks still needed in the age of coding agents?

A coding agent can write a router, a database layer and a sign-in form in minutes. So why start from a framework at all? Here is what a framework still gives an app that an agent does not, and where it stops mattering.

. By the Taphra team.

Expulp Verdict score 66: read every claim, weighed

The case against

It is a fair question, and the case against frameworks is stronger than it used to be. A framework costs something: a set of ideas to learn, layers between your code and the request, dependencies to keep up to date, and a major upgrade every few years. Those costs were worth paying when every line had to be typed by hand. An agent types for free.

Our own measurements make the point. In the agent test pilot, the same agent built the same API, a team-scoped projects service with roles and validation, on Taphra, Laravel and Symfony, in about five minutes each, and all three passed every hidden check. The plain-PHP reference app we wrote to check those tests is 37 dense lines with no framework at all, and it passes all 33 checks too. For a small service with a clear spec, a framework is not what makes the code work.

What an agent does not give you

Working code on day one was never the hard part. What a framework provides shows up later, and most of it is not code you would think to ask an agent for.

One shape for every feature

Agents copy the patterns in front of them. In an app without a framework, each feature brings its own way to route, validate and reach the database, and the next feature copies whichever one the agent read last. Someone has to review all of it, and review is now the slow part of shipping. A framework gives each kind of code one home and one shape, so a reviewer reads a new feature the way they read the last one.

Safe defaults nobody has to remember

The defects that matter most sit at the edges: sessions, CSRF tokens, escaping, timing, what happens to a half-finished sign-in when a password is reset. Our first showcase app went through two independent reviews ahead of its publication, and most of the findings were in exactly this kind of code. One of the fixes was to stop writing a defence by hand and call the one the framework already had. The more of these edges live in shared code that many apps use and many people review, the less each app has to get right on its own.

Fixes that reach every app

Generated code has no upstream. Once it is in your repository, every line is yours to maintain through PHP upgrades, security reports and changed dependencies, in every app that has its own copy. A framework fixes a bug once. When our first showcase app found seven framework bugs, the fixes shipped as a patch release the same day, and the other apps running on Taphra picked them up with composer update.

Tests you did not write

An agent writes the tests you ask for. A framework arrives with the ones its maintainers had to write: Taphra runs more than 2,000 tests on every change, on three PHP versions, plus a real PostgreSQL server, end-to-end checks of its starters and its tutorials followed step by step. That is work an app inherits instead of repeating.

Knowledge the agent can read

An agent works from what it learned in training and what is in front of it. A framework puts documentation, conventions and its own source in front of it. In the pilot, the agent working on Taphra read the framework's source in vendor/ to see how things were done, and followed it.

Where a framework stops mattering

Not every piece of code needs one. A one-off script, a prototype you will throw away, a tiny service with one job and no users of its own: plain PHP, or a micro-framework, is often the better choice, and an agent makes that choice cheaper than ever. A framework earns its cost as an app lives longer, gains users and data worth protecting, and passes through more hands, human or not.

What changes for frameworks

The job changes more than the need. Saving keystrokes no longer counts for much. What counts is being easy to review: explicit wiring an agent does not have to guess, one obvious way to do each thing, safe defaults, a codebase small enough to read, and stable contracts across releases.

It also means meeting agents where they read. The pilot showed that the agent loads a file named CLAUDE.md by itself and did not open the AGENTS.md guide in Taphra's starter. Laravel's starter ships both, so its guide was in front of the agent from the first step. Since Taphra 1.0.2, its starters ship a one-line CLAUDE.md that loads their AGENTS.md.

Our answer

Yes, for anything meant to last: an app with users, data, a team or a future. Not for throwaway code. A framework is no longer mainly a way to write less. It is the tested, reviewed ground that generated code stands on, and the place where a fix made once reaches every app.

We are measuring the parts of this that can be measured. The full agent test, three tasks with five runs each on Taphra, Laravel and Symfony and reviewers scoring every patch, will be published in taphra/agent-test as it runs.