On this page

On December 3, 2026, the Spring team and JetBrains unveiled Spring AI Agent, an experimental framework for building structured AI agents directly inside Spring Boot applications (spring-projects-experimental/spring-ai-agent). The roadmap sets an explicit destination: merging into Spring AI 3.0 in May 2027.

For JVM backend teams, the release resets two things at once. Architecturally, Spring is committing to typed agent graphs and Virtual Thread-backed imperative streaming—signaling the end of mandatory Project Reactor boilerplate in Spring AI 3.0. Ecosystem-wise, JetBrains is consolidating its May 2025 JVM agent framework Koog: former Koog tech lead Vadim Briliantov helped shape Spring AI Agent, and JetBrains confirmed Koog itself will no longer receive new features (v1 remains Apache 2.0 on Maven Central). Spring owns the core runtime while JetBrains drives idiomatic Kotlin DSLs and documentation.

Four technical building blocks aimed at production JVM services

Calling an LLM once from Spring Boot is trivial; keeping multi-step tool loops, deterministic guardrails, human approvals, and unit tests predictable is where teams struggle. Spring AI Agent tackles that with four primitives:

  • Type-safe Agent<I, O> and bidirectional ChatClient interop: Every agent exposes a strongly typed contract using Java records or Kotlin data classes, supporting synchronous (result / resumeResult) and asynchronous (run / resumeRun) execution. ChatClientAgent wraps an existing ChatClient as an Agent<String, O> (using structured outputs when O is not String), while AgentTools.asToolCallback exposes any Agent<I, O> back to a plain ChatClient as a callable tool.
  • Imperative Virtual Thread streaming via stream-source: Spring AI Agent is the first Spring project built on stream-source, exposing a Source<T> stream consumed in a plain while (events.receiveNext()) loop instead of reactive chains. Blocking receiveNext() calls are cheap on Virtual Threads and fall back cleanly to a platform thread pool on Java 17. More broadly, Spring AI 3.0 plans to drop its mandatory Reactor dependency altogether, recommending Spring MVC, RestClient, and Virtual Threads on Java 25+ while keeping Java 17 and 21 supported. Flux/Mono adapters ship today, with Kotlin Flow support planned.
  • Compile-time typed graphs (ModelGraphAgent & GraphAgent): ModelGraphAgent wires reusable ToolCallLoop subgraphs alongside deterministic Java/Kotlin nodes (such as Compliance::review) and human-in-the-loop interrupts (AgentNodes.interrupt), catching schema mismatches at compile time. GraphAgent orchestrates multiple subagents with zero model calls in the orchestrator itself—for instance, triaging a cancelled flight into a typed Disruption record and fanning out parallel flight, partner, and rail search agents under SelectionPolicy.first() with a 30-second timeout that immediately cancels the losing searches.
  • Built-in persistence and A2A protocol: CheckpointFeature persists execution state across crashes and approval pauses, and native Agent-to-Agent (A2A) protocol support ships out of the box.
Figure 1: Spring AI Agent architecture — Agent<I, O> contract, typed ModelGraphAgent/GraphAgent graphs, and stream-source runtime
Figure 1: Spring AI Agent architecture — Agent<I, O> contract, typed ModelGraphAgent/GraphAgent graphs, and stream-source runtime

Image source: DigIntoAI architecture diagram compiled from Spring Blog and JetBrains Kotlin Blog (Dec 3, 2026)

One subtle guardrail caveat to catch early

Spring's announcement calls out an important runtime detail that regulated teams should not miss: ModelGraphAgent nodes only process complete outputs, so a post-model guardrail node applies to the finished output—not to tokens already streamed out mid-generation.

If your UI streams raw TextDelta frames from the observation channel directly to end users while relying on a downstream compliance node to block unsafe text, restricted content will already be on screen before the guardrail fires. High-compliance workloads should either hold final rendering until the guardrail node passes or insert an explicit streaming filter ahead of the client socket.

What Koog's feature freeze means—and why Java repos can adopt the Kotlin DSL selectively

JetBrains' companion update leaves no ambiguity: Koog's concepts move forward inside Spring AI Agent, and Koog itself will not gain new features. Existing v1 artifacts remain available on Maven Central so production teams are not stranded while Spring AI Agent matures.

JetBrains also pitches a pragmatic hybrid pattern for existing Java Spring Boot shops: because the Kotlin DSL runs inside the same build and deployment pipeline, teams can write individual complex agent graphs in Kotlin alongside existing Java services. Data from The State of Kotlin in 2026 backs up how common this already is—61% of Kotlin backend developers use Spring or Spring Boot, and 70% of teams adopting backend Kotlin introduced it inside an existing Spring codebase (with Worldline already running >1M MAU conversational AI on Kotlin and Spring Boot). Beyond cleaner graph syntax that both JVM and Python ML engineers can read, Kotlin's compile-time null safety forces explicit handling of optional LLM output fields rather than trusting prompt wording.

Figure 2: Roadmap from Koog's feature freeze to Spring AI 3.0 GA (May 2027), Kotlin-Spring adoption data, and migration checklist
Figure 2: Roadmap from Koog's feature freeze to Spring AI 3.0 GA (May 2027), Kotlin-Spring adoption data, and migration checklist

Image source: DigIntoAI chart compiled from Spring and JetBrains announcements (Dec 3, 2026)

What to do now depending on your stack

  • If you run Koog v1 in production: Hold off on a rushed rewrite. Spring AI Agent is still incubating in spring-projects-experimental and APIs will churn before the May 2027 Spring AI 3.0 release. Stay on Koog v1 until Spring AI Agent hits release-candidate stability.
  • If you are starting new agent prototypes on Spring Boot: Experiment with ModelGraphAgent and GraphAgent now to validate unit testing, CheckpointFeature storage, and Virtual Thread streaming—keeping domain inputs/outputs cleanly modeled as records or data classes so upgrading to Spring AI 3.0 stays painless.