| ▲ | mohsen1 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
I've experimented with agentic coding/engineering a lot recently. My observation is that software that is easily tested are perfect for this sort of agentic loop. In one of my experiments I had the simple goal of "making Linux binaries smaller to download using better compression" [1]. Compression is perfect for this. Easily validated (binary -> compress -> decompress -> binary) so each iteration should make a dent otherwise the attempt is thrown out. Lessons I learned from my attempts: - Do not micro-manage. AI is probably good at coming up with ideas and does not need your input too much - Test harness is everything, if you don't have a way of validating the work, the loop will go stray - Let the iterations experiment. Let AI explore ideas and break things in its experiment. The iteration might take longer but those experiments are valuable for the next iteration - Keep some .md files as scratch pad in between sessions so each iteration in the loop can learn from previous experiments and attempts | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | medi8r 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
You have to have really good tests as it fucks up in strange ways people don't (because I think experienced programmers run loops in their brain as they code) Good news - agents are good at open ended adding new tests and finding bugs. Do that. Also do unit tests and playwright. Testing everything via web driving seems insane pre agents but now its more than doable. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | skapadia 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
"Test harness is everything, if you don't have a way of validating the work, the loop will go stray" This is the most important piece to using AI coding agents. They are truly magical machines that can make easy work of a large number of development, general purpose computing, and data collection tasks, but without deterministic and executable checks and tests, you can't guarantee anything from one iteration of the loop to the next. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | MartyMcBot 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
[flagged] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | octoclaw 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
[dead] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | CloakHQ 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
[flagged] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||