Back to Blog
Developer Tools June 7, 2026 5 min read

Kotlin 2.4.0 Ships With Swift Package Support and WebAssembly Component Model — Koog 1.0 AI Agent Framework Goes Stable

JetBrains released Kotlin 2.4.0 on June 3, bringing native Swift package dependencies for Kotlin/Native, WebAssembly Component Model support, and Java 26 compatibility. Alongside it, Koog 1.0 — the production-ready AI agent framework for Kotlin — reached stable status at KotlinConf'26.

Kotlin 2.4.0 Ships With Swift Package Support and WebAssembly Component Model — Koog 1.0 AI Agent Framework Goes Stable

JetBrains shipped Kotlin 2.4.0 on June 3, 2026, the most cross-platform-friendly release the language has seen in years. For Android developers building iOS targets with Kotlin Multiplatform, the headline addition is native Swift package support in Kotlin/Native — meaning KMP projects can now pull in Swift packages directly, without bridging layers or manual wrappers.

What Changed in 2.4.0

Kotlin/JVM gains full Java 26 compatibility and has metadata annotations enabled by default, reducing boilerplate for reflection-heavy frameworks. Kotlin/Wasm lands two significant changes: incremental compilation is now on by default (a meaningful developer experience improvement on large Wasm projects), and the WebAssembly Component Model is supported — the interoperability standard that lets Wasm modules work seamlessly across languages and runtimes, a key enabler for polyglot edge deployments.

Tooling updates are practical and welcome. Kotlin 2.4.0 is compatible with Gradle 9.5.0 and adds automatic alignment between Java and JVM target versions in Maven builds, eliminating a persistent source of misconfiguration. The standard library stabilizes UUID APIs and adds sorted-order checking utilities.

Koog 1.0: AI Agents in Idiomatic Kotlin

Announced at KotlinConf’26 and now stable, Koog is JetBrains’ answer to the crowded AI agent framework space — built specifically for Kotlin, not ported from Python or JavaScript.

The 1.0 release offers type-safe workflow DSLs for building reliable multi-step agents, persistence and recovery mechanisms for long-running processes, and first-class integrations with Spring AI, Ktor, and observability tooling. It works across backend services, mobile (including on-device inference via Google’s Gemma models on Android), and multiplatform projects.

Mercedes-Benz is already running Koog in production for vehicle maintenance support agents, which is the kind of reference customer that signals a framework is ready for enterprise use rather than demo apps.

The 1.0 stability guarantee covers one year of API compatibility — an explicit commitment that matters when you’re wiring AI agents into production systems that need predictable upgrade paths.

Why This Matters

Kotlin’s multiplatform story has been strong for a while, but Swift package support closes one of the last friction points for teams sharing business logic across Android and iOS while still consuming native Apple ecosystem libraries. Combined with the WebAssembly improvements, Kotlin 2.4.0 positions the language for serious cross-runtime deployments — mobile, server, and edge — from a single codebase.

Koog 1.0 completes the picture on the AI side: JetBrains is betting that Kotlin-native tooling will win over teams already building in the ecosystem, rather than ceding the AI agent space to Python-first frameworks.

Kotlin 2.4.0 is available now via the JetBrains plugin repository and the Kotlin Gradle plugin. Koog 1.0 is open source on GitHub.

Sources

Kotlin JetBrains AI agents WebAssembly