I have written about code hallucinations both as a practical concern and as a way to experiment with LLM-generated behavior. These notes capture my view that running code exposes many hallucinations, alongside a Python object that generates methods on demand.
I got fed up of posting the same comment every time the topic of LLM hallucinations in code comes up, so I turned it into a longer form blog post.
My short version is: they don't matter because you'll spot them the second you try to run the code.
I shared the longer-form blog post at https://t.co/eDhxpwiGCn.
I described a Python object that hallucinates method implementations on demand any time you call them, using my LLM Python library.
I shared https://t.co/z2fHhirW9z and https://t.co/4Ze37zvumS in connection with the on-demand Python object.
I said, “I like putting eval in places it shouldn't be as a hobby.”
Related: engineering quality with agents, building skill with coding llms, coding agents reshape software work