Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM
86
88%
Does it follow best practices?
Impact
86%
1.86xAverage score across 45 eval scenarios
Advisory
Suggest reviewing before use
{
"context": "Tests whether the agent installs the Tokenizer feature with a runBudget AND picks the CompressHistory budget-exceeded action (matching the developer's stated 'try to continue by summarizing' preference) rather than the default Abort which the developer explicitly rejected.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Installs the Tokenizer feature",
"description": "Calls install(Tokenizer) { ... } inside the AIAgent(...) trailing lambda. Does not roll a custom token-counting wrapper or check usage in tool bodies",
"max_score": 25
},
{
"name": "Sets a 50000 runBudget",
"description": "Configures runBudget = 50_000 (or equivalent integer literal) inside the install block — matches the developer's stated cap",
"max_score": 20
},
{
"name": "Picks BudgetAction.CompressHistory",
"description": "Sets onBudgetExceeded = BudgetAction.CompressHistory. Does NOT use BudgetAction.Abort (developer explicitly rejected this) and does NOT use DowngradeModel (the developer asked for summarization, not model swap)",
"max_score": 30
},
{
"name": "Adds the tokenizer dependencies",
"description": "Adds both ai.koog:agents-features-tokenizer and ai.koog:prompt-tokenizer at 1.0.0+. Without prompt-tokenizer, the feature has no per-model tokenizer to use",
"max_score": 15
},
{
"name": "Does not lower the model to a cheaper one",
"description": "Does not change llmModel away from GPT4o — the developer didn't ask to swap models, only to cap spend on the current one",
"max_score": 5
},
{
"name": "Notes how the cap surfaces in observability if installed",
"description": "Mentions that if OpenTelemetry is also installed, token usage surfaces in the gen_ai.client.token.usage metric automatically. Not strictly required but helps the developer verify the cap",
"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