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
{
"context": "Tests whether the agent installs the SQL feature with read-only mode + schema scoping + row cap — the safety-first configuration — and pins the schema in the system prompt so the LLM doesn't hallucinate table/column names.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Installs the Sql feature in read-only mode",
"description": "Calls install(Sql) { ... } with readOnly = true. Does NOT install in read-write mode (the developer explicitly wants read-only) and does NOT roll a custom SQL tool without the safety controls the feature provides",
"max_score": 25
},
{
"name": "Scopes the schema to the named tables",
"description": "Sets schemaScope (or equivalent) to the developer's two named tables — public.events and public.users. Does not leave schemaScope unset (which would expose the full database) or include unrelated tables",
"max_score": 25
},
{
"name": "Caps result rows",
"description": "Sets a maxRows cap (e.g., 100, 500, 1000 — any reasonable hard cap). Without this, an unbounded SELECT can return enormous results that blow context and query cost",
"max_score": 15
},
{
"name": "Reads DB credentials from environment",
"description": "Reads ANALYTICS_DB_URL, ANALYTICS_DB_USER, ANALYTICS_DB_PASSWORD from System.getenv. Does not inline literals",
"max_score": 15
},
{
"name": "Pins schema in system prompt",
"description": "Either includes the schema explicitly in systemPrompt OR enables a describe_schema discovery tool. Without one of these, the LLM hallucinates column names and queries fail",
"max_score": 15
},
{
"name": "Adds the agents-features-sql dependency and JDBC driver",
"description": "Adds ai.koog:agents-features-sql at 1.0.0+ AND a Postgres JDBC driver. Koog does not bundle drivers",
"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
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