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": "Negative case — tests whether the agent recognizes that the developer's data (structured, queryable, per-decision facts) belongs in a fact-storage primitive (LongTermMemory) or as a tool, NOT in chat-history. Installing JdbcChatHistory / ChatHistoryAws / ChatMemorySql here would force the agent to inject fake Message.User / Message.Assistant pseudo-turns to surface the facts, which the model misinterprets as today's conversation — the failure mode the anti-pattern in persist-chat-history Step 6 names.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Names the chat-history-vs-fact-store distinction",
"description": "Surfaces that chat-history persistence is for real conversation turns and that the developer's data (per-decision records the agent should retrieve programmatically) is a different shape. Without this distinction the developer cannot choose the right primitive",
"max_score": 30
},
{
"name": "Recommends LongTermMemory or a Tool",
"description": "Routes the developer to ai.koog:agents-features-longterm-memory (with a SearchQueryProvider for organizer/date lookup) OR to building a @Tool like getRecentlyUsedFlavors(organizer) that the agent calls. Either is correct — both are fact-shaped primitives. May also mention systemPrompt for very small fixed contexts",
"max_score": 25
},
{
"name": "Does not install JdbcChatHistory / chat-history-jdbc",
"description": "Does NOT call install(JdbcChatHistory) and does NOT add ai.koog:agents-features-chat-history-jdbc / -aws / -sql. The skill body explicitly names this as the wrong primitive; an installation here would be the anti-pattern this scenario tests refusal of",
"max_score": 25
},
{
"name": "Does not synthesise pseudo-turns into a custom ChatHistoryProvider",
"description": "Does NOT implement a custom ChatHistoryProvider that returns a hand-rolled list of Message.User / Message.Assistant entries representing facts the agent never actually said. This is the symptom-form of the same anti-pattern — the data isn't conversation-shaped and the model misreads the latest entry as today's task",
"max_score": 15
},
{
"name": "Acknowledges the framing without capitulating",
"description": "Engages with the developer's phrasing (\"the agent needs to remember its past decisions\") and explains why fact-shaped data belongs in a queryable primitive. Does not refuse 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