Important
There have been many changes as of 26.5. Please see the new table of flags for 26.5.
Note
This addresses the concern of "how to get Xcode's agent support to reach outside of itself without asking for permission" but does not address the reverse of "how to get a terminal agent to talk to Xcode without prompting."
This is basically the equivalent of running something like claude --dangerously-skip-permissions, so... probably this is a bad idea.