Posted by speckx 20 hours ago
After using AI for months (Claude, Gemini, ChatGPT) it is extremely rare for their code to work 'as is' first shot and almost always requires several iterations and cleaning up edge-cases.
When it does work 'first shot' it's usually when it's transferring existing working code to a new project which is slightly different.
I believe that increases the chances of one-shot code working, though it's also possible that it did that against Opus 4.5 and isn't necessary against Opus 4.7 but I haven't spotted the difference yet.
Very simple things like: "Write tests and make sure they pass." "Run lint after each change." "Write API docs in XYZ format."
In my experience, they are very good at fixing things they've done wrong after discovering them during those kinds of steps.
it's unbelievable, it will do the iterations for you, it will easily work 12 hours straight until it's a good output