Paul Krill
Editor at Large

Kotlin gets a new AI agent framework

news
May 24, 20252 mins

JetBrains introduces Koog, an open source framework for building agents within the JVM ecosystem.

How AI agents work
Credit: Shutterstock/Wanan Wanan

Looking to make Kotlin a first-class language for AI, JetBrains has introduced Koog, an open source agentic framework for building AI agents within the Java virtual machine (JVM) ecosystem via a Kotlin domain-specific language (DSL).

Introduced May 22 and found on GitHub, Kotlin-based Koog leverages a modern DSL and provides developers with tools to build intelligent, autonomous agents with the productivity offered by Kotlin, JetBrains said. Koog was built because JetBrains believes Kotlin developers should have an AI framework as “powerful and flexible” as Kotlin itself. Prior to Koog, there has been no comprehensive Kotlin-native agentic framework solution, the company said. 

Koog is designed to tackle obvious challenges with features such as fast onboarding, simplified agent creation, predefining strategies, and seamless Model Context Protocol (MCP). More advanced capabilities also are addressed, such as response streaming and efficient handling of long contexts and query histories. Key features of Koog include:

  • A pure Kotlin implementation to build and run AI agents in Kotlin without external service dependencies
  • A modular feature system to extend agent capabilities
  • Tool integration to create custom tools to give agents access to external systems and resources
  • Out-of-the-box solutions for situations such as streaming from large language models (LLMs) and invoking multiple tools on the fly from one LLM request
  • Forcing LLMs to provide specific results
  • Customizable workflows
  • Traceable workflows
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a β€œBest Technology News Coverage” award from IDG.

More from this author