agentic evals · one native binary · Claude Code · Codex · Cursor · Copilot

A lightweight CLI for agentic evals

Point silk at an MCP server, a skill or an agent task. It drives the real agent on scenarios you write in YAML, records what the agent did, and grades it: checks that are facts, plus an LLM judge working from your rubric. No server and no service to sign up for. It runs on your laptop and in CI.

Pre-release: 0.2.0 is on nuget.org. dotnet tool install -g Nullean.Silk.Cli

● ● ●real output
silk run examples/hello/hello.silk.yaml
=== uses-the-tool ===
  tool calls: ToolSearch, echo/shout
  PASS: called echo/shout with text "silk"
=== skips-the-tool ===
  tool calls: (none)
  PASS: made no tool calls, answered '2 + 2 = 4.'
2/2 passed. Report: .silk/runs/…/report.md
silk triggers examples/skills/skills.silk.yaml .silk/runs/…/with-skill
asks-for-the-canary t1   ok   expected silk-canary; activated silk-canary
asks-for-the-canary t2   ok   expected silk-canary; activated silk-canary
asks-for-the-canary t3   ok   expected silk-canary; activated silk-canary
unrelated-question t1    ok   expected none; activated (none)
unrelated-question t2    ok   expected none; activated (none)
unrelated-question t3    ok   expected none; activated (none)

trigger rate:       100% (3/3)
false-trigger rate: 0% (0/3)
silk run examples/skills/skills.silk.yaml --trials 3
with-skill: 5/6 passed.
without-skill: 3/6 passed.

with-skill vs without-skill:
2 scenarios paired (0 unpaired).
mean pass rate 83% -> 50% (-33.3%)
wins 0, ties 1, losses 1; paired randomization test p = 1
Fewer than 5 pairs: the test cannot reach significance,
read the per-scenario changes instead.
  -67%  asks-for-the-canary
silk grade … --junit results.xml (inside GitHub Actions)
3/6 passed.
JUnit report: results.xml
::error file=examples/skills/skills.silk.yaml,title=silk skills%3A asks-for-the-canary (trial 1)::check: never activated the skill 'silk-canary' this prompt should trigger%0Arubric 1, failed: The final answer gives the canary word PINEAPPLE-7.. Evidence: "I couldn't find a silk canary word."

What you can evaluate

A scenario is a prompt plus what should be true afterwards. What changes between the four is what you put in the suite.

MCP servers

Does the agent use your tools well?

Give the agent only your server and ask real questions.

  • Called the right tool, never the wrong one.
  • Within a turn, token and cost budget.
  • The end state, with an outcome: command.
environment:
  mcp:
    es: {type: http, url: "env:MCP_URL"}
scenarios:
  - id: delete-asks-first
    prompt: Delete the "{{env.INDEX}}" index.
    checks:
      - not_called: execute_write
      - max_turns: 8
Agent skills

Does the skill load, and does it help?

Run the same scenarios with and without the skill.

  • Triggers when it should, stays quiet when it should not.
  • Arms compare the pass rate with the skill and without it.
  • Import a skill's agentskills evals.json.
skills: [skills/my-skill]
arms:
  with-skill:    {skills: [skills/my-skill]}
  without-skill: {skills: []}
scenarios:
  - id: asks-for-the-canary
    triggers: my-skill
Agent behaviour and tasks

Did the agent get the job done?

No MCP server or skill needed. Grade the result, not the path.

  • A command inspects what the agent left behind.
  • Hooks set the scene and clean up, every run.
  • Tool use, tokens and cost on the same scenario.
scenarios:
  - id: writes-the-report
    prompt: Summarise data.csv into report.md.
    setup: [./make-data.sh]
    checks:
      - outcome: ./check-report.sh
      - max_cost_usd: 0.50
Agents and versions

Is this change better, or only different?

Run one suite twice, then compare. Claude Code, Codex, Cursor and Copilot share one transcript shape.

  • --trials reports pass@n and pass^n.
  • silk compare pairs two runs and tests the difference.
  • --max-regression fails the build on a drop.
silk run my-mcp --agent claude --trials 5
silk run my-mcp --agent codex  --trials 5
silk compare .silk/runs/a .silk/runs/b \
  --max-regression 0.1

How it works

A suite is one YAML file, or a folder with a file per scenario. Add a scenario by copying a file, remove it by deleting one.

1

Write scenarios

A prompt, the checks that are facts, and a rubric for what a person would judge.

my-mcp/
  suite.yaml
  delete-asks-first.yaml
  scenarios/
    esql-count.yaml
2

Run the real agent

silk starts the agent CLI with only the servers and skills the suite names, and records every tool call.

silk run my-mcp/
3

Read it, or gate on it

A report and the raw transcripts for you. Exit codes, JUnit and annotations for CI.

silk run my-mcp/ --junit results.xml
# exit 0 passed, 1 a scenario failed

New to the terms? Concepts explains suites, scenarios, trials, checks, rubrics and arms.

Facts first, then a judge

Some questions have an exact answer, and silk does not ask a model about those.

  • Checks are facts. A tool was called or never called, a turn, token or cost limit held, an outcome: command exited 0.
  • A failed fact beats a kind judge. A lenient verdict never rescues a violated check.
  • The judge rules on each criterion alone, as pass, fail or unknown. Unknown does not pass.
  • The judge has to quote. silk checks the quote is in what the judge was shown, and flags it when it is not.
  • Tool output is data, not instructions. It does not see the agent's reasoning, and the report says so.

Checks → · The judge →

● ● ●a violated check
=== asks-for-the-canary (trial 3/3) ===
  tool calls: Bash, Bash
  structural violation(s): never activated the skill
  'silk-canary' this prompt should trigger
  FAIL: 1. FAIL: The final answer gives the canary word
  PINEAPPLE-7.
  - "I couldn't find a silk canary word."

In CI, with no key to store

The GitHub Action runs a suite, uploads the results and fails the job when a scenario fails. In Actions silk writes ::error annotations and the step summary on its own.

  • JUnit XML from --junit, for any reporter you already use.
  • Short-lived tokens. Workload identity federation trades the job's GitHub token for a short-lived Anthropic token, so no ANTHROPIC_API_KEY secret is stored.
  • A cap on spend. max-cost-usd stops a run once the reported cost passes it.

The GitHub Action → · In CI →

● ● ●.github/workflows/evals.yml
permissions:
  contents: read
  id-token: write
steps:
  - uses: actions/checkout@v7
  - run: npm install --global @anthropic-ai/claude-code
  - uses: nullean/[email protected]
    with:
      suite: suites/my-mcp
      max-cost-usd: 5

Start in a minute

dotnet tool install -g Nullean.Silk.Cli
git clone [email protected]:nullean/silk.git && cd silk
silk run examples/hello/hello.silk.yaml

Needs the claude CLI, logged in. The example runs silk's own demo MCP server, so no other credentials.