<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a" -->

---
title: Supercharging Spring AI: Scalable AI Agents with Koog +...
description: A JetBrains talk introduces Koog, an open-source Kotlin/Java AI agent framework, and its new full integration with Spring AI and Spring Boot. Using a banking...
canonical: https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov | daily.dev
og:description: A JetBrains talk introduces Koog, an open-source Kotlin/Java AI agent framework, and its new full integration with Spring AI and Spring Boot. Using a banking...
og:url: https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a
og:image: https://api.daily.dev/og/posts/nVk3iDt6A.png
og:image:alt: Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov

**[Spring I/O](https://daily.dev/sources/springio)** · 50 min read · 0 upvotes · 0 comments

## Summary

A JetBrains talk introduces Koog, an open-source Kotlin/Java AI agent framework, and its new full integration with Spring AI and Spring Boot. Using a banking chatbot example, the speaker walks through building agents layer by layer: Spring Boot as the application body, Spring AI for LLM/RAG connectivity, and Koog for orchestration (agent strategies), memory (chat history via Spring AI's chat memory), persistence/checkpointing for durable execution and crash recovery, observability (LangFuse, W&B, Datadog integrations), and history compression strategies (chunking, fact retrieval) to control cost and context limits. It contrasts naive agentic loops with Koog's typed, graph-based 'domain modeling' strategy (subtasks with strict input/output types) for reliability, citing Mercedes-Benz as an enterprise adopter, and closes with a Q&A on sub-agent verification, the rationale for combining Koog with Spring AI, and where to enforce security checks in tool calls.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=khgaxqR2_7w>

## Questions this post answers

### What is the Koog framework and how does it relate to Spring AI?

Koog is an open-source AI agent framework from JetBrains focused on reliability and control for enterprise agentic workflows, originally built for Kotlin and later extended to Java. It now has a full integration with Spring AI, letting developers combine Spring AI's LLM and RAG integrations with Koog's agent orchestration, persistence, and history-compression layers on top of a Spring Boot application.

_Developers piecing together AI agent stacks can follow ongoing Koog and Spring AI coverage on daily.dev._

### How does Koog handle crash recovery for long-running AI agents?

Koog provides durable execution through a persistence feature that checkpoints the exact node in a graph-based agent workflow along with the full message history and agent state to a database (for example Postgres via JDBC). If the process crashes or gets preempted, such as on an AWS EC2 spot instance, the agent resumes from that checkpoint instead of restarting, and rollbacks to earlier checkpoints can also undo tool side effects like money transfers.

_Teams designing fault-tolerant agent pipelines can track durable-execution patterns like this via daily.dev._

### What strategies does Koog use to compress conversation history for AI agents and why?

Koog offers multiple history-compression strategies to avoid hitting LLM context limits and reduce token cost and latency: chunking, which splits history into pieces (e.g. 20 messages) and compresses each independently into a summary, measured to improve precision by roughly 6 to 8 percent, and fact retrieval, which extracts specific concepts the developer defines and reconstructs a natural conversation around them for better accuracy at scale.

_Anyone tuning agent cost and context limits can keep up with techniques like these on daily.dev._

## Similar posts on daily.dev

- [Introducing Koog Integration for Spring AI: Smarter Orchestration for Your Agents](https://daily.dev/posts/introducing-koog-integration-for-spring-ai-smarter-orchestration-for-your-agents-tgeicavle) · Kotlin · 6 upvotes · 0 comments
- [Koog Comes to Java: The Enterprise AI Agent Framework From JetBrains](https://daily.dev/posts/koog-comes-to-java-the-enterprise-ai-agent-framework-from-jetbrains-8kcwtzu55) · JetBrains · 10 upvotes · 1 comments
- [Koog 1.0 Is Out: Stable Core, Better Interop, and Multiplatform Observability](https://daily.dev/posts/koog-1-0-is-out-stable-core-better-interop-and-multiplatform-observability-ykll8zaby) · JetBrains · 3 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#spring-boot](https://daily.dev/tags/spring-boot), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov","url":"https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a"},"datePublished":"2026-09-27T07:26:33.329Z","dateModified":"2026-09-27T07:53:22.128Z","description":"A JetBrains talk introduces Koog, an open-source Kotlin/Java AI agent framework, and its new full integration with Spring AI and Spring Boot. Using a banking...","image":"https://i.ytimg.com/vi/khgaxqR2_7w/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/khgaxqR2_7w/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,spring-boot,spring-ai","timeRequired":"PT50M","video":{"@type":"VideoObject","name":"Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov","description":"A JetBrains talk introduces Koog, an open-source Kotlin/Java AI agent framework, and its new full integration with Spring AI and Spring Boot. Using a banking...","thumbnailUrl":"https://i.ytimg.com/vi/khgaxqR2_7w/sddefault.jpg","uploadDate":"2026-09-27T07:26:33.329Z","duration":"PT50M","url":"https://api.daily.dev/r/nVk3iDt6A","embedUrl":"https://www.youtube.com/embed/khgaxqR2_7w"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"Supercharging Spring AI: Scalable AI Agents with Koog + Spring AI + Spring Boot by Vadim Briliantov"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/supercharging-spring-ai-scalable-ai-agents-with-koog-spring-ai-spring-boot-by-vadim-briliantov-nvk3idt6a#faq","mainEntity":[{"@type":"Question","name":"What is the Koog framework and how does it relate to Spring AI?","acceptedAnswer":{"@type":"Answer","text":"Koog is an open-source AI agent framework from JetBrains focused on reliability and control for enterprise agentic workflows, originally built for Kotlin and later extended to Java. It now has a full integration with Spring AI, letting developers combine Spring AI's LLM and RAG integrations with Koog's agent orchestration, persistence, and history-compression layers on top of a Spring Boot application. Developers piecing together AI agent stacks can follow ongoing Koog and Spring AI coverage on daily.dev."}},{"@type":"Question","name":"How does Koog handle crash recovery for long-running AI agents?","acceptedAnswer":{"@type":"Answer","text":"Koog provides durable execution through a persistence feature that checkpoints the exact node in a graph-based agent workflow along with the full message history and agent state to a database (for example Postgres via JDBC). If the process crashes or gets preempted, such as on an AWS EC2 spot instance, the agent resumes from that checkpoint instead of restarting, and rollbacks to earlier checkpoints can also undo tool side effects like money transfers. Teams designing fault-tolerant agent pipelines can track durable-execution patterns like this via daily.dev."}},{"@type":"Question","name":"What strategies does Koog use to compress conversation history for AI agents and why?","acceptedAnswer":{"@type":"Answer","text":"Koog offers multiple history-compression strategies to avoid hitting LLM context limits and reduce token cost and latency: chunking, which splits history into pieces (e.g. 20 messages) and compresses each independently into a summary, measured to improve precision by roughly 6 to 8 percent, and fact retrieval, which extracts specific concepts the developer defines and reconstructs a natural conversation around them for better accuracy at scale. Anyone tuning agent cost and context limits can keep up with techniques like these on daily.dev."}}]}
```

