GitHub – hpennington/agentswift · GitHub

Download AgentSwift-0.1.zip You need to install the dependencies listed below for the binary to work. See below for setup commands.

Dependencies:

  • xcode
  • Xcode command line tools
  • xcodebuildmcp
  • openspec

AgentSwift Settings Panel

AgentSwift

A native macOS app that runs an autonomous AI coding agent for Apple platform development. Describe what you want to build, and AgentSwift uses the cloud to discover, apply changes, build, run, and verify your project – without ever touching Xcode.

AgentSwift runs a multi-step agentic workflow:

  1. discover – Cloud inspects your Xcode project structure and plans
  2. implement – Edits source files to match your request
  3. Construction – runs xcodebuildmcp to compile
  4. launch/validate – Boots the app on a simulator or macOS, runs UI automation to verify behavior
  5. archive – symbolizes completion of work

Install these two CLIs before running the agent:

Xcode provides build, launch, and UI automation capabilities for projects.

npm install -g xcodebuildmcp

Tracks implementation specifications across agent sessions.

npm install -g @fission-ai/openspec
  1. Build and run the app in Xcode.
  2. open settings And enter your Anthropic API key.
  3. select a project folder (The root of your Xcode project).
  4. alternatively choose one ios simulator From the dropdown.
  5. Type what you want to create and press cmd+return.

The agent explores your project plan and simulator goals the first time around. Subsequent runs skip the search and go straight to implementation.

Sample when to use
cloud opus 4.7 Complex tasks, large codebases
cloud sonnet 4.6 Fast Replay, Light Tasks

  • message queue – If you send a new message while the agent is running, the latest one replaces the first one
  • create caching – Scheme, project path and simulator ID are extracted and reused automatically after the first build
  • error increment – The agent attempts to fix a failure, then shows you the error instead of looping
AgentSwiftApp.swift    — app entry point
ContentView.swift      — UI, view models, agentic loop
AnthropicService.swift — Anthropic API client (streaming SSE)
ToolExecutor.swift     — bash / read_file / write_file execution
Item.swift             — chat message model

No external Swift dependencies – pure SwiftUI + Foundation.



<a href

Leave a Comment