Mentat also iterates on GitHub Actions.
If you want to get the most out of Mentat, you ought to setup GitHub Actions.
Here, it iterated three times before passing. iirc some tests were failing, then there was a typing issue.
Important note: you can set a 'Credit Limit' on your agents, which is the number of credits it can spend without any human interaction. By default this is $5.
So if it's spent $5 and still hasn't passed CI, it will stop until you poke it again.