Two days ago I had thoughts about why this was not the thing for frontier agents. Predict the effort, estimate you will not get into the left limit. Ask a user to go full throttle or try to wrap up to give at least something.
When this happened to me, I always reverted to DeepSeek and asked it to make the game/app compilable again!
Claude Code will now try to find a graceful stopping point when you hit your 5-hour limit mid-task, instead of cutting off mid-edit. It gets a small, fixed allowance pulled from your weekly limit to wrap up what it can.