﻿---
title: Commands
description: silk <command> --help prints the same text. Run a suite against a real agent CLI, grade each scenario with an LLM judge and the suite's deterministic...
url: https://docs-v3-preview.elastic.dev/reference/commands
---

# Commands
`silk <command> --help` prints the same text.

## run

```text
silk run <suite> [options]
```

Run a suite against a real agent CLI, grade each scenario with an LLM judge and the suite's deterministic checks, and write
`report.md` and the raw transcripts. Spends real agent and judge calls.

| Option                           | Meaning                                                                                                 |
|----------------------------------|---------------------------------------------------------------------------------------------------------|
| `--agent <name>`                 | `claude` (default), `codex`, `cursor`, `copilot`, `gemini` or `opencode`                                |
| `--scenario <id>`                | run only this scenario                                                                                  |
| `--output <folder>`              | where to write the run; default `.silk/runs/{timestamp}`                                                |
| `--judge cli\|anthropic\|openai` | the judge backend; default `cli` (a `claude -p` call)                                                   |
| `--judge-model <name>`           | the model for an API judge                                                                              |
| `--judge-cache <folder>`         | remember verdicts                                                                                       |
| `--trials <n>`                   | run each scenario n times; reports pass@n and pass^n                                                    |
| `--arm <name>`                   | run only this arm; without it every arm runs and the first two are compared                             |
| `--max-cost-usd <n>`             | stop once the reported cost passes n; exit 1                                                            |
| `--junit <file>`                 | (0.1.0 and later) also write the results as JUnit XML; see [In CI](/workflow/ci#reports-for-ci-systems) |


## grade

`silk grade <suite> <run-directory>`: grade a saved run again with the suite's current criteria, checks and judge, without running
an agent. Writes `report.regrade.md` and leaves the original report alone. Takes `--scenario`, `--output`, `--judge`,
`--judge-model`, `--judge-cache` (default `.silk/judge-cache`) and `--junit <file>`.

## compare

`silk compare <baseline> <candidate> [--max-regression <0..1>]`: compare two run folders (or their `results.json`) scenario by
scenario on pass rate, with a paired randomization test. Exits 1 when `--max-regression` is given and the candidate's mean pass
rate fell by more than that.

## triggers

`silk triggers <suite> <run-directory>`: from a saved run, show which skill each scenario activated against the skill it should
trigger, with the trigger rate and the false-trigger rate. Exits 1 on a miss or a false trigger. Runs no agent.

## import-evals

`silk import-evals <skill> [--output <file>]`: import a skill's `evals/evals.json` (agentskills.io format) as a suite with with-skill
and without-skill arms. Writes `evals/{skill}.silk.yaml` inside the skill folder by default and never overwrites an existing file.

## list

`silk list <suite>`: list the scenarios in a suite.

## agents

`silk agents`: list the agents silk can drive, whether each is installed (it asks for `--version`), its transport and its skills
directory.

### Agents


| Agent      | Transport | Skills folder    | Run end to end        |
|------------|-----------|------------------|-----------------------|
| `claude`   | native    | `.claude/skills` | yes                   |
| `codex`    | native    | `.agents/skills` | yes                   |
| `cursor`   | native    | `.cursor/skills` | yes                   |
| `copilot`  | ACP       | `.github/skills` | yes                   |
| `gemini`   | ACP       | none verified    | no (no working login) |
| `opencode` | ACP       | none verified    | no (no working login) |


## demo-mcp

`silk demo-mcp`: serve a tiny MCP server on stdin and stdout with one tool, `shout`, which upper-cases its text. Use it as
`{type: stdio, command: silk, args: [demo-mcp]}` to try silk with no credentials.

## version

`silk version` or `silk --version`.