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 picks ACP (the right protocol — designed for bidirectional client-driven control like cancellation) rather than A2A (rpc-shaped, weaker cancellation story) or MCP (tool host, not the agent itself), AND addresses the cooperative-cancellation requirement inside the long-running tool.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Installs the ACP feature",
"description": "Calls install(ACP) { ... } inside the AIAgent(...) trailing lambda. Does NOT use A2A (rpc-shaped — weaker cancellation) or MCP (wrong protocol — exposes tools, not the agent itself)",
"max_score": 25
},
{
"name": "Adds the agents-features-acp dependency",
"description": "Adds ai.koog:agents-features-acp to build.gradle.kts at 1.0.0 or later",
"max_score": 15
},
{
"name": "Makes the long-running tool honor cancellation",
"description": "Modifies analyzeRepository (or wraps it) to call coroutineContext.ensureActive() at safe points inside the walk — every N files, every chunk, every iteration. Without this the tool would keep running after the agent is cancelled, defeating the protocol",
"max_score": 30
},
{
"name": "Notes that catching CancellationException would defeat cancel",
"description": "Calls out (in code comment or surrounding prose) that catch (e: CancellationException) blocks must rethrow — swallowing them inside a tool body defeats the cancel signal that ACP propagates through coroutine cancellation",
"max_score": 15
},
{
"name": "Mentions the example or feature module's API",
"description": "References either the example (examples/acp-agent) or the feature module's configuration surface (endpoint, capability flags) — not a hand-rolled HTTP protocol",
"max_score": 10
},
{
"name": "Does not block on coroutine internals",
"description": "Does not introduce Thread.sleep, Thread.interrupt, or any non-coroutine cancellation mechanism — ACP cancellation propagates through coroutine cancellation, not raw threads",
"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