Original Reddit post

I noticed that claude keeps generating python scripts and then runs those scripts to make the actual code changes. According to claude itself, this is baked into the agent, if permission-mode is ‘auto’. It will only try to change the files directly when it ‘acceptsEdits’ mode, so it says. T don’t fully understand the purpose of this. Can you explain the benefit? Is there a reason I should not want it to edit the code files directly? submitted by /u/JBO_76

Originally posted by u/JBO_76 on r/ClaudeCode