Frameworks

Spring AI Agent Replaces Koog: What Kotlin and Java Developers Need to Know

Koog will get no new features, and its ideas move to Spring AI Agent. Here is what changes for Spring, Ktor, Kotlin Multiplatform, and Android teams, and when to act.

Spring AI Agent replaces Koog for Kotlin and Java developers building AI agents
Spring AI Agent carries Koog's agent ideas into Spring Boot applications.

JetBrains says its AI agent framework Koog will receive no new features. Its core ideas will continue in Spring AI Agent, a new framework for Java and Kotlin developers.

An AI agent is a program that uses an AI model to plan steps and take actions. Koog helps developers build these agents on the JVM, the platform that runs Java and Kotlin code.

What was announced

JetBrains introduced Koog in May 2025 as an open-source framework for building autonomous AI agents on the JVM. Teams liked it for its type safety, graph-based workflows, and enterprise reliability.

Now Koog's core ideas will continue in Spring AI Agent. It is a new framework for building agents in Java and Kotlin inside Spring Boot applications. The Spring team builds it in strategic collaboration with JetBrains.

JetBrains notes that most teams running Koog in production already use Spring. It sees Spring AI Agent as Koog's successor because those teams can keep modeling workflows as type-safe graphs.

A type-safe graph is a workflow drawn as connected steps, where the code checks that the data passed between steps is the right type.

What happens to Koog

  • Koog will not receive new features.
  • Koog v1 stays open source under the Apache 2.0 license and remains on Maven Central.
  • JetBrains still stands by its May 2026 promise of no breaking changes in stable modules for at least one year.
  • Existing Koog apps keep working, and nobody is forced to migrate.

Still, since no new features are coming, JetBrains suggests planning your next steps ahead of time. The Koog documentation remains the place to learn the current framework.

If you build with Spring

You do not need to change anything today. But if you want active feature development, you will benefit from moving once Spring AI Agent reaches its stable release in May 2027. JetBrains plans to publish agent skills in Q1 2027 to help automate the move.

If you are starting a new Spring project, you can try the experimental release. JetBrains asks people to share their Kotlin experience in the #spring-ai-agent channel on the Kotlin Slack to help shape its Kotlin DSL. A DSL is a small, readable way of writing code for one specific job.

What carries over and what changes

Spring AI Agent is a new library, not Koog with a new name. Moving an existing Koog app will mean rewriting parts of the agent layer.

  • Architecture: your mental model of typed graphs and subgraphs carries over. Spring AI Agent already has many Koog capabilities, such as multimodality, structured outputs, prompt and client-side caching, chat memory, MCP, and OpenTelemetry. Their APIs and settings look different.
  • Kotlin experience: today's experimental release is written in Java and uses fluent builders, which work from Kotlin right away. It also has Kotlin extensions and a Kotlin DSL for building graph agents, and more are planned.

The Spring AI team does not plan to support every Koog feature. It does want to hear about major use cases that are missing, and asks users to open an issue in the Spring AI Agent repository.

If you build with Ktor

Ktor is flexible and works with many libraries and SDKs. JetBrains suggests these options for new projects or ongoing feature work:

The Ktor team is now focused on performance and security. It is also thinking about whether Ktor-specific plugins are needed, and runs a survey to collect feedback. A broader Ktor survey is planned for Q1 2027.

If you build Kotlin Multiplatform or Android apps

JetBrains admits this is disappointing for teams that chose Koog for Kotlin Multiplatform (KMP) or Android support. There is no direct replacement yet, and few mature agent libraries run purely from shared KMP code. It lists these paths:

  • Apps with a server: run Spring AI Agent on the JVM and connect your client over HTTP or MCP. The Kotlin MCP SDK remains multiplatform.
  • Android-only apps: consider Google's Agent Development Kit for Kotlin, which supports on-device and cloud models.
  • KMP apps using platform SDKs: tools such as RunAnywhere, Firebase AI Logic, Google LiteRT-LM, and ML Kit offer native links across Android, iOS, and web. Apple's Foundation Models are an option for Apple platforms.
  • On-device agents in shared KMP code: Llamatik is a new open-source KMP library built around llama.cpp that gives a shared Kotlin API for local models.

JetBrains also notes that these platform tools cannot be called directly from common Kotlin code.

Not on Spring? Tell JetBrains what is missing

If you use Koog in Ktor, KMP, or Android, or planned to, JetBrains asks you to fill in its survey. It wants to learn what you build and what the ecosystem lacks. Teams running Koog in production can also chat with the company in the #koog-agentic-framework channel on the Kotlin Slack.

What It Means for Developers

The big question is simple: do you use Spring, or not? Your answer decides how urgent a move is.

What It Means for Backend Developers

  • On Spring Boot, Spring AI Agent is the intended future path, and your typed-graph thinking carries over.
  • Plan for a rewrite of your agent layer, because APIs and settings differ from Koog.
  • Spring AI Agent is experimental until May 2027, so test it in side projects before using it in production.
  • On Ktor, compare LangChain4j, LangGraph4j, and Google's Agent Development Kit for new work.

What It Means for Software Developers

  • No emergency: Koog v1 keeps working and stays under the Apache 2.0 license.
  • Java developers can use the fluent builders now, and Kotlin developers get extensions and a graph DSL that are still growing.
  • Mobile teams should check the options above and share their needs through the survey, since JetBrains has no direct KMP or Android replacement yet.
  • Read how another toolkit shapes agent development in our story on the AWS Strands Agents Rust SDK.

Bottom line

Koog is not disappearing overnight, but its future work moves to Spring AI Agent. Spring teams have a clear path and a date, May 2027, to watch.

If you are on Ktor, KMP, or Android, keep an eye on JetBrains updates and use the survey to say what you need. Also see our story on JetBrains IDE price changes.

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author