Step 4: Architecture from the literature
Step 4: Architecture from the literature
The fourth step of the harness I put around my coding agents: skills written from the software engineering literature, DDD, hexagonal architecture, MVVM, instead of my own habits.
Part of the series: Codebase Harness, Step by Step · View all parts
Previously in this series: Step 3: A dead-code finder in the loop
My first skills described the architecture I used to write: years of trade-offs between time and features. Then it struck me: software engineering already answered most of those questions, and agents were trained on the answers. So I went to learn them.
Two dimensions. A guide acts before the agent, a sensor after. Each is inferential, judged by a model, or computational, decided by a program. Inferential guides are what the agent reads, AGENTS.md, a skill, a plan, sharper written in the literature's words; computational guides are deterministic tools, a codemod, a generator, a command that acts in the agent's place, code mode, where the agent writes a program instead of a string of actions, a language server. Inferential sensors are a review by a model or a person; computational sensors are the type checker, the linter, tests and fitness functions. Each practice moves a judgement toward computation, and the computational sensor is the optimum.
- 4 · literature in skillstoday
- 1 · type checker
- 2 · linter
- 3 · dead code
In Birgitta Böckeler's grid of guides and sensors, a skill is an inferential guide: the model reads it before it acts. The literature makes that guide sharper. It still checks nothing: tomorrow's post. The series' map: Guides and Sensors: Mapping Your Attention to Free It
Which literature
DDD, hexagonal architecture, MVVM. I had heard of all three and practised them partly, or not at all. With an agent writing the code, the time they cost stopped being the argument against them.
A skill that says "hexagonal: the domain imports no adapter" points at a body of work the model already knows. A skill that describes your house style starts from zero.
These three, and the other practices I build on, each with the books and papers that name it. Say which ones you use: foundations.steme.dev
Next in this series: Step 5: Skills hold what no tool checks
A thought after reading?
If you would like to discuss about this article, you can write to me here. I share because I care and I want to learn. Please teach me with care.