What do you do for hours?
If all you're thinking about is code output, you're thinking too small.
https://www.anthropic.com/news/claude-4
It was given a task and it solved a problem by operating for 7 hours straight.
Your key objective is to fix a bug in the XYAZ class. Use a team of experts as sub-agents to complete the analysis, debugging and triage work for you. Delegate to them, you are the manager and orchestrator of this work.
As you delegate work, review and approve/reject their work as needed. Continue to refine until you are confident you have found a simple and robust fix"
Anecdata, but it weirdly helped me. Seemed BS for me until I tried.
Maybe because good code is contextual? Sample codes to explain concepts may be simpler than a production ready code. The model may have the capability to do both but can't properly disguished the correct thing to do.
I don't know.
Think beyond just saying "do this one thing".