Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM
89
89%
Does it follow best practices?
Impact
89%
1.78xAverage score across 47 eval scenarios
Advisory
Suggest reviewing before use
{
"context": "Tests whether the migration catches the non-obvious 1.0 breaking changes that hit a custom-strategy agent with a hand-built client — the nodeExecuteTools auto-writeback removal in the graph DSL, the LLMClient HTTP-transport decoupling, and the KoogClock swap — not just the surface-level coordinate and JDK bumps. A baseline with no Koog 1.0 knowledge keeps the 0.x topology and constructor shapes, which silently break or fail to compile.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Routes tool results through an explicit send-results node",
"description": "Recognizes that nodeExecuteTools no longer auto-writes results back to the prompt in 1.0: inserts a nodeLLMSendToolResults node and routes runTools through it before looping/finishing. Failure: keeps the 0.x topology (runTools forwardTo callModel with no send-tool-results node), so tool outputs never reach the LLM and the agent silently forgets what it ran",
"max_score": 25
},
{
"name": "Adapts the LLM client to the decoupled HTTP transport",
"description": "Recognizes the LLMClient constructor no longer accepts a Ktor HttpClient in 1.0: passes a KoogHttpClient.Factory (e.g. from ai.koog:http-client-ktor) so the tuned/proxied client is preserved, and declares ai.koog:http-client-ktor explicitly since the transitive Ktor route was closed. Failure: keeps httpClient = HttpClient(CIO) passed into OpenAILLMClient, which no longer compiles",
"max_score": 25
},
{
"name": "Swaps kotlin.time.Clock for KoogClock",
"description": "Replaces the kotlin.time.Clock parameter with KoogClock (KoogClock.System for production, an injected KoogClock for tests). Failure: leaves clock = Clock.System referencing kotlin.time.Clock, which is no longer the accepted parameter type",
"max_score": 15
},
{
"name": "Raises the JDK and Kotlin toolchain minima",
"description": "Bumps the JVM toolchain to 17 and the Kotlin Gradle plugin to 2.3.10 or later — 1.0 requires JDK 17 and is compiled with Kotlin 2.3.x. Failure: leaves jvmToolchain(11) or Kotlin 2.0.x, which fails the toolchain/metadata check before the API errors even surface",
"max_score": 15
},
{
"name": "Drops .invoke from the AIAgent construction",
"description": "Changes AIAgent.invoke(...) to the top-level AIAgent(...) factory — the companion invoke was removed in 1.0. Failure: leaves AIAgent.invoke or substitutes a concrete subtype constructor like GraphAIAgent(...)",
"max_score": 10
},
{
"name": "Bumps all Koog coordinates to 1.0 with no mixed versions",
"description": "Updates ai.koog:koog-agents (and any other ai.koog artifact) to 1.0.0 or later, leaving nothing at 0.7.x. Failure: leaves a 0.x artifact in place, producing an unsupported mixed 0.x/1.0 graph",
"max_score": 10
}
]
}.gemini
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20
scenario-21
scenario-22
scenario-23
scenario-24
scenario-25
scenario-26
scenario-27
scenario-28
scenario-29
scenario-30
scenario-31
scenario-32
scenario-33
scenario-34
scenario-35
scenario-36
scenario-37
scenario-38
scenario-39
scenario-40
scenario-41
scenario-42
scenario-43
scenario-44
scenario-45
scenario-46
scenario-47
skills
add-observability
add-persistence
add-rag
add-structured-output
add-token-budgeting
add-tool
cache-llm-calls
define-prompt
domain-model-subtask-pipeline
references
enable-prompt-caching
handle-agent-events
manage-state
migrate-from-0-x
model-planner-subtasks
persist-chat-history
query-sql-from-agent
scaffold-agent
snapshot-and-restore
test-koog-agents
trace-agent-internals
use-attachments
use-functional-agent
use-llm-node-variants
use-planner
wire-a2a
wire-acp-server
wire-ktor-server
wire-mcp-server
wire-spring-boot