Show HN: I Built LangGraph for Swift

Swift fans cheer as someone finally gives Apple coders their own AI playground

TLDR: A new Swift framework called Swarm lets Apple developers build AI helpers and multi-step workflows without leaving Swift. The comments turned it into a mini uprising, with fans cheering that they can finally stop relying on Python for this kind of work.

Apple developer land got a tiny victory lap this week after a maker posted Show HN for LangGraph for Swift, a framework called Swarm that helps people build AI assistants and even chains of multiple assistants in Apple’s programming language. In plain English: instead of reaching for Python, the usual go-to language for AI projects, Swift developers can now keep more of that work in their own backyard.

And the real heat came from the crowd reaction. The loudest mood was pure relief. One commenter dropped a polite “Nice work!” but the bigger applause line was basically a battle cry: “finally someone is building the tooling for Swift, tired of using python.” That one comment says everything about the vibe. This wasn’t just a product launch — it felt like a small rebellion from Apple coders who are sick of feeling like the AI party always happens in someone else’s language.

There wasn’t much of a full-on flame war in this tiny thread, but the tension is still easy to read between the lines: Team Swift versus Team Python, with Swift fans acting like they’ve finally been invited to the cool kids’ table. The humor is subtle but unmistakable — less meme chaos, more exhausted-developer catharsis. The framework promises crash recovery, safe multitasking, and support for lots of AI systems, but the community story is simpler: Swift people are thrilled to stop borrowing Python’s homework.

Key Points

  • Swarm is introduced as a Swift framework for building AI agents and multi-agent workflows, with workflows compiled to a DAG and support for crash recovery.
  • The framework uses a type-safe tool system where the `@Tool` macro generates JSON schema from Swift structs at compile time.
  • Swarm enables durable workflow checkpointing, allowing workflows to resume from explicit checkpoint IDs after crashes.
  • The framework supports a shared abstraction across multiple model providers, including Foundation Models, Anthropic, OpenAI, Ollama, Gemini, MiniMax, OpenRouter, and MLX.
  • An in-repo capability showcase and optional demos cover features such as streaming, routing, handoffs, memory, observability, MCP discovery, and sequential or parallel workflows.

Hottest takes

"Nice work!" — sjashwin
"finally someone is building the tooling for Swift" — minmin222
"tired of using python" — minmin222
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.