1amageek

SwiftAgent — AI skill for Claude Code

AI community

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

SwiftAgent

[![Swift 6.4](https://img.shields.io/badge/Swift-6.4-orange.svg)](https://swift.org) [![Platforms](https://img.shields.io/badge/Platforms-iOS%2026%20|%20macOS%2026-blue.svg)](https://developer.apple.com) [![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Documentation](https://img.shields.io/badge/Documentation-DocC-blue)](https://1amageek.github.io/SwiftAgent/documentation/swiftagent/) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](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: [