CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/koog

Koog 1.0 idioms, gotchas, and scaffolding skills for Kotlin agents on the JVM

88

1.95x
Quality

88%

Does it follow best practices?

Impact

88%

1.95x

Average score across 43 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

criteria.jsonevals/scenario-11/

{
  "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

README.md

tile.json