The Spring team, working with JetBrains, has released Spring AI Agent. It is a new experimental project for building reliable AI agents inside Spring Boot applications.
It shares core design ideas with, and was inspired by, Koog, JetBrains' open-source agent framework. If you use Koog, our story on what Spring AI Agent means for Koog covers what changes for you.
What was announced
Spring AI Agent was released by the Spring team in strategic collaboration with JetBrains. The Spring team builds and maintains the core project. JetBrains is advancing the Kotlin side, including natural Kotlin DSLs and its own documentation.
The project is incubating in the spring-projects-experimental/spring-ai-agent repository. There are plans to merge it into Spring AI as part of Spring AI 3.0, scheduled for May 2027. A DSL is a small, readable way of writing code for one specific job.
Michael Minella, Director of OSS Spring R&D at Broadcom, said the work with JetBrains helps improve the developer experience in many parts of a developer's workflow, from IDE tools and Kotlin support to this new agent project.
Why agents need structure
Adding one call to an AI model in a Spring app is easy. Building a reliable AI agent is much harder. An agent works in many steps, calls tools, keeps state, and makes choices along the way.
If you leave that whole flow to the model, the results are hard to predict and hard to test. Spring AI Agent adds structure to fix this.
Key features of Spring AI Agent
Predictable, testable workflows
You define an agent as an explicit, typed graph, using ModelGraphAgent or GraphAgent, with a fluent builder and Java records or Kotlin data classes. You control every step and move. Each node, or step, can be tested on its own with unit tests.
Modular and ready for enterprise use
- Subgraphs and subagents let you build bigger workflows from smaller parts.
- A2A protocol support is built in. A2A is a standard way for agents to talk to each other.
- Built-in persistence through
CheckpointFeaturelets long-running agents survive crashes and pause for a human to approve a step.
Simple concurrency without reactive boilerplate
Many teams are pushed toward reactive pipelines. Spring AI Agent instead offers an imperative streaming API, called Source<T>, backed by Virtual Threads. Virtual Threads are lightweight threads in modern Java. You can read streamed events in a plain loop.
Adapters for Reactive Streams are available today, and support for Kotlin Flow is planned.
Native Spring integration
The agent lives inside your Spring Boot app and can call your existing services, data, and integrations directly.
Vadim Briliantov, a former technical lead of Koog at JetBrains, said Spring is a natural home for this idea. A Spring app already holds the data, integrations, and business logic that make agents useful.
The Kotlin side of the partnership
In May 2025, JetBrains and the Spring team announced a partnership to make Kotlin a first-class language for Spring. Spring AI Agent extends that work to agentic systems, with Kotlin extensions and a DSL.
- Readable graphs: Kotlin data classes and the DSL can describe complex graphs without deep builder chains. JetBrains says both JVM backend engineers and Python-using ML engineers can review the same definition.
- Compile-time null safety: in Kotlin, nullability is part of a value's type. The compiler makes your code handle any missing part of a model's reply, no matter who wrote the code.
The Kotlin DSL is available from day one in any Spring Boot app. Even a Java project can include one agent written in Kotlin, built and deployed in the same pipeline.
JetBrains says this mix is common. In The State of Kotlin in 2026, 61% of Kotlin backend developers use Spring or Spring Boot, and 70% of teams adopting Kotlin on the backend added it to an existing Spring project. It also names Worldline, which runs a conversational AI platform for over 1 million monthly active users on Kotlin and Spring Boot.
If you use Koog
JetBrains calls Spring AI Agent a natural next step for teams running Koog on the JVM with Spring. The ideas you know carry over into an official Spring project, backed by a large community, with Kotlin support from the start.
How to try it
- Explore the repository and try building an agent for one of your existing services.
- Report problems in the project's GitHub issue tracker.
- Tell JetBrains what would make the Kotlin API feel natural in the #spring-ai-agent channel on the Kotlin Slack.
What It Means for Developers
This launch matters most to people who already build on Spring or want to add AI agents to a Spring app.
What It Means for Backend Developers
- You can add agents next to your current services and let them call that code directly, without a separate platform.
- Typed graphs make each step testable, so agents are easier to check than one long prompt.
- Checkpoints help long jobs recover from crashes and wait for human approval.
- It is experimental until the planned merge into Spring AI 3.0 in May 2027, so try it on side projects before betting production on it.
What It Means for Software Developers
- Java developers can use fluent builders and records. Kotlin developers get a DSL and null-safety checks.
- The imperative streaming API means you can use a simple loop instead of learning reactive pipelines first.
- Still review what agents do. Our story on developers delegating work to AI shows how attitudes differ by task.
Bottom line
Spring AI Agent gives Java and Kotlin teams a structured way to build agents inside Spring Boot. It is early and experimental, but it has the Spring team behind it and a clear May 2027 plan.
If you work with Spring, try it on a small service and share feedback with the team.

