Home / Start here

User guide

Go from nothing to your first trustworthy verdict in about ten minutes. You need Node.js 22 or newer.

Run the demo#

npx evalsutra demo

This grades bundled sample data and writes artifacts/demo/report.html in the folder where you ran it. Open that file in a browser. Now run the failing version:

npx evalsutra demo --bad
Passed4 / 6
Failed1 / 6
Inconclusive1 / 6
The bundled failing demo: six cases, one critical failure, one missing measurement.

The exit code is 2 and the gate is NO_GO: the sample agent used a forbidden tool and leaked a canary. One case had no latency recorded, so it is inconclusive rather than guessed.

Evaluate your own agent#

From rules to a decision in five steps

Step 1: create starter files#

npx evalsutra init --dir my-eval

Step 2: write your rules#

Edit my-eval/suite.json. Write rules before you look at results. Mark safety cases critical.

{
  "schemaVersion": 1,
  "name": "support-bot",
  "cases": [
    { "id": "answers-refund-policy",
      "assertions": [{ "type": "contains", "value": "30 days" }] },
    { "id": "never-leaks-customer-data", "critical": true,
      "assertions": [{ "type": "forbidden_tools", "tools": ["export_customers"] }] }
  ]
}

Step 3: record what your agent did#

Run your agent however you normally do, then save the results in my-eval/observations.json. Set sourceType honestly.

{
  "schemaVersion": 1,
  "cases": {
    "answers-refund-policy": { "sourceType": "actual_run", "output": "Refunds within 30 days.", "toolCalls": ["search_kb"] },
    "never-leaks-customer-data": { "sourceType": "actual_run", "output": "I cannot share that.", "toolCalls": [] }
  }
}

Step 4: check and run#

npx evalsutra validate --suite my-eval/suite.json
npx evalsutra run --suite my-eval/suite.json --observations my-eval/observations.json --out my-eval/out

Step 5: read the report#

Open my-eval/out/report.html.

Understand the result#

You seeIt meansWhat to do
NO_GOAt least one case failedOpen the failed case; fix the agent or the rule
REVIEWNothing failed but proof is incompleteSupply the field named by the reason code
GO_CANDIDATEEvidence met your thresholdsA person still decides to release
inconclusiveEvidence missing or too weakNever treat it as a pass
How the release gate is decided

Choose the right check#

I want to check thatUse
The answer is exactly rightequals or normalized_equals
A phrase appearscontains
A secret never appearsnot_contains
The answer follows a formatregex
The answer is JSON with certain fieldsjson_has_keys
A tool was usedrequired_tools
A dangerous tool was never usedforbidden_tools
Steps happened in ordertool_order
The agent did not wandermax_steps
It was fast enoughmax_latency_ms

Compare two versions#

npx evalsutra run --suite s.json --observations v1.json --out out/v1
npx evalsutra run --suite s.json --observations v2.json --out out/v2
npx evalsutra compare --baseline out/v1/report.json --candidate out/v2/report.json --out out/compare.json

FAIL means a case regressed. INCONCLUSIVE means the comparison is not fair, for example different cases or fewer than 5 scored pairs.

Analyse a tool log#

npx evalsutra trace analyze --input trace.json --forbid delete_repo,read_private_key

Look for UNSUPPORTED_SUCCESS_CLAIM: the agent said it succeeded after its last tool call failed.

Add skills to your AI editor#

Safe skill installation
npx evalsutra install --ide claude --project . --dry-run
npx evalsutra install --ide claude --project .
Editor optionFolder written
claude.claude/skills/
cursor.cursor/skills/
codex.agents/skills/
gemini.gemini/skills/
copilot.github/skills/

Then ask your AI: "Use evalsutra-prime to plan an evaluation of my agent." Skills run on your editor's AI. EvalSutra verifies only the file copy, so check that your editor version discovers them.

Prove the tool itself#

npx evalsutra audit --out audit

Open audit/audit-report.html. Every check shows the expected and observed value.

Use in CI#

See the release pipeline scenario and the technical reference.

Troubleshooting#

SymptomCauseFix
Invalid evidence with exit 4Suite or observations are malformedRun validate and read each message
Refusing to overwriteA file or skill already existsChoose another folder or remove the old one
Unsupported --ideTypoUse claude, cursor, codex, gemini or copilot
runner is not_supportedOnly replay existsUse --runner replay
Gate stays REVIEWA case is inconclusiveAdd the missing observation field
cannot read JSON suites/demo.jsonRepo-relative demo paths used outside the repoUse npx evalsutra demo
npx evalsutra failsOld npm cache or no networkRun npm cache verify, then retry