@ericclemmons ADRs should be written mostly by humans and only for critical decisions (which should be made by humans) which are unlikely to change quickly (outside of experimental code).
What you probably want is some kind of architecture documentation that can evolve with the system.
@mitsuhiko how much of the code do you read? how do you prompt "give me Y" or "use pattern X to do Z"? how do you still understand your codebase over time? how do you keep that feeling of familiarity / of habitat?
I've got an agent in a loop optimizing a renderer with the goal to minimize frame times (and tests to measure). It got times down from 88ms to 2ms and allocations down from ~150K to 500. Sounds good, right? Wrong. This is exactly why agent psychosis is a big fucking problem.
As an experiment, I rewrote the Ghostty core render state in Go, with access to identically laid out data structures as Ghostty and the exact same validation tests. I made a purposely naive renderer (simple, correct, but slow). 88ms per frame with 150,000 allocations (horrendous, lol)!
I then kickstarted a Ralph loop to bring the frame times down. I told it it can't modify input data structures or the public API or tests (they're correct), but it can do anything else it wants. It got to work.
It has worked for about 4 hours. I've spent around $350 on this experiment so far. The results?
88ms => 1.5ms
150K allocs => ~500 allocs
Incredible right? Nope.
My hand-written renderer I ported has frame times (same benchmark) of ~20us (0.020ms) and 0 allocations in the update path.
This is the problem with psychosis and lacking systems understanding. If you don't understand the system, you're going to accept that this is an incredible result. If you understand the system, you'll see better solutions immediately and can do roughly 75x better on throughput.
The people who blindly trust agent output are in the former camp. They're sheeple, overdrinking from a fountain of mediocrity.
Standard disclaimer: I use AI all the time. I like AI. The point I'm making is to not blindly accept results. Think. Analyze. Learn.
@thorstenball Good stuff
one thing: the "how" is broadly (not only high blast radius) important if detail-outcomes matter (tight resources, industries where you cant afford to not read the code...). Solve this by prescribing building blocks and letting it assemble - still blazingly fast dev
@poteto@WallisDev how do you decide in which direction to refactor if not by making concepts clearer and boundaries more meaningful (arguably one of the definitions of "clean code")?
@rfleury@mldylne@dimitrov2k I am just wondering how you would sustain your focus on quality if there was pressure? Like in more commercial software, as an IC there are some ways but often you have much less control, so cutting corners was endemic before agents already
@rfleury@mldylne@dimitrov2k how would you describe the commercial pressure on you with this project?
I am very sympathetic to the quality mindset but often find myself rushing to market or being in a position where the detailed work is not valued enough (a little, sure).
Might be the case for most devs?
undecided if writing excellent code was / is the thing I liked - and ergo I need a new career to stay satisfied
or if I should go all in to my existing domain modelling and architecture tendencies
@artillain could you go into more depth or give an example? I am trying to find workflows that are less soul-destroying than "plan with agent, prompt agent, review agent code, think about trying manual labor"
@simonlast Seems to be in direct contradiction to what @mattpocockuk is teaching? Dont you worry about the agent becoming dumber with the context window becoming fuller? I have noticed quality degrade rapidly.
@jamonholmgren @agent_loop @agents any specific formats you follow for specs? What I have seen so far (in the context of agentic coding) has been all over the place