CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/koog

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

86

1.86x
Quality

88%

Does it follow best practices?

Impact

86%

1.86x

Average score across 45 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

criteria.jsonevals/scenario-23/

{
  "context": "Tests whether the skill produces a Koog 1.0-correct scaffold for an OpenAI-backed agent: current artifact coordinates, top-level factory, JDK 17 toolchain, env-var-driven key, and absence of redundant defaults.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses 1.0+ umbrella coordinate",
      "description": "build.gradle.kts declares an `ai.koog:koog-agents` dependency at version 1.0.0 or later. Not 0.7.x, not a partial set of submodules when the umbrella covers them",
      "max_score": 20
    },
    {
      "name": "Targets JDK 17 toolchain",
      "description": "Configures a Kotlin JVM toolchain at JDK 17 (jvmToolchain(17) or kotlin { jvmToolchain(17) }). 1.0 requires it",
      "max_score": 10
    },
    {
      "name": "Uses top-level AIAgent factory",
      "description": "Main.kt calls AIAgent(...) as a top-level factory function with named parameters (promptExecutor, llmModel, systemPrompt) — not AIAgent.invoke, not a concrete subtype constructor",
      "max_score": 15
    },
    {
      "name": "Reads API key from environment",
      "description": "Reads OPENAI_API_KEY (or equivalent) from System.getenv(...). The literal API key is never embedded in the source file",
      "max_score": 15
    },
    {
      "name": "Wires simpleOpenAIExecutor and a current OpenAI model",
      "description": "Uses simpleOpenAIExecutor as the prompt executor and selects an OpenAIModels.Chat.* entry that exists in 1.0 (e.g., GPT4o, GPT5 family) — not a retired model",
      "max_score": 15
    },
    {
      "name": "Omits the default singleRunStrategy",
      "description": "Does NOT pass strategy = singleRunStrategy() to the factory — it's the default; explicit listing adds noise and the rules in this tile discourage it for the demo scaffold",
      "max_score": 10
    },
    {
      "name": "Runs the agent inside runBlocking",
      "description": "main() uses runBlocking { ... } (or an equivalent coroutine entry point) since agent.run is suspending",
      "max_score": 5
    },
    {
      "name": "Initializes git in the new directory",
      "description": "Runs git init in the target directory and includes a sensible .gitignore covering Gradle output (build/, .gradle/) and IDE files",
      "max_score": 5
    },
    {
      "name": "Application plugin wired with mainClass",
      "description": "build.gradle.kts applies the application plugin and sets mainClass.set(\"...\") so `./gradlew run` works",
      "max_score": 5
    }
  ]
}

evals

README.md

tile.json