I got fed up of posting the same comment every time the topic of LLM hallucinations in code comes up (short version: they don't matter because you'll spot them the second you try to run the code) - so I've turned that comment into a longer form blog post https://simonwillison.net/2025/Mar/2/hallucinations-in-code/