Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM
88
88%
Does it follow best practices?
Impact
88%
1.95xAverage score across 43 eval scenarios
Passed
No known issues
A developer is writing a Koog 1.0 strategy by hand (not using singleRunStrategy()). The agent needs to: take a user message, call the LLM, and from there one of two things happens — either the LLM produced text, in which case the agent finishes and returns the text; or the LLM tried to call tools, in which case those tools execute and their results go back to the LLM, looping until it produces text. Standard tool-handling shape.
They have a scaffolded main() that constructs an AIAgent, and they're about to write a custom strategy file. They mention that they've heard singleRunStrategy() already handles this loop internally, but they want to author it themselves so they can later branch on intermediate state — they're not just looking for the default behavior.
Produce the strategy file as Kotlin source, including the import block at the top.
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
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