Remix.run Logo
▲ contravariant 3 hours ago

I think Conway's law applies. In an ideal situation your code mimics your organisational structure.

The places where you let an agent do its thing is bound by the (implicit) interface your prompt creates. In an ideal situation this interface is a simple isolated thing in your application.

If you just let it do its thing, expect a monolith. You shouldn't rely on it coming up with interfaces that mesh well with what you had in mind, and each of those interfaces represents a decision that it took, restricting future iterations of the code. So a monolith is not only what you can expect, but also the best you can hope for.

If you want to let it cook, create more places for code that does a thing and you don't care how.

▲dcss_gardener 42 minutes ago | parent | next [-]

You can steer it a lot with implicit context too, like ants following pheromones. If you put an empty docs/ dir in your repo agents will put documentation there without being told. If you put one inline test, they'll write every test inline. If you seed a decision record they'll record their decisions. If you have a lowercase sql query they'll use lowercase sql. If you write a test for wcag AA contrast they'll make ui with wcag AA contrast. And so on.

With some up front care you can create an environment where they mostly do what you want when you let them rip without oversight. As the codebase grows it becomes less likely they'll see any one example, and more rarely expressed ones can get missed. And then codebase predating LLMs or designed without this consideration you just have to accept what you get or wrangle them manually.

▲Ericson2314 3 hours ago | parent | prev | next [-]

BTW the usual point of Conway's structure is to try to adjust the org / who is working on the software, so you don't get a bad software architecture.

The "objective" nature of code is revealing a flaw in the human division of labor.

▲pjc50 3 hours ago | parent | prev [-]

Oh that's a good insight. The agent counts as part of the "organization" for this purpose.

▲Edward40 44 minutes ago | parent [-]

[flagged]