yusuke-114

Claude Xcode Agent — Development skill for Claude Code

Development community

Use Claude Code as the coding agent in Xcode 27, powered by your own API key or gateway.

How to install Claude Xcode Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yusuke-114/claude-xcode-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Xcode Agent does

Use Claude Code as the coding agent in Xcode 27, powered by your own API key or gateway.

Alternatives in Development

  • Breach Check — HIBP k-anonymity check on a password wordlist 4.5k ★
  • Spot — Place and manage spot trading orders on Binance via API key authentication, supporting mainnet and testnet 483 ★
  • Real Estate MCP — 🏠 Ask Claude about Korean apartment prices — powered by 국토교통부 open API 373 ★

README

claude-xcode-agent

Claude Code as an Xcode 27 agent, using your own API key or gateway.

Design

Xcode talks to agents over ACP, and an adapter (`claude-agent-acp`) bridges ACP to Claude Code. Used on its own, the adapter has two problems:

  • Xcode starts the agent from the GUI, so there's no shell env to hold a key or gateway URL.
  • The adapter hardcodes claude --setting-sources user,project,local, so your global ~/.claude/settings.json gets applied to Xcode too.

`claude-acp.sh` fixes both: the key and gateway come from `config.json`, and `~/.claude/settings.json` is not read unless you opt in with `setting_sources`. It does this by running twice in two roles:

flowchart LR
    X[Xcode] -- "launch
once" --> S1["claude-acp.sh
① as agent"] S1 -- exec --> A["ACP adapter
long-lived"] A -- "spawn claude
once per session" --> S2["claude-acp.sh
② as claude"] S2 -- exec --> C["claude
one per session"] X -. "ACP messages" .-> A A -. "session messages" .-> C
  1. As agent: loads config.json into env, points CLAUDE_CODE_EXECUTABLE at itself, execs the adapter.
  2. As claude: swaps --setting-sources for project,local, adds your MCP servers, execs the real claude.

Both steps `exec`, so no wrapper process stays alive and stdout stays pure ACP.

① runs once per agent launch, ② once per session. Messages within a session go straight to the running `claude`.

Run

git clone https://github.com/yusuke-114/claude-xcode-agent.git && cd claude-xcode-agent
./setup.sh        # installs node, claude and the adapter, then prints the path for Xcode

# optional: your own key / gateway / model / MCP servers (see Configure)
cp config.example.json config.json && chmod 600 config.json

In Xcode › Settings › Intelligence › Add an Agent…, set **Executable** to the printed `claude-acp.sh` path.

Logs go to `.runtime/agent.log`.

Configure

`config.json` lives next to `claude-acp.sh`. Every field is