/evaluate-koog:evaluate-koogfrom evaluate-koog
Sets up Dokimos evaluation for Koog AI agents. Wraps agents as judges or systems under test, runs experiments with datasets and evaluators.
Ships in evaluate-koog. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up Dokimos evaluation for a Koog AI agent. The user will describe their agent and evaluation goals via $ARGUMENTS.
dokimos-koog/src/main/kotlin/dev/dokimos/koog/KoogSupport.ktdokimos-koog/src/main/kotlin/dev/dokimos/koog/KoogTraceCollector.ktdokimos-koog/src/test/kotlin/dev/dokimos/koog/dev.dokimos:dokimos-koogBefore writing code, read KoogSupport.kt to understand the available utilities.
KoogSupport.kt provides:
asJudge(agentCall: suspend (String) -> String) — wraps any suspend function into a JudgeLMasJudge(agent: () -> AIAgent<String, String>) — wraps a Koog agent factory into a JudgeLMAIAgent.runBlocking(input, context) — extension to run a Koog agent synchronouslyval agent: () -> AIAgent<String, String> = { createMyAgent() }
val task = Task { example ->
val input = example.inputs()["input"] as String
val output = agent().runBlocking(input)
mapOf("output" to output)
}
val result = Experiment.builder()
.name("Koog Agent Evaluation")
.dataset(dataset)
.task(task)
.evaluator(ExactMatchEvaluator.builder().build())
.build()
.run()
val judge = asJudge { prompt -> myAgent().run(prompt) }
// or
val judge = asJudge { createMyAgent() }
val evaluator = LLMJudgeEvaluator.builder()
.name("helpfulness")
.judge(judge)
.criteria("Is the response helpful and accurate?")
.evaluationParams(listOf(
EvalTestCaseParam.INPUT,
EvalTestCaseParam.ACTUAL_OUTPUT,
EvalTestCaseParam.EXPECTED_OUTPUT
))
.threshold(0.7)
.build()
If the user has dokimos-kotlin as a dependency, use the DSL:
val result = experiment {
name = "Koog Agent Eval"
dataset = Dataset.fromJson(Path.of("datasets/qa.json"))
task { example ->
val output = agent().runBlocking(example.input())
mapOf("output" to output)
}
evaluator(ExactMatchEvaluator.builder().build())
}
The user needs dokimos-koog:
<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-koog</artifactId>
<version>${dokimos.version}</version>
</dependency>
Koog itself is a provided-scope dependency — the user must bring their own version. The collector reads the event context reflectively, so one build works across Koog 0.6.4 through 1.0.0.
If the Koog agent uses tools, capture its tool calls with KoogTraceCollector and evaluate them with the agent evaluators. Install the collector on the agent's event handler with collectAgentTrace, run the agent, then read the trace.
import dev.dokimos.koog.KoogTraceCollector
import dev.dokimos.koog.collectAgentTrace
val collector = KoogTraceCollector()
val agent = AIAgent(/* ... */) {
install(EventHandler) { collectAgentTrace(collector) }
}
val response = agent.run(userInput)
val testCase = collector.toAgentTrace(response).toTestCase(userInput, tools)
val validity = toolCallValidity { }.evaluate(testCase)
For the full agent evaluator set, use the evaluate-agent skill.
$ARGUMENTS what the Koog agent does and how it's constructedKoogSupport utilitiesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dokimos-dev/dokimos --plugin evaluate-koogOther plugins' skills for the same job