Have you tried AutoGPT? I've heard that it can do a bit more through iteration. Haven't tried it out yet for coding hard problems.
It will probably work better in the future, but so far it is a bit limited. Probably a memory limitation more than anything.