ClaudeAgentSDK — Development skill for Claude Code
Swift SDK for Claude Code — feature parity with the official Python SDK.
How to install ClaudeAgentSDK
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tddworks/ClaudeAgentSDK and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ClaudeAgentSDK does
Swift SDK for Claude Code — feature parity with the official Python SDK.
Alternatives in Development
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Swift Lsp — Swift /plugin install swift-lsp@claude-plugins-official 14k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
README
ClaudeAgentSDK
A Swift SDK for [Claude Code](https://docs.claude.com/en/docs/agents-and-tools/claude-agent-sdk/overview). Feature-equivalent to the [official Python SDK](https://github.com/anthropics/claude-agent-sdk-python), implemented as a thin, strongly-typed wrapper around the `claude` CLI.
- One-shot queries and bidirectional conversations
- Typed messages, content blocks, hooks, permissions, and control protocol
- In-process MCP servers — register Swift closures as tools Claude can call
- Session management: list / fork / rename / tag / delete transcripts from
~/.claude/projects/ - Structured JSON output via JSON schema
- Transcript mirroring to a custom
SessionStoreadapter - Real
claudeCLI smoke-tested; hermetic unit tests via/bin/shfixtures
**193 tests across 45 suites.** Zero test dependencies outside the Swift Testing framework and [Mockable](https://github.com/Kolos65/Mockable).
**Upstream parity:** this release tracks [Python SDK `0.1.63`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/CHANGELOG.md) (bundled Claude CLI 2.1.114). See [CHANGELOG.md](CHANGELOG.md).
Requirements
- macOS 15 (Sequoia) or later — uses
Foundation.Process+AsyncSequence - Swift 6.2 toolchain
- `claude` CLI on
$PATHwith valid auth (for real usage; tests run hermetically without it)
Installation
// Package.swift
dependencies: [
.package(url: "https://github.com/tddworks/ClaudeAgentSDK.git", from: "0.1.63")
],
targets: [
.target(name: "YourApp", dependencies: [
.product(name: "ClaudeAgentSDKDomain", package: "ClaudeAgentSDK"),
.product(name: "ClaudeAgentSDKInfrastructure", package: "ClaudeAgentSDK"),
]),
]
Quick start — one-shot query
import ClaudeAgentSDKDomain
import ClaudeAgentSDKInfrastructure
var options = ClaudeAgentOptions()
options.permissionMode = .bypassPermissions
options.maxTurns = 1
for try await message in Claude.
Related Skills
Claude Agent SDK Dotnet
A modern .NET library for interacting with the Claude Code CLI, with full Python SDK parity.
Feature Parity
Identify web/mobile feature gaps, generate parity plan, spawn parallel agents for both targets
Compat
Run the feature-parity comparison against the reference baseline for the project. Usage: /compat feature-area
Claw
86 Native macOS app wrapping Claude Code SDK in Swift. Plan Mode, MCP Integration, Custom System Prompts
MCPSwiftWrapper
A light wrapper around mcp-swift-sdk for easy usage of MCP clients in Swift
Claude Agent SDK Swift
Community Claude Agent SDK for Swift, with streaming, MCP, session stores, and tracing.
Related Agents
Swift Port Director
Directs C/C++-to-Swift porting projects, preserving functional parity, using a PDCA plan/build/check/document
iOS
Use for iOS app development tasks: Swift and SwiftUI code, UIKit work, Xcode project configuration, App Store
Al Agent Builder
Agent Toolkit Builder — specialist in designing and coding Business Central agents using the AI Development To