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 merges the MCP-derived registry with the existing local registry using ToolRegistry composition, rather than replacing the local tools, mutating the registry after construction, or jamming everything into one builder block.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Composes the two registries with +",
"description": "Combines the existing local registry and the MCP registry by adding them with + (e.g., localRegistry + mcpRegistry). Does NOT discard either registry, does NOT re-instantiate CalculatorTools inside the MCP block, does NOT use any other ad-hoc merging approach",
"max_score": 30
},
{
"name": "Preserves the existing CalculatorTools registration",
"description": "The final toolRegistry passed to AIAgent(...) still contains CalculatorTools — visible either as the original ToolRegistry { tools(CalculatorTools().asTools()) } expression or an equivalent reconstruction. The local tools are not silently dropped",
"max_score": 20
},
{
"name": "Uses the modern HTTP MCP transport",
"description": "Builds the MCP registry with McpToolRegistryProvider.streamableHttp { ... } against the given URL. Does not fall back to fromSseUrl when the server supports the modern transport",
"max_score": 20
},
{
"name": "Adds the agents-mcp dependency",
"description": "Adds `ai.koog:agents-mcp-jvm:1.0.0-beta` to build.gradle.kts since the umbrella does not include MCP. Requires the `-jvm` suffix (only JVM variants publish at this version) and the `1.0.0-beta` version tag",
"max_score": 10
},
{
"name": "Constructs the merged registry before AIAgent(...)",
"description": "Builds both registries and merges them into a final value BEFORE calling AIAgent(...), then passes the merged value as toolRegistry. Does not try to mutate the agent's registry after construction",
"max_score": 10
},
{
"name": "Calls the suspending MCP builder inside a coroutine context",
"description": "Invokes McpToolRegistryProvider.streamableHttp(...) inside runBlocking { ... } or another coroutine scope, since it is suspending",
"max_score": 10
}
]
}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