SwiftAgent — AI skill for Claude Code
A type-safe, declarative AI agent framework for Swift.
How to install SwiftAgent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open 1amageek/SwiftAgent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What SwiftAgent does
A type-safe, declarative AI agent framework for Swift. Build composable AI pipelines with Steps, Agents, structured outputs, and tool integration. Features FIFO session management, MCP support, and distributed actor communication.
Alternatives in AI
- ARIS Agent Guide — For AI agents reading this repo 6.2k ★
- AI Investigator — An automated AI system (Python framework) designed to analyze any type of website content and generate structu 733 ★
- Snip — CLI proxy that reduces LLM token usage by 60-90% 425 ★
README
SwiftAgent
[](https://swift.org) [](https://developer.apple.com) [](https://swift.org/package-manager) [](https://opensource.org/licenses/MIT) [](https://1amageek.github.io/SwiftAgent/documentation/swiftagent/) [](https://deepwiki.com/1amageek/SwiftAgent)
A type-safe, declarative framework for building AI agents in Swift, built on Apple FoundationModels.
**[Documentation](https://1amageek.github.io/SwiftAgent/documentation/swiftagent/)**
Features
- Declarative Syntax - Build agents by composing Steps in
body, just like SwiftUI - Type-Safe - Compile-time checked input/output types
- Built on FoundationModels - Native Apple AI integration
- Structured Output - Generate typed data with
@Generable - Security Built-in - Permission, Sandbox, and Guardrail systems
- Extensible - MCP integration, participant runtimes, skills system
Installation
**Requirements:** Swift 6.4+ / iOS 26+ / macOS 26+ / a matching Swift 6.4 toolchain and SDK
dependencies: [
.package(url: "https://github.com/1amageek/SwiftAgent.git", from: "2.0.1")
]
.target(
name: "MyApp",
dependencies: [
.product(name: "SwiftAgent", package: "SwiftAgent"),
.product(name: "AgentTools", package: "SwiftAgent"), // Optional
]
)
OpenFoundationModels
SwiftAgent supports alternative LLM providers via SPM Traits. Enable the `OpenFoundationModels` trait to use OpenAI, Claude, Ollama, and more:
dependencies: [
Related Skills
Book Memex
Powerful eBook metadata management tool with SQLite backend, AI-powered enrichment, web interface, and compreh
Prompt Router
Prompt-Router: lightning-fast LLM gateway with a telemetry dashboard for coding agents (Goose, Cursor, Claude
AI Engineer
Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and
Hero Bg
Inspects a project's hero and generates a guided two-image, one-video AI background workflow with loop-safe pr
Polyglot Refactor
Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScr
Claude Code Global Config
Production-ready global CLAUDE.md template for Claude Code CLI - Anthropic's AI coding assistant. Clean Archit
Related Agents
Git Agent
Background git operations agent - commits, PRs, branch management, release workflows. Runs on Sonnet to free m
Ac Steps Author
Generates declarative AC step recipes (one .steps.json per AC) from requirement.md + frontend-architecture.md
Setup Guide
Run automatically at the start of every Lumen session to validate MCP connections and seed the context object.