There are two reasons that AI makes mistakes writing code
The LLM just isn't smart enough to tackle the problem effectively, and it simply gets the answer wrong.
The AI doesn't know enough about the relationships and dependencies of the code it's editing, so (best case) it hallucinates APIs that don't exist or (worse, because more subtle) it solves the problem in an awkward way that increases technical debt.
Jonathan Ellis a Long-time CTO of DataStax, contributor of Apache Cassandra, creator of JVector and (finally) creator of Brokk - will talk about tackling these problems with the right AI-Tooling.