Post

Replies

Boosts

Views

Activity

Comment on Xcode copilot agent
Looks like the Environment variables are likely the problem. When Xcode runs the Executable, it may not have all the environment setup that it needs. I created a wrapper script with execute bits set that sets up the environment and then just calls copilot and that seems to work. Set the Xcode Agent config to path to the script. It would probably also work to add Environment Variables to the Xcode Agent setup as well. ~/bin/xcode-copilot-agent: #!/bin/zsh -i copilot --acp
Jun ’26
Comment on Xcode copilot agent
Interesting. Yes the normal Copilot CLI is working. Also working is just sending an initialize message to the copilot --acp so that seems to work. One interesting thing, is that I never get ~/.copilot/logs/process-NNNN.log when Xcode tries to use that agent, but I do when I run it manually. Almost like Xcode is not really running the Executable. $ echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"capabilities":{}}}' | copilot --acp <json response>
Jun ’26
Comment on Xcode copilot agent
Looks like the Environment variables are likely the problem. When Xcode runs the Executable, it may not have all the environment setup that it needs. I created a wrapper script with execute bits set that sets up the environment and then just calls copilot and that seems to work. Set the Xcode Agent config to path to the script. It would probably also work to add Environment Variables to the Xcode Agent setup as well. ~/bin/xcode-copilot-agent: #!/bin/zsh -i copilot --acp
Replies
Boosts
Views
Activity
Jun ’26
Comment on Xcode copilot agent
Interesting. Yes the normal Copilot CLI is working. Also working is just sending an initialize message to the copilot --acp so that seems to work. One interesting thing, is that I never get ~/.copilot/logs/process-NNNN.log when Xcode tries to use that agent, but I do when I run it manually. Almost like Xcode is not really running the Executable. $ echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"capabilities":{}}}' | copilot --acp <json response>
Replies
Boosts
Views
Activity
Jun ’26