Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM
87
88%
Does it follow best practices?
Impact
87%
1.85xAverage score across 45 eval scenarios
Advisory
Suggest reviewing before use
{
"context": "Tests whether the agent reaches for the agents-test mocked-executor pattern with scripted responses and an event-handler recorder to assert tool sequences — rather than hitting a real LLM, mocking individual tool calls instead of the LLM, or asserting on internal agent state.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Adds agents-test as testImplementation",
"description": "Adds ai.koog:agents-test to build.gradle.kts under testImplementation (not implementation). The test dependency must never leak into production classpath",
"max_score": 15
},
{
"name": "Uses a scripted/mocked prompt executor",
"description": "Replaces the real provider executor (simpleOpenAIExecutor or similar) with a test executor that scripts the LLM's responses — first a tool call to lookup_priority, then a text reply. Does NOT call a real LLM, does NOT mock individual tool methods to fake the LLM's behavior",
"max_score": 30
},
{
"name": "Records tool-call sequence via handleEvents",
"description": "Installs handleEvents with an onToolCallStarting (or equivalent) listener that records each tool name. The assertion compares the recorded list to the expected sequence — assertions on observable behavior, not internal state",
"max_score": 25
},
{
"name": "Asserts ordering — lookup_priority before classification",
"description": "The test asserts that the recorded tool sequence has lookup_priority called first, before the final text reply is produced. Does not just check that the tool was called at all (which wouldn't prove ordering)",
"max_score": 15
},
{
"name": "Tools run their real implementations",
"description": "The tools registered in the agent's ToolRegistry use their real implementations (or a thin test double at the network boundary inside the tool — not at the tool interface). The LLM is what gets mocked, not the tool surface",
"max_score": 10
},
{
"name": "Single agent.run call per test",
"description": "The test invokes agent.run(...) once with the test input. Does not loop, does not retry, does not call run multiple times for one assertion",
"max_score": 5
}
]
}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
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