Is there a way to programmatically "Apply changes to the file"

I’de like to create a loop where cursor chat suggestions get applied to the files without extra steps from my side. Is there a way to do it?

Try interpreter mode. It however can’t deal with a file that’s larger than 250 lines…

How do I switch to ‘interpreter mode’?

Go to Settings (“More” tab)
There is a switch