AI coding and instruction files ... a rather interesting exercise at perspective...
RawiWoof @rawenwolf@meow.social
Content warning: AI coding and instruction files ... a rather interesting exercise at perspective-taking; Warning: It long
I always held the view of "AI is at best a second pair of eyes/hands" but to make sure this still holds, I did a small experiment on my local PC (I feel bad for tormenting my rig with it). Remember, this is done in the interest of "know your enemy" and yes, my view from the past still holds and I still vastly prefer using my own eyes and hands unless something or someone holds a knife to my throat.
This time around I gave it an exercise that was used in my "Programming 101" course at uni. A simple C code with some constraints applied (only standard library, NO use of scanf -- done on purpose so we dip into strict input handling).
How did it fare? Well, it managed with a surprisingly competent result BUT ...
It "overthinks" like crazy. Seriously, watching the process of "building" the result had me like "Really? Why so convoluted?" way too many times.
The first iteration was all written in the
main()with no structure. Not that I did any better back then but it was an intersting observation. I had it redo the result with added constraints.The second result was indeed quite competently done but considering long it took tot put it together, it wasn't any faster than me writing the same code by hand which I did a day before and that code was basically reviewed "on the fly" as I wrote it. The LLM output I'd have to check and it's a single file I have to read like a book (bad idea for code).
But that's not what I found interesting in this experiment. The interesting part comes with the act of having to write the instruction file. You know, the dreaded agents.md. Because it gave me a different perspective.
The agent is a program; an algorithm. This means:
It won't do anything it's not instructed to do
It WON'T abide by any constraints that aren't explicitly stated. The sensationalist "AI going rogue" is basically an equivalent of the user forgetting to close their door when leaving the house.
It WON'T meet any metrics that aren't clearly and correctly defined.
To sum up, it turns the "programmer" into a "user". A user who doesn't know what they want, just like the very same users programmers spend a lot of time complaining about. Hence why I read the instruction files when I see them in a repo. Because if that file has too many red flags (badly specified constraints, missing, vague or ill-defined metrics, ...) then I'm looking at a project that done by someone who doesn't know what they want. Which is why "agentic development" is such a clusterfuck: You don't really know what exactly you want and want a machine which can't know and understand to figure it out for you. It's kind of like asking a barista to choose a coffee for you and then complaining that it was a wrong choice :neofox_googly:
So yeah, wasn't impressed before and am still not impressed (and probably never will be but I'm a hard-to-impress person in general). Even less so when this shit's like a propagandist nuclear bomb and full of people I wouldn't want anywhere within a planet's distance of me.