I think it's safe to say don't use Windsurf. There are so many other options.

Unfortunately this seems to be true. I like Windsurf, but these days I just use it as a harness for running Claude Code while still retaining decent code completions.

Try Gemini CLI too. Free and I like it more than Claude Code.

This is the final fix. I'm confident this will resolve all the errors.

[API Error: got status: INTERNAL. {"error":{"code":500,"message":"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting..."}}]```

How do you do the nice line-by-line (or section-by-section) before/after handling in a CLI tool?

Start with a clean git (even if you're just committing WIP locally). Run the tool. See the diffs in your IDE. They show up immediately in IntelliJ; use the "commit" pane. Same as if I had edited a bunch of files.

Works fine.

It has an external editor option (which I havent tried) the cli interface by default is pretty bad for medium to large code changes.