How to stop the agent/apply feature from auto formatting a whole file?

I have (to my knowledege) disabled all auto-formatting and when I personally go and save a file it does NOT go a reformat stuff. However when the agent applies code, it changes hundreds of lines to a different style of formatting. This is super annoying because it’s virtually impossible to tell what the agent actually did vs what is the autoformatting. Is there any way to disable this?