Experiment: Hexagonal Architecture Slows Coding Agents, Flat Code Wins 4 of 6 Hard Tasks

kristiyanstoyanovAI · reddit · 2026-09-16

The author ran a controlled experiment to test whether clean architecture standards still help when agents write most of the code. Two versions of an EV charging invoice service were built: one with hexagonal (ports and adapters) architecture plus architecture tests, one flat with no suggested architecture, both validated by the same external business-level test suite.

Results:

Takeaway: heavy abstraction reduces agent efficiency, though concentrated business logic may cause problems at larger scale. The author argues we should rethink which engineering practices to enforce rigidly in the agent era. Full report on Zenodo (PDF).

Original post →

More from coding & agent

coding & agent channel →