Xcode can now host external coding agents, and the natural assumption is that connecting one is a matter of pasting a command line into a settings dialog. It nearly is. The whole integration turned out to hinge on what that dialog refuses to accept.
The mechanism underneath is the Agent Client Protocol: JSON-RPC over standard input and output, with the editor spawning the agent as a child process for each session. There is no port, no token, no network listener. This is a quiet but important design property. The wire format is standardized, yet the actual integration surface is process spawning, which every editor does slightly differently.
Why Xcode needs a wrapper
Devin's CLI already implements the protocol as a subcommand, so in a terminal the server is simply devin acp. Xcode's registration dialog, however, offers exactly three fields: a name, an executable path, and an interpreter. There is no arguments field, and a subcommand is an argument. The executable must be the complete invocation, which means the bridge between Xcode and Devin is a shell script.
Create the Devin ACP wrapper
The script is two lines. First the shebang #!/bin/sh, then a single exec of the Devin binary with the acp subcommand, passing through any arguments with "$@". I keep it at ~/.local/bin/devin-acp, executable, with the absolute path to the devin binary inside. The absolute path is not decorative: graphical applications on macOS launch subprocesses with a minimal PATH, so anything resolved by lookup works in the terminal and silently fails from the dialog. The interpreter field stays empty for a related reason: the shebang already names the interpreter, and macOS honors it when executing the file directly.
#!/bin/sh
exec /absolute/path/to/devin acp "$@"Register Devin in Xcode
The registration itself is then almost anticlimactic:
- Name: Devin (any label, it is only display text).
- Executable: paste the absolute path printed by the Terminal command below. A typical result is
/, with your own account name in place ofUsers/ YOUR_USERNAME/ .local/ bin/ devin-acp YOUR_USERNAME. - Interpreter: empty. Not
sh, not the script again. Empty.
Run printf '%s\n' "$HOME/ in Terminal and copy the output into Xcode’s Executable field. The shell expands $HOME to your actual home directory. Paste the resulting absolute path as plain text in Xcode. This also works if your home directory lives outside /Users.

After saving, open New Conversation and choose Devin under Agents.

Verify the ACP handshake
Before trusting the dialog I verified the binary exactly as Xcode would run it: fed the wrapper a JSON-RPC initialize request over stdin and read the answer. A healthy server replies with the protocol version and its capabilities (in Devin's case version 1, with sessions, terminals, diffs and file mentions). That handshake is the entire smoke test. If the wrapper answers initialize correctly when spawned bare, the editor side is configuration rather than debugging.
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{}}}' | ~/.local/bin/devin-acpChoose a session mode
Two operational details were worth learning before the first session. Devin runs agents in a shared background daemon by default, so a session started inside Xcode is the same session visible in the terminal and desktop app: you can hand a conversation to yourself across surfaces. If that coupling is unwanted, --process-model in-process isolates each Xcode-spawned agent, and --cloud delegates to cloud sessions instead. And permission prompts travel through the protocol into Xcode's own interface, while the default approval behavior still comes from the CLI's config file; that is where to tune it if the editor asks for too many confirmations.
The broader lesson is one I keep relearning in platform work. The protocol standardized everything except the last meter. What remained was not authentication, transport or schema negotiation, but the mundane facts of how one specific application spawns processes: no arguments field, a stripped-down PATH, a shebang doing quiet work. Integrations fail at the unglamorous edges, so verify the edge first and the architecture second.
The workflow verdict
Two questions were left after setup: how permission prompts would behave inside the editor, and what the agent could actually do there. The same night, I handed the agent a real job inside the editor: build a live audio DSP instrument (microphone capture, lock-free ring buffer, FFT analysis, a scrolling spectrogram), then extend it with on-device sound classification. The session ran overnight, and both halves of the question came back answered, neither the way I expected.
The permission-prompt question never materialized, because there was nothing to prompt for. Terminal creation failed in the first minute of the session and never recovered: twenty-eight Failed to create terminal errors spread across the night, and not one shell command ran. No git, no mkdir, no file moves. I had imagined a debate about how many confirmations are too many. The reality is binary: inside the editor the agent has no shell at all, so the terminal is not the fallback for destructive operations. It is the requirement for ordinary ones. Every commit that night happened in a terminal window I opened myself.
What the agent did have was the Xcode-native surface, and it is genuinely strong. Builds, test runs, simulator and physical-device deployment, console logs, and full UI driving: taps, screenshots, view hierarchies. The entire verification loop ran without leaving the editor: a synthetic 440 Hz tone fed through the analysis pipeline read 440.0 Hz / A4 +0¢ on a captured screenshot, the microphone permission flow was driven through the system prompt by synthetic taps, and an audio-session hang-risk warning surfaced in the device console and was fixed minutes later. The first milestone went from empty template to verified instrument in about fifty minutes.
The missing shell produced the most inventive and least sustainable workaround I have ever watched an agent perform. Unable to create the directories for an Icon Composer package, it reached for a debugging tool that executes Swift inside the running app, pointed it at the iOS simulator (a macOS host process with host filesystem access) and ran directory creation and file moves through the simulated phone as a makeshift shell. It worked. It should not have to.
Long sessions hold up better than expected, with caveats. The session survived three context compactions across the night and resumed cleanly each time. But the helper subagent spawned for verification had no access to the Xcode tools at all, so delegation collapsed back into serial work in the parent. The editor occasionally fights the agent: folder synchronization registered icon files before they existed, and stale issue records outlived their fixes. And the session did not so much finish as degrade. The next morning, test discovery silently broke during new feature work, the agent circled, and I interrupted it.
So the verdict: the inner loop is real. Build, run, verify, fix, all inside the editor, faster than I would have done it myself. But the integration currently assumes the whole job fits inside editor-shaped tools. The moment work needs the filesystem, version control, or anything shell-shaped, you are back in the terminal, not because the prompts are annoying, but because there is nothing to prompt. The last meter again: this time it is not how the editor spawns the agent, but what the agent is allowed to touch once it is running.
