The `--dangerously-skip-permissions` flag (a.k.a. "YOLO mode") does do the back-and-forth and asks questions, so this is a bit more than that.

Yes. I did not look but most probably the non interactive mode flag is used (-p)

It does `claude -p "This is the prompt" --dangerously-skip-permissions --output-format json`

Oh! TIL, thank you.