Sonnet 3.7 thinking does incomplete jobs how to imprive?

I have many runs with sonnet 3.7 sonnet and thinking mode agent.

Im refactoring some nextjs code to remix and gove command like:

Refactor code in foldernextjs to remix in folderx include all components library and hooks replicate the ui 1:1

But it makes incomete code
Components not refactored or with placeholders.

Indo have a specific project rule eith many rule son ■■■ to concert nextjs to remix but it still gives many incomplete code

How to improve this?
Should i try with another model?

I burned 20 euros on requests which is fine of it does the job but like this cursor is not really helping me.

Simple tasks it so mostly good but converting a filetree or multiple files is problematic

Please anyone advise me on how to get better results!