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 write-side persistence feature (the right tool for continuous checkpointing) rather than only using runFromCheckpoint (which is the read-only resume path and would not help survive restarts on its own).",
"type": "weighted_checklist",
"checklist": [
{
"name": "Installs the Persistence feature",
"description": "Calls install(Persistence) { ... } inside the AIAgent(...) trailing lambda — the write-side feature that produces checkpoints continuously. Does NOT only use runFromCheckpoint on its own — that's the read path and produces no new checkpoints",
"max_score": 30
},
{
"name": "Adds the JDBC persistence backend dependency",
"description": "Adds ai.koog:agents-features-persistence-jdbc to build.gradle.kts at 1.0.0 or later — the developer named JDBC explicitly. Does not add an in-memory backend (would not survive restarts) or a different backend than asked",
"max_score": 25
},
{
"name": "Configures the backend with the JDBC connection",
"description": "Inside the install block, configures the JDBC backend with the connection URL (and credentials read from env vars, not hardcoded). The configuration is concrete, not a TODO placeholder",
"max_score": 20
},
{
"name": "Uses Persistence type names, not Persistency",
"description": "Imports and references types with the 1.0 spelling Persistence* — the pre-1.0 Persistency* spelling was renamed. Uses Persistence-, not Persistency-, anywhere in the snippet",
"max_score": 10
},
{
"name": "Shows resume path with runFromCheckpoint",
"description": "Demonstrates how the resume side works — after a restart, loads the latest checkpoint and calls agent.runFromCheckpoint(...) instead of agent.run(...). Without showing this, the durability story is incomplete",
"max_score": 10
},
{
"name": "Notes serializability requirement for storage",
"description": "Calls out (in code comment or surrounding prose) that any AIAgentStorage values must be @Serializable — non-serializable types break checkpointing silently",
"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