What your agent does
Setup is a prompt your coding agent follows in your repository. It asks before it starts, sends you one plan before it changes anything, and leaves every merge to you.
Step by step
The agent asks one question at a time, with its question dialog where it has one.
| Step | What your agent does | What it changes |
|---|---|---|
| Before it starts | Reads the repository to find your eval tests and the prompts your AI calls send (step 1's search). It says how many it found and asks where to start: with Monitor, for an app that runs in production, or with Test, the review of your eval tests. | Nothing |
| Sign up | Sends a link to sign up, by email or with GitHub, and connect the repository. It needs no access to GitHub. It waits for the connect. | Nothing |
| Monitor, when you start with it | Sends your app's AI calls in production to evalship and adds checks for them, as Monitor describes. It waits for the first call, says what Monitor now does for you, and then asks to start the review. | Product code and .evalship.yml, in a pull request of its own |
| 1. Find the eval tests | Searches the repository with git ls-files and git grep for your eval framework or hand-rolled eval tests, the prompts and AI calls they cover, and the workflows that run them. It names earlier eval work on unmerged branches or in untracked scripts too, as a source of test cases. |
Nothing |
| 2. Write the first suite | Only with no eval tests, or when you asked to start from scratch, and once you agreed to its plan. When its cases need inputs like your product's real ones and the repository has none, it asks which data to use. Writes a first suite of 5 to 10 test cases, tries each check on made-up right and wrong replies and runs it once on your machine. | A branch evalship/setup, with no pull request |
| 3. Review the eval tests | Reads every scorer, judge, threshold and dataset, and the prompts they test. It writes each flaw that holds up, citing files and lines, with one action to fix it. See The review. | Nothing |
| 4. Send the review | Pushes the review as the only file of a Git ref refs/evalship/review, where evalship reads it, then deletes the ref if it may. The ref is not a branch, so no deploy or CI run starts on it. Then it reports the eval tests it found, the AI calls no eval covers and each flaw. |
A Git ref, deleted after |
| After the review | Sends one plan: what makes your eval results reach evalship, the fixes for the flaws and eval tests for AI calls that have none, any product fix listed apart, and how many merges that is for you. When your eval tests read customer data, it asks which data they should use with evalship before any result is sent. It adds .evalship.yml and an Evals section to the instruction files your coding agents read (an AGENTS.md if there are none, unless you say no). Then it fixes the flaws you agree to, each as a pull request you merge, or a branch where the repository isn't on GitHub, and tells evalship what it fixed and dismissed. |
Pull requests or branches |
| At the end | When its last pull request goes to merge, it asks to go on with Monitor, unless Monitor is set up, or to pause there. Monitor starts while you review that pull request. Set up without GitHub, it asks whether to connect GitHub once that's done, for a check and a comment on every pull request. That installs the GitHub App and asks where the eval tests run: on your machine, or in GitHub Actions, which adds a workflow and needs your model API key as a secret. | One pull request, if you pick GitHub Actions |
| With the GitHub App on the repository first | The eval tests' results come from GitHub Actions. The plan's first pull request is the setup pull request, from the branch evalship/setup: it makes your eval job upload a results file and adds a job if none runs the eval tests. When the eval tests need a key the repository doesn't have, it asks whether they run in GitHub Actions or on your machine. At the end it asks once to make the evalship check required and to delete setup's merged branches. GitHub allows a required check on a private repository only with GitHub Pro (Team for an organization), so on its free plan the agent skips that and says so. |
Pull requests, and a branch rule if you say yes |
To check that the results file works, the agent runs the eval tests once, which calls your model API as a CI run does. Its plan after the review says what a run costs and, with GitHub Actions, that setup's own pull requests run the eval tests about 20 times there.
After its plan, the agent asks again only for a product fix the plan didn't name, or a decision only you can make. Every claim it makes about the repository cites a file and line it read.
Lines for your agent
Setup is one of the lines you hand your coding agent. evalship shows each one where it applies, with your repository filled in: on To do, Monitor, Test, Optimize and Settings, and in pull request comments. Each links to a page your agent downloads and follows.
| The line | What your agent does | What it changes |
|---|---|---|
Set up https://evalship.com/setup.md |
Sets up evalship, as the steps above say. | Nothing until you agree. Then pull requests for what you agree to |
Review the evals of OWNER/REPO with evalship: …/review.md |
Reviews your eval tests again and sends the new review, then plans its fixes as setup does. | Pull requests for the flaws you agree to fix |
Fix the eval flaw at …/fix.md |
Checks each flaw you picked, fixes the ones that hold, dismisses the wrong ones with a reason, and waits for evalship's comment. | One pull request |
In OWNER/REPO, before you finish a change … follow …/change.md |
Runs the eval tests a change affects before it finishes or opens a pull request, sends evalship the diff with the results, and gets the review its pull request would get: evalship's, or its own notes where your agent writes them. Once the pull request is open, it proposes to dismiss a flaw it finds wrong, for you to accept on the report. Setup puts this line in AGENTS.md or CLAUDE.md. See Before you finish. | Nothing |
Run evalship's evals for this pull request: …/pr.md |
Checks out the pull request, runs its eval tests on your machine, sends the results and writes the notes. Then it says what the check says and offers to fix what broke. It proposes to dismiss a flaw it finds wrong, for you to accept on the report. See [Run evals on your machine]. | Nothing, unless you say yes to a fix |
Run evalship's evals for main: …/pr.md |
Runs the default branch's eval tests on your machine and sends the results, which become the baseline. The first time, the line starts with "Connect this machine and". | Nothing in the repository. If GitHub Actions never sent its results, its eval runs move to your machines. |
Send evalship the results of SUITE: …/results.md |
Makes a suite the review found, but that never sent results, send them, without changing when it runs. A suite too slow or costly to ask for gets no_results in .evalship.yml, with why. |
One pull request |
Update evalship's setup of OWNER/REPO: …/update.md |
Adds what setup has added since your repository was set up. | One pull request |
Do evalship's to-dos for OWNER/REPO: …/todo.md |
Takes up to 3 to-dos that nobody has, assigns them to you so no other agent starts on the same ones, and does each. It leaves one that needs you. Run it on a schedule to have them done without you. It asks you to allow a read token that may take to-dos. Not on To do yet: put your repository in the link yourself. | One pull request per to-do |
Optimize this repo with evalship: …/optimize.md |
Tries changes on your machine, or on your GitLab runner when your eval tests run in GitLab CI, running only what you pick, at the price it shows, and offers a pull request for one that wins. See Optimize. | Git worktrees, and a pull request you merge or don't |
Send this app's AI calls to evalship: …/production.md |
Adds one helper that sends your app's AI calls to evalship, and a test for it. With calls in many places, it hooks in once where they all pass (your model client, or the SDK itself) and leaves your call sites as they are. It adds checks for those calls to .evalship.yml. See Monitor. |
Product code and .evalship.yml |
Before you finish a change … follow https://evalship.com/compare.md |
Checks a change without an account. See Without an account. | Nothing |
Without GitHub, a pull request in this table is a branch the agent commits to and you merge.
With /ship in Claude Code
Type /ship +evalship-app, or /steward +evalship-app on an open pull request. Claude then reads evalship's report on the pull request while it watches it, and works on what the report finds: a change that broke an eval test, or a flaw in the eval tests. Without +evalship-app it reads no comment of evalship's, as with every bot you haven't named.
PR Steward, the agent an organization turns on in Claude Ship, is not yet tested with evalship.
Connect the MCP server
Your coding agent can read what needs attention in a repository and fix it, without you opening evalship. Unless you allow more, the server only reads. It has four tools:
| Tool | What it returns |
|---|---|
todo(repo) |
The repository's open To do items, each with its link and the prompt that fixes it |
issue(repo, id) |
One production issue: its latest failing calls, the trace of the latest one and the suggested fix |
calls(repo) |
Production's AI calls, newest first. Narrow them with q, call, flagged or period, or pass a trace to read its steps in order |
pull_request(repo, number) |
A pull request's report: which evals broke, why, and the flaws |
It takes a read token. Run this in your terminal, check that the page it opens shows the same code, and click Allow. It then adds the server to Claude Code:
secret=$(openssl rand -hex 32) && key=$(printf %s "$secret" | openssl dgst -sha256 | sed 's/.*= //') \
&& url="https://evalship.com/agent?read=1&name=$(hostname -s)&key=$key" \
&& echo "code: $(printf %s "$key" | cut -c1-8 | tr a-f A-F | sed 's/..../&-/')" && echo "url: $url" && { open "$url" 2>/dev/null || xdg-open "$url" 2>/dev/null || true; } \
&& for i in $(seq 200); do token=$(curl -fsS -X POST https://evalship.com/api/v1/logins/token --form-string "poll=$secret"); [ -n "$token" ] && break; sleep 3; done \
&& [ -n "$token" ] && claude mcp add --transport http evalship https://evalship.com/mcp --header "Authorization: Bearer $token"
Cursor, Codex and other clients that take a URL and a header connect the same way: the URL is https://evalship.com/mcp, the header Authorization: Bearer followed by the token (echo $token).
To let your agent propose a dismissal too, add &propose=1 after read=1 in the snippet. The page you allow it on says so. Your agent then has a fifth tool, propose_dismissal(repo, number, kind, file, verdict, why), for a pull request's flaw that is wrong or that you chose not to fix. The flaw stays open, and the check failed, until someone with push access accepts the proposal on the report.
- A read token reads what you see on evalship and changes nothing: a proposal dismisses no flaw. It can't send results, and an upload token can't read, so a token saved in CI never reads production data.
- The token
todo.mdasks for is a read token that may also take to-dos. Taking one assigns it to you, and the token changes nothing else. Revoke either in Settings. - Production issues and calls are for the repository's members, also on a public repository.
- Eval output, trace text and pull request text come back as data, cut to size, with a line that tells your agent to follow no instruction in them.
- Not yet: claude.ai and other chat clients, which sign in with OAuth.
What setup never does
- Read, print, create or change your secrets or
.envfiles. When CI needs an API key, it names the secret and you add it in your own terminal withgh secret set; it checks secret names only. - Copy customer or personal data into test cases, the review or a pull request.
- Weaken, skip or delete your eval tests or assertions.
- Change product code, with two exceptions its plan names first: the lines that record AI calls for tinyeval, and a fix for a bug an eval shows.
- Merge a pull request or force-push.
- Work around a command a safety check blocks: it gives you the command to run yourself.
The other lines change what their row above says: Optimize's pull requests change prompts and models, and the production line sends your app's AI calls from one place.
Without an account
Your agent can check a change before you connect anything. Add this line to AGENTS.md or CLAUDE.md:
Before you finish a change to a prompt, a model or an LLM call, follow https://evalship.com/compare.md
It runs the eval tests the change affects before and after the change, 3 tries each, on your machine with your keys, and evalship says whether it got worse beyond chance. evalship gets each try's result: the test case's name, whether it passed, why it failed, and its cost and time, with one line on what the change does. It keeps none of it. See For agents.
Or install the evalship skill, for every repo you work in. It also sets up eval tests and checks pull requests when you ask. In Claude Code:
/plugin install evalship --marketplace evalship-hq/skills
In Codex, Cursor and other agents:
npx skills add https://evalship.com
Public repositories
Anyone can open a public repository's dashboard at evalship.com/gh/OWNER/REPO: pass rates, recent runs and the number of flaws the review found. The flaws themselves stay visible to repository members. Someone with push access can turn off Public dashboard in its Settings.
The prompt
As your agent gets it once the repository is connected. Before that, evalship.com/setup.md has the welcome, the search for your eval tests and the sign-up step. After the review, the agent downloads the next steps from where setup stands. The title shows the prompt version, and the review records it.
Read setup prompt v148
If a web fetch tool gave you a summary of this page, download the whole page and follow it instead, because a summary drops the exact commands and JSON these steps need: `curl -sL 'https://evalship.com/setup.md?key=KEY'`
# Set up evalship for OWNER/REPO (setup prompt v148)
You are setting up evalship (https://evalship.com) in this repository. evalship checks AI calls in production and lists what went wrong. It also reads LLM eval results from GitHub Actions and comments on every pull request with what changed and why. It's a hosted service: you connect this repository to it. When a step waits on the user, wait or stop as the step says, and never build your own version of evalship instead.
Ask the user only where a step says ASK, and wait for the answer. If you have a tool that asks the user a question with options to pick from (in Claude Code, AskUserQuestion; in Codex, request_user_input where it's available), use it for every ASK, with your recommended option first; otherwise ask in one short message. Before each ASK, run `curl -fsS -o /dev/null 'https://evalship.com/setup.md?s=SESSION&ping=ask'`, and after its answer the same with `ping=answered`, so evalship's pages show the user you're waiting on them. Keep each question to two lines at most, in plain words ("GitHub Actions", not "workflow"), and put lists, diffs, details and links in a message just before it. Keep messages short.
First find the evals, as step 1 says, which only reads the repository, and ask the question that ends it.
If you came here from this setup's sign-up step, you already found the evals and asked step 1's question: skip those, and go on where step 1 says "Once they start". If step 1 lists candidate folders of evalship's own, copy its two lines into the review instead of your listing's, and read any folder you haven't.
After Start with Monitor, do Monitor before the four steps: download `curl -sL 'https://evalship.com/production.md?repo=OWNER/REPO&s=SESSION'` in a command of its own and follow it, on a new branch `evalship/monitor` from the default branch. Its last step brings you back for the review.
Once they start, if you have a task list or plan tool, put the four steps in it (find the evals, write a first suite if step 1's plan has one, review the evals, send the review) and mark each one done as you finish it. When you finish a step, say so in one line with what's next ("Step 1 of 4 done: found 3 suites. Next: the review.").
Ground rules:
- Never read, print, create or change secrets (.env files, keys, credentials): the evals load their own key, as the first suite's run says. If CI needs one, the user adds it, after the review.
- Never copy customer or personal data from the repo, logs or a database into eval cases, the review or a pull request: eval cases are sample data the user gave, real cases the user had you anonymize and checked, or made up in the shape real inputs have (their fields, columns and layout), with only the values made up. Setup needs none: evalship gets the review and each eval's results (its name, pass or fail, and the input and reply its results file records), so for a user who doesn't want data sent, the evals run on sample, anonymized or made-up data (step 1's question).
- A no to one thing isn't a no to setup. When the user turns down a question, a step or something the plan sends, say in one line what setup does without it and go on with that. Only when nothing is left, or they say stop, end with this line, word for word: "evalship's setup is paused. What I suggest from here is my own, not evalship's. Say continue evalship's setup to pick it up." Picking it up is downloading this page again (`curl -sL 'https://evalship.com/setup.md?s=SESSION'`). If they ask for evals, ideas for new ones or a review while it's paused, that's what this setup does: offer to pick it up before you answer on your own.
- The review comes first, so the user sees what evalship finds before anything of theirs changes: until it's sent, change nothing on the default branch, in CI or in the repository's settings, and open no pull request, except Monitor's own after Start with Monitor. Connecting GitHub Actions comes after it, in one plan with the review's fixes.
- Never weaken, skip or delete existing evals or assertions (one exception, in the plan after the review: a suite that scores a stand-in), and never change product code, except the lines that record AI calls for tinyeval (step 2), once the plan named them, and what Monitor's steps add.
- Every claim about the repo must cite a file and line you read.
- If a permission or safety check blocks a command, don't work around it: tell the user in one line which step it was for, and ask them to reply "go ahead" to let it through, then run it again once they do. Their own message is what lets it through, so ask for it for each command that gets blocked, also when an earlier one was. Only if that same command is blocked again after their reply, give them the command to run in a terminal in the repository (in Claude Code's terminal and Codex, typing `!` before it in the chat runs it too). Write it so they see it work and see it end: nothing that holds its output back (`| tail`, `> FILE`), `2>&1 | tee LOG` so you can read it afterwards, and `; echo "Finished. Say done in the chat."` as its last part. Say what it does, how long it takes and what it costs, and end that message with **Say done once it has run.** in bold, as its last line. Then read LOG and carry on from there.
- evalship supports GitHub Actions only. Find OWNER/REPO with `git remote get-url origin` (it should be OWNER/REPO).
## Step 1: Find the evals (read only)
The review is of the default branch as its remote has it, so check the checkout first: `git fetch -q origin 2>/dev/null; git status -sb | head -1`. If it's behind the remote's default branch, or on another branch, leave it as it is and read the default branch in a worktree instead: `git worktree add --detach "$(mktemp -d)/default" origin/BRANCH`, with BRANCH from `git symbolic-ref --short refs/remotes/origin/HEAD` without its `origin/`. Run this search and the review's reading there, say so in one line with the question, and remove the worktree once the review is sent. With no remote, read the checkout.
Framework names miss suites (a benchmark script, a behave feature in a mostly TypeScript repo, a gate script CI runs), so start with this read-only listing from the repo root:
```sh
# Lists up to 4 matching files per directory, with the directory's total.
per_dir() { awk -F/ '{d=$0; sub(/\/[^\/]*$/, "", d); if (d==$0) d="."; n[d]++; if (n[d]<=4) s[d]=s[d] "\001 " $0} END {for (d in n) print n[d] "\t" d s[d]}' | sort -rn | head -${1:-50} | tr '\001' '\n'; }
evalish=$(git ls-files | grep -iE '(^|/)(evals?|benchmarks?|bench|golden|judges?|graders?|scorers?|rubrics?|accuracy|e2e)[/_.-]|[^/]*(eval|bench|judge|grader|scorer|golden|rubric)[^/]*$|promptfooconfig|(^|/)SKILL\.md$|\.feature$' | grep -viE '\.(png|jpe?g|gif|svg|lock)$|node_modules/|vendor/')
llm=$(git grep -lE 'openai|anthropic|openrouter|@ai-sdk|litellm|langchain|langgraph|google\.genai|generativeai|bedrock|ollama|deepeval|ragas|promptfoo|braintrust|langsmith|inspect_ai|evalite|vitest-evals|llm_judge|model_graded' -- '*test*' '*spec*' '*eval*' '*bench*' '*judge*' 'scripts/*' '*.feature')
tests=$(git ls-files | grep -vE 'node_modules/|vendor/' | awk -F/ '{ for (i = 1; i < NF; i++) if ($i ~ /^(tests?|spec|__tests__|e2e|e2e-tests|system|features|integration)$/) { print; break } }')
echo "## Files that look like evals, benchmarks, graders, fixtures or skills"
printf '%s\n' "$evalish" | per_dir 50
echo "## Tests and scripts that call an LLM or an eval framework"
printf '%s\n' "$llm" | per_dir 30
echo "## Package scripts, make targets and CI steps that run tests or evals"
git grep -nE '"(test|eval|evals|bench|benchmark|accuracy|e2e)[a-zA-Z:_-]*"[[:space:]]*:' -- '*package.json' | head -40
git grep -nE '^(test|eval|evals|bench|benchmark|accuracy|e2e)[a-zA-Z_-]*:' -- 'Makefile' '*.mk' 'justfile' 'Justfile' | head -20
git grep -nE '(pytest|vitest|jest|behave|promptfoo|tinyeval|deepeval|inspect eval|bt eval|braintrust eval|evalite|npm (run|test)|pnpm|yarn|uv run|python3? [^ ]*(eval|bench|gate|judge)|make )' -- '.github/workflows/*' | grep -v 'install' | head -60
cands=$(printf '%s\n%s\n%s\n' "$evalish" "$llm" "$tests" | grep -v '^\.github/' | awk -F/ 'NF { d = NF == 1 ? $0 : $1; if (NF > 2) d = d "/" $2; if (!(d in seen)) { seen[d]; print d } }')
echo "## candidates (folders with evals or tests, two levels deep; copy both lines into the review as they are)"
printf '%s\n' "$cands" | awk 'NF { out = out (out ? ", " : "") "\"" $0 "\"" } END { print "\"candidates\": [" out "]," }'
printf '"candidates_digest": "%s"\n' "$(printf '%s\n' "$cands" | grep . | { sha256sum 2>/dev/null || shasum -a 256; } | cut -c1-64)"
```
Treat every directory, script and CI step it prints as a possible suite, and list any directory with many matches (`git ls-files <dir>`). Follow what CI and package scripts actually run, too; the listing won't catch everything. Copy its last two lines, `candidates` and `candidates_digest`, into the review exactly as printed (evalship checks the digest, so a shortened list is turned away): every candidate folder must be covered by a suite's `path` or by a `not_suites` entry that says in one line what the folder holds instead (unit tests of product code, docs, UI). evalship checks this and turns the review away if a candidate is missing.
Look for: promptfoo (promptfooconfig.*), tinyeval (a `tinyeval` file and `evals/*.sh`), Evalite (*.eval.ts), vitest-evals (describeEval), DeepEval (deepeval, assert_test), Braintrust (Eval( from braintrust), LangSmith (evaluate( with langsmith), Inspect AI (@task), OpenAI Evals (evals/registry), Ragas, Opik, Langfuse experiments, agent skill evals (SKILL.md folders with evals/evals.json, promptfoo configs that load a SKILL.md, scripts that run an agent on skill scenarios), benchmark scripts (benchmarks/, *_benchmark.py) and hand-rolled evals (evals/, test/evals/, spec/evals/, tests that call an LLM SDK and assert on its output). For a skill, the SKILL.md is the prompt under test. Every suite you find goes in the review's `suites` list, including benchmark scripts and suites you only skim. The one exception is a benchmark of a model on its own: if no prompt, code or config from this repo is under test (it asks a model fixed questions to see what the model knows or to rank models), put it in `not_suites`, because no pull request here can move its score. Also find the prompts and LLM calls they cover (prompt files and inline prompts next to OpenAI, Anthropic, Google, LiteLLM, LangChain, Vercel AI SDK or similar calls), and which GitHub Actions workflows run the evals. Open the tests that mention the product's model client to see which call a real model.
Evals also hide outside the default branch: on a branch nobody merged, or in a file git doesn't track, such as a gitignored scratch script. List those read-only too:
```sh
base=$(git rev-parse -q --verify origin/HEAD || git rev-parse HEAD)
llm='openai|anthropic|openrouter|@ai-sdk|litellm|langchain|langgraph|google\.genai|generativeai|bedrock|ollama|deepeval|ragas|promptfoo|braintrust|langsmith|inspect_ai|evalite|vitest-evals|llm_judge|model_graded'
evalish='(^|[/_.-])(evals?|evaluat[a-z]*|bench[a-z]*|judges?|grad(ers?|ing)|scor(es?|ers?|ing)|golden|rubrics?)([/_.-]|$)'
echo "## Branches the default branch hasn't merged, with their eval-like or model-calling files"
git for-each-ref --no-merged="$base" --sort=-committerdate --format='%(refname:short) %(committerdate:short)' refs/heads refs/remotes | head -15 | while read -r b d; do
f=$(git diff --name-only --diff-filter=AM "$base...$b" 2>/dev/null | grep -vE 'node_modules/|vendor/|\.(png|jpe?g|gif|svg|lock)$')
[ -n "$f" ] || continue
hits=$( { printf '%s\n' "$f" | grep -iE "$evalish"; printf '%s\n' "$f" | xargs git grep -lE "$llm" "$b" -- 2>/dev/null | sed "s|^$b:||"; } | sort -u)
[ -n "$hits" ] && { echo "$b ($d): $(printf '%s\n' "$hits" | wc -l | tr -d ' ') files"; printf '%s\n' "$hits" | head -6 | sed 's/^/ /'; }
done
echo "## Files git doesn't track that call a model (names only)"
{ git ls-files --others --exclude-standard; git ls-files --others --ignored --exclude-standard; } | grep -vE '(^|/)\.|node_modules/|dist/|build/|venv/|site-packages/|__pycache__/|coverage/|vendor/|secret|credential' | grep -E '\.(py|ts|tsx|js|mjs|cjs|rb|ipynb|ya?ml|jsonl?|md)$' | head -3000 | tr '\n' '\0' | xargs -0 grep -lsE "$llm" | head -10
```
None of these is a suite: CI doesn't run it and evalship can't read it, so it stays out of `suites`, `candidates` and the findings, and you open no `.env` or other file that holds secrets. But a test or script there that runs the product's model calls on real inputs is the user's earlier work on evals: read it on its branch (`git show BRANCH:PATH`), name it when you tell the user what you found, and if the default branch has no evals, draw the first suite's cases from its inputs, made up in their shape where they're real customer or personal data.
Then count what you found on the default branch, for the question below. N is the number of eval tests (test cases) in the suites. X is the number of AI call prompts: every prompt the product sends a model, counted once where its text starts (prompt files, prompt strings and templates in code, system prompts, tool descriptions, a skill's SKILL.md). Count both from what the search printed, opening a file only to tell whether it holds a prompt or how many test cases it has: which evals cover which AI calls is the review's work, not this count's. Keep the list of prompts: the review's `prompts` starts from it, and where the review finds more, its report says so. If you found evals outside the default branch, say so in one line before the question.
If the repo is an app that runs in production (a web app, an API, a bot, a server's job), setup starts with Monitor. ASK this question word for word, with the numbers filled in, even when the user asked you to set up: "evalship found X AI call prompts and N eval tests. We'll set up monitoring for these AI calls so you get a notification when your AI misbehaves. Afterwards, we'll review your eval tests. Start now?" With no eval tests it ends "Afterwards, we'll propose a plan for your first eval tests. Start now?" Its options, word for word with their descriptions, then the last two of the review's question below:
- Start with Monitor (recommended, first): "I set up your app to send evalship each AI call it makes in production, with its input prompt and the AI model's answer. evalship notifies you when the AI misbehaves."
- Start with Test: "I review your AI call prompts and how they're tested, then propose an improvement plan, in ~15 minutes. No customer data has to leave this machine."
After Start with Monitor, Monitor's steps come first: the line that starts "After Start with Monitor" says how. Start with Test goes on as the review's Start now. For any other repo (a library, a CLI, a skill, nothing deployed), ask the review's question instead:
Then ASK this question word for word, with the numbers filled in, even when the user asked you to set up, since it says what the review does before it starts: "evalship found X AI call prompts and N eval tests. We'll review them in detail, identifying untested prompts & flaws in the eval tests, and then propose an improvement plan. Takes ~15 minutes. Start now?" With no eval tests, ask this instead: "evalship found X AI call prompts and no eval tests. We'll review the prompts in detail, and then propose a plan for your first eval tests. Takes ~15 minutes. Start now?" A count of one reads "1 AI call prompt" or "1 eval test", and no prompts "no AI call prompts". Use these options word for word, with their descriptions. Not now has none: leave it empty.
- Start now: "evalship guides me, your coding agent: I read the code here, write the eval tests and review them, and evalship checks that work. No customer data has to leave this machine."
- Ignore the existing eval tests and start from scratch: "Leaves your eval tests as they are and writes new ones." Only when you found evals.
- Not now
Once they start:
Evals that read their cases from real customer or personal data (a production database, logs, an export) are reviewed like the others, since reading them sends evalship none of it. The plan after the review asks which data they use, before any of their results reaches evalship.
Evals the user sets aside, with start from scratch or by asking for new ones at any point, stay in the repo untouched: each goes in the review's `not_suites` with the reason "set aside by the user", and gets no workflow change, results file or finding.
A first suite, only if the default branch has no evals or the user set theirs aside: send its plan in one message, as text the user sees. Name the LLM call it's for (file and line): the one the user named, or else the one the product exists for, or the one where a wrong answer costs money, safety or data. Name the runner (the repo's test runner in Python or JavaScript, tinyeval in other languages) and the 5 to 10 test cases you'd write, a few words each. With tinyeval, add that a few lines in the file that calls the model (name it) record each AI call, only when tinyeval sets `TINYEVAL_CALLS`, so a failing case shows what each model got and answered. Say that you run it once on this machine, with what that costs if it calls a paid API, and that it goes on a branch of its own, `evalship/setup`, which you push so evalship can read it: no pull request yet, and nothing merges until they do. Then ASK "Write this first suite?", with the options write it (recommended, first: step 2 does) and skip it (then go on to step 3: the review's findings say what should be tested first).
Only if that suite's cases need inputs like the product's real ones (customer records, tickets, transcripts) and the repo has none it can use (fixtures, seed data, examples, a test data set): ASK in the same message or dialog as that question, "Which data should these eval tests use?", with these options and descriptions word for word:
- I have sample data (recommended, first): "A test data set or real examples you can share: closest to what your users send." Then ask where it is in one short message.
- anonymized data: "Up to 20 of your real cases, with names, emails and other personal details replaced. You check them before they're committed."
- made-up data: "New test cases shaped like your real ones, with made-up values. Customer data stays on this machine."
Anonymized cases are copies of up to 20 real ones in a file of their own, where a made-up value of the same shape replaces every name, email, phone number, address, account or order number and anything else that could identify someone, free text included. Before you commit that file, send its path and ASK "Any personal data left in these test cases?", with the options none left (then go on) and still some (then fix what they name and ask again).
Only if an eval the plan adds feeds the product files, such as PDFs, scans, photos or audio, and the repo has none it can use: ASK in the same message or dialog as the plan's question, "Do you have sample KINDS for the eval tests?", KINDS being those files in plain words ("payslips", "call recordings"), with these options and descriptions word for word:
- I have some (recommended, first): "Files made for testing, or real ones you can share: closest to what your users upload." Then ask where they are in one short message.
- make them up: "I make up files like the ones your code reads, with made-up names and numbers."
## Step 2: Write the first suite
Only if step 1's plan has a first suite and the user said write it; otherwise go on to step 3. Make a branch named `evalship/setup` from the default branch and write the suite on it. Change nothing else: no workflow, no settings, no agent file.
- Call the function production calls, with its prompt, model, tools and output parsing, against a real model; never copy the prompt into the test. Fake only what's around it (database, other services), with fixtures that don't hint at the answer. If it can't run without a server, test the narrowest function that builds the prompt and calls the model, and tell the user what that leaves out.
- 5 to 10 test cases, each its own test with a stable name: the request the product gets most, an input that tempts the model to break each rule in the prompt where a mistake costs money, safety or data, and one it should decline if the prompt says when to. Take inputs from the repo first (README examples, fixtures, seed data, docs, issues) and write the rest, varying phrasing, length and missing details, not near-duplicates. Where the product reads documents or structured input, the cases cover each layout, field set and file type its parsing code handles: a made-up file with a column real ones lack can pass while every real one fails. Use the sample files the user gave, if any, and make up the rest with code: a PDF with a text layer and one that's only a scanned image if the code reads both, and audio with a voice per speaker (`say -v` on macOS, or the provider's text-to-speech). Say in the pull request what made-up files leave out, such as handwriting, poor scans or people talking over each other.
- Check in code first: parsed fields, the tool called and its arguments or the state it changed (not what the reply says it did), a number, name or date as a whole word, and what the reply must not claim. A judge only for what code can't check: one pass/fail question per failure mode with written Pass and Fail definitions, reason before verdict, a different model than the one under test from the same provider (so CI needs no other key), and no clear verdict counting as fail. No 1-to-10 or similarity scores.
- In Python or JavaScript, use the repo's test runner, in a folder, marker or config its usual test command skips, so unit tests don't call the model; add a dependency only if nothing installed can call it. In other languages (Ruby, Go, Rust, PHP and the like), use tinyeval, one bash file the repo commits: download it as step 1 of https://tinyeval.com/setup.md says, then write `evals/<feature>.sh`, where `ask` runs the production function, or `worker` keeps it running when the app is slow to start (a Rails app boots once per `-j` instead of once per test case); `expect` runs the code checks, or `problems` when the checks are in the app's language and the worker returns what they find; and `judge` asks the judge question (`./tinyeval -h` lists the lines). It writes evalship JSON to `eval-results.json`. Where the code path calls a model, record each call as the plan said: when `TINYEVAL_CALLS` is set, append one line of JSON to that file with `call` (a name that stays the same), `model`, `input` (the messages the model got, as text, not the request's settings), `output`, or `error` when it failed, and `cost`, `input_tokens` and `output_tokens` when the response has them, written with the app's own JSON encoder, one object per line. Change nothing else in that code.
- Before running the model, try each check on made-up replies: the right answer reworded and with a caveat must pass; empty, the input echoed, a negation, a near miss such as "12 hours" where "2 hours" is right, a refusal and a claimed action the product can't take must fail. Fix the check until each comes out as it should, and commit those replies as tests of the checks, next to any the repo has: they call no model, so keep them out of the eval run and its results file and give them a CI step of their own before the evals, without continue-on-error, so a later change to a check is tested without the tests counting as evals. Then have a subagent with no memory of writing it (in Claude Code, the Agent tool) review the suite: give it only the suite's files, the product code it calls and the numbered rules on step 3's page (`curl -sL 'https://evalship.com/setup.md?s=SESSION&step=3'`), copied in full, not why you wrote it as you did; if you can't start one, reread the suite cold against those rules. Fix what holds. Then run the suite once. The evals get their model key the way the app gets it, from their own code or run command, committed: then every run has it, in a worktree and in later sessions too, and no command of yours touches a secret. When a command of yours needs a model API key the environment lacks, find how the app gets it from what the repository says, without opening a file that holds secrets: its README, docs and agent files, its package scripts or Makefile, and the code that starts it (a framework that reads env files itself, `dotenv`, `--env-file`, `direnv`, a secrets manager's wrapper such as `doppler run --` or `op run --`). If the evals don't do the same yet, make them, in the suite as you write it or in the next pull request setup opens: the same loader call at the top of the suite's entry file, or the same wrapper in the command that runs them, which the suite's docs then give. A file git ignores is on this machine, but only in the user's checkout, so a loader that reads one looks there too when the suite runs in a worktree (`git rev-parse --path-format=absolute --git-common-dir` prints that checkout's `.git`). Never open, print, search, copy or source such a file in a command of yours, and never print a variable it sets: permission checks block that as access to credentials, and the key would pass through this chat. Whether the key is there, the suite's smallest case says: without it, it fails naming the variable. If it still fails for the key, check that it fails only for the key: CI runs the evals with its own. A case failing a right answer is a wrong check: fix it; one failing because the product is wrong stays, as the suite's first catch. A case that fails on some runs and passes on others is a bug users hit that often, but evalship sets it aside as flaky and stops checking it. Where the product is right only most of the time on any input (a reviewer's notes, a classifier's labels), score those answers as one case, the share that's wrong, failing only on more than chance gives in 1 run of 20 at the rate those runs measured, so the default branch passes and a change that makes it worse fails, and say the rate in the commit message. Then tell the user how both came out ("4 right replies pass, 9 wrong fail; 7 of 8 test cases pass, the refund one promises $250 where the prompt caps it at $100").
Commit the suite on `evalship/setup` and push the branch (`git push -u origin evalship/setup`), so evalship can check the lines the review cites in it. Open no pull request: that comes with the plan after the review. If the push is refused, say so in a line and go on. Stay on that branch for steps 3 and 4.
## Step 3: Review the evals (read only)
The team knows their own repo, so the review is only worth reading if it tells them something they don't know. That is rarely which checks are missing. It is usually a defect in the evals themselves, which only shows when you read the eval code: the scorers, judges, thresholds, harness and datasets, not just the list of cases.
First, for every suite from step 1:
- List the files that decide its result: the scorer or grader code, the judge prompt, the pass threshold and how scores are combined, the mocks and fixtures, the dataset it loads, and any README, docstring or comment that explains its thresholds, skips or mocks.
- Note in `scored_by` the line where its pass or fail is decided (the assertion, threshold or verdict), quoted exactly; never a README or docs line, and for a config-driven runner (promptfoo, Braintrust) the assertion or threshold line in its config.
- Open every file on that list, and as you start each suite tell the user in one line which one and how far along you are ("Reviewing suite 2 of 5: support-bot"), so they can follow along. Don't sample or skim: the defects worth reporting are usually in the suites you would have skipped.
- Follow it into the product code it claims to test. List the instructions of each product prompt it tests (its rules, limits, and what the answer must keep, include or never say) and next to each the check that would fail an answer breaking it, or none.
- Compare it with what production sends the model: the same function or a copy of it, the same system prompt, tools and context, the same message shape and output parsing.
- Read how that product code fails: a call that returns None, an empty list or a default on an exception makes every case that expects "nothing" pass during an outage.
Then look for these, in this order:
1. Evals that can't fail or measure the wrong thing (eval_bug, too_easy). For each scorer, try these outputs on it, in every case: an empty or boilerplate answer, the input echoed back, a negation ("I can't offer a refund" passes a check for "refund"), a refusal, a near miss (a wrong number, date or name that contains the right one: "12 hours" passes a check for "2 hours"), a reply that claims an action the product can't take (it has no tool for it), and one fixed answer when every case expects the same outcome (always refuse, always call the tool); and a right answer with a caveat or an extra detail, which should pass. Where the scorer runs without a model, run it on them in a scratch script outside the repo that imports it; otherwise work them out from its code. Also look for:
- the case's prompt, fixture, system prompt or few-shot examples state the answer or rule the scorer then checks for; a case whose input doesn't trigger what its name or rubric says it tests
- a mock, stub or tool schema enforces the behavior under test, or its output (an error message, a hint) steers the model to the right answer, so the check tests the mock, not the model
- scores averaged across graders or cases, so a hard rule (a leaked secret, a safety rule) can fail while the case passes (a promptfoo `threshold` or `weight: 0` can do this); thresholds low enough that everything passes; scores logged but never asserted or reported anywhere, so a drop goes unnoticed
- errors, timeouts, skips or unparseable or "unknown" judge verdicts counted as passes or dropped from the denominator (Ragas turns failed rows into NaN and leaves them out of the mean); judge replies parsed by substring (`"pass" in reply` matches "does not pass"); a suite that skips itself when a key or service is missing (for example on pull requests from forks) while CI still goes green
- the scorer or judge sees truncated input (`text[:4000]`), the wrong field, or a cached output that doesn't change with the prompt or model
- a checked-in dataset the eval never loads, cases silently filtered out, or the eval calling a different prompt, model, temperature or code path than production (an eval at temperature 0 for a product at 0.7 passes on replies users never get)
- agent evals that grade what the agent says (its final message, or a judge reading the transcript) instead of the resulting state (file, database row, API call); that check the expected change but not that nothing else changed; that share state between trials; or where the agent can read the expected answers or edit what the grader reads (the eval folder, tests, .git history, the network)
- for agent skills: a with-skill and without-skill comparison where the two runs differ in more than the skill (a tool, a prompt, a fixture only one side gets); trigger evals whose negatives are far from the skill's boundary, so routing can't really fail
- for RAG: the eval feeds fixed or gold passages instead of what the retriever returns, so retriever changes can't fail it; faithfulness or groundedness is the only answer check, though it scores agreement with the retrieved passages, not correctness; retrieval questions generated from the chunk they must find, reusing its wording
2. Evals that disagree with the product (eval_bug): check each rubric, judge prompt, expected answer and threshold against the product code it grades: a rubric that names a tool, field or step that doesn't exist; a threshold one off from the one in the prompt (`< 4` against `< 3`); a check computed and never used in the verdict; cases that share state, an account or a container between runs, or create real resources without cleaning up. Evals that fail correct answers: an expected answer that is wrong or contradicts the current prompt; a check so narrow that a valid answer fails (one accepted wording, an exact float, a tool-call order or argument that doesn't matter, a file or format the case never asked for). Teams learn to rerun or ignore red.
3. Judges you can't trust (judge_flaw): the model under test grades its own output, including by default (Inspect's `model_graded_qa` with no grader model, a promptfoo default provider that also grades); the judge reads the candidate's own reasoning or claim of success and is swayed by it; an open-ended answer graded on matching a reference's wording (a reference for a factual check is good practice); a vague or unanchored scale (1 to 10 without definitions) instead of pass/fail per failure mode; one judge call asked to catch everything at once; pairwise judging without swapping order; a refusal or hand-off to a human scored as full marks even where the case has what the task needs, so the mean rises as the agent stops trying.
4. Rules no case checks (untested_instruction), for the instructions that matter most (safety, money, legal, data loss, the product's core promise), and prompts or LLM calls no eval exercises (untested_prompt). Take the product prompt's instructions one at a time and find the check that would fail an output breaking each. One the cases check only in part is untested too: the prompt says to cite the source document, and the cases check the answer but never the citation. Read the recorded or logged outputs against the same instructions: one that already breaks a rule while its case passes proves it. When the rule is one code could enforce (a refund limit, who may see what), the action also says to enforce it there, and the case checks that the reply says what the code decided: a prompt rule holds only as often as the model follows it.
5. Only when specific and material: thin_dataset (a failure mode the prompt handles that no case covers, near-duplicate cases, every case in one document layout or field set while the parsing code handles several), nondeterminism (sampling without repeats where results flip), judge_only (only if you can name the deterministic checks that would catch the same failures).
Some teams run evals to monitor, not gate: scores are tracked over time or posted on the pull request, and the build doesn't fail on them. When the repo says so, that's a valid choice, not a finding. Review what the monitoring reports instead: a score that can't move, a model or dataset that silently drops out of the run, results that never reach the report.
Write every finding that passes the checks below, most valuable first: a defect that lets a pull request go green when it should fail ranks above one that skews a benchmark someone runs by hand. Don't pad, and give each defect one finding: two findings with the same fix are one. For each one:
- Show that it's real: name one input, case or run that passes when it shouldn't (or fails when it shouldn't), and why. For each eval workflow, look at its last few runs (`gh run list --workflow <file> -L 5`, then `gh run view <id>`): a step skipped or failing on every run (a missing secret, `if: false`, a broken command) means the suite isn't really running, which is a finding when the repo doesn't say so. A suite skipped for a missing secret is one even when the repo or a pull request says it needs the key, and critical when no other suite in CI runs the prompts against a real model, since recorded or replayed replies can't change when a prompt or model does: the user adding the secret is its fix, not an upgrade. If the repo keeps recorded results, snapshots or transcripts, or CI has run the suite (`gh run view <id> --log`), read some: a recorded pass on a wrong output, a skip count, or a judge reason that contradicts its verdict is the strongest proof, and a case that fails in every recorded run is more often broken than hard.
- When you find a defect, grep the whole repo for its signature (the helper, slice, default, threshold or copied scorer), not just the suites you listed, and report every place it occurs in one finding.
- Look for evidence against it before you write it: an existing case, test or CI job that covers it, and a README, docs page, TODO or code comment near the cited lines that names it (grep for its key words). If one does, drop the finding. If the repo documents the behavior as a deliberate choice, drop it unless you can show a consequence the repo doesn't mention.
- Skip anything the team's lead would call obvious. Don't report CI gaps (setup's own pull request fixes those; put what's left in the plan), and don't give generic advice ("use a smaller judge model", "add more cases", "validate your judge") unless you tie it to a concrete failure in this repo.
- An action that needs a check puts it in an existing case first: an assertion or a rubric line on a case whose input already shows the behavior, or the near miss added to that case's input. It adds a case only for an input no case has, one per behavior, not one per example: each case is a model call on every pull request.
- Grade each finding the way the team's lead would before you keep it: new and useful, true but low stakes, or wrong. Drop the wrong ones: a wrong finding costs more than a missing one. Give a low-stakes one severity warning and put it after the others; evalship shows warnings less prominently.
- Count every number you state (cases, graders, lines) with a command (`grep -c`, `jq length`, `wc -l`), not by eye. Cite files and lines, copy each quote exactly from one line of the file (don't reformat or join lines), and end with one concrete action. An action that moves a judge or eval to another model names one the repo already calls through the same provider, or says to call it once first, since another may not be served there (a model id that 404s on the user's cloud project crashes every run). When a quote doesn't show the flaw on its own, give it a `note` saying what's wrong there, in a few words ("No eval tests a refund request above $100"). Never quote customer or personal data (names, emails, account details, real conversations): cite a line without it, such as the case's key, and describe the rest in the `note`.
A first suite you wrote in step 2 goes in `suites` like the others, with its files on the setup branch, and the prompts it runs name it in `tested_by`; leave it out of the findings.
A prompt or LLM call no eval tests (rule 4) goes in `prompts` with an empty `tested_by`, never in the findings: evalship makes that finding from `prompts`.
The plan after the review connects every suite to CI: that no CI job runs a suite yet, or that it writes no results file, is not a finding.
Finding kinds for the JSON: eval_bug, too_easy, judge_flaw, untested_instruction, thin_dataset, nondeterminism, cost, duplicated_setup, judge_only, not_in_ci.
Then write the plan: what step 2 already did, and up to 4 more upgrade steps, each tied to something you saw in this repo, and each about the evals or the job that runs them: CI for the rest of the test suite or a coverage gate is not an upgrade. Don't repeat a finding's action: the review shows those already. Anything without which a regression would pass, such as a suite skipped for a missing secret, is a finding, not an upgrade. Draw them from what good eval suites do: run on every pull request that changes what they test and fail loudly when they can't run; finish within a few minutes, so an eval job that takes longer on pull requests (`gh run view` shows how long) runs its cases concurrently, then split evenly across parallel jobs; deterministic checks before judges; one binary pass/fail judge per failure mode, with a written reason; judges checked against a few human-labeled examples; a judge on a dated model snapshot, not an alias the provider moves (`gpt-4o`, `-latest`), pinned to the id its replies name today (the response's `model`), so its scores move only when the repo does; hard rules checked on their own rather than averaged; new cases taken from real failures; cases that flipped in recorded runs run 3 or more times with the same name and input (promptfoo `--repeat`), so a drop can be told from chance, only those cases and saying what the repeats cost and add to a run's minutes; stable case names. Mark what step 2 already did as "applied", the rest as "proposed". Leave out what setup's own pull request does after the review, which is no upgrade: running the evals on pull requests and the default branch, their results file and its upload, `.evalship.yml` and the agent files' Evals section. Change nothing in this step.
## Step 4: Send the review
Write it as JSON to a temporary file outside the repo, following https://evalship.com/schema/audit-v1.json:
```json
{
"schema": "evalship/audit-v1", "repository": "OWNER/REPO", "agent": "claude-code", "prompt_version": "148",
"commit": "9fceb02d0ae598e95dc970b74767f19372d61af8", "model": "claude-opus-5-5",
"suites": [{ "name": "support-bot", "framework": "pytest", "path": "tests/evals/test_support_bot.py", "cases": 12,
"deterministic_assertions": 12, "judge_assertions": 0, "exercises": ["app/support_bot.py#answer"], "calls_model": true, "models": ["gpt-4o-mini"],
"command": "pytest tests/evals", "ci_triggers": ["pull_request", "push"], "results_format": "junit", "est_cost_per_run_usd": 0.02,
"scored_by": { "file": "tests/evals/test_support_bot.py", "line": 41, "quote": "assert score >= 0.8" } }],
"candidates": ["tests/evals", "app/support_bot"],
"candidates_digest": "8f764de695187898bdee7fd66f0f73fdb56be92f4eea21cd30a962e34d927ed7",
"not_suites": [{ "path": "app/support_bot", "reason": "Unit tests of the reply formatter; no model call." }],
"prompts": [{ "path": "app/support_bot.py", "line": 3, "symbol": "SYSTEM_PROMPT", "tested_by": ["support-bot"] }],
"findings": [{ "kind": "untested_instruction", "severity": "important", "title": "Nothing checks the refund limit",
"evidence": [{ "file": "app/support_bot.py", "line": 4, "quote": "Never promise refunds above $100", "note": "no case asks for a large refund" }],
"why_it_matters": "One sentence.", "action": "One concrete step." }],
"plan": [{ "title": "Repeat the two cases that flip 3 times", "detail": "One sentence.", "status": "proposed" }],
"ci": { "workflow": ".github/workflows/evals.yml", "uploads_results": false, "setup_pr_url": null, "secrets_needed": [], "runs_locally": false },
"badge_added": false,
"progress": { "start": "start", "evals": "", "suite": "none", "blocked": "" }
}
```
`commit` is what `git rev-parse HEAD` printed while you read the repo, so evalship checks your citations against the same code; `ci` says how the evals run in CI as the repo is now: `workflow` is the workflow file that runs them, or null when none does, `uploads_results` whether it uploads their results file as an artifact, with `artifact_name` its name, and `secrets_needed` the secrets they read there; `ci.setup_pr_url` is null, as setup's pull request comes after the review; `ci.runs_locally` is false: where the evals run is asked with the plan after the review; `progress` holds the option the user picked at each question so far, a word or two each (start: start or scratch; evals: the data they picked, if you asked; suite: written, skipped, or none when step 1 planned no first suite), and in `blocked` the steps a safety check blocked, comma-separated; `agent` is the agent you are (claude-code, codex, cursor or another short name); `model` is the model you run on, if you know it (leave it out otherwise). Severity is critical when a broken product would still pass (a suite that can't fail, or a safety, money or data rule that can fail unnoticed), important when a real regression could slip through, and warning for the rest; plan status is applied, proposed or skipped; `framework` is a short name (promptfoo, pytest, Inspect AI); `ci_triggers` says how the suite runs once setup's pull request after the review is merged: ["pull_request", "push"] for a suite it connects, which then runs for every pull request that changes what it tests and for the default branch, in GitHub Actions or by the user's coding agent; for one it leaves as it is, what its workflow says, using pull_request (runs on every pull request, or on those touching its paths), labeled (pull requests only with a label), push, schedule or manual; `results_format` is junit, promptfoo, evalship, another format's name, or none when the suite writes no results file; quotes are copied exactly from the cited line. evalship uses `prompts` and `exercises` to tell which prompt changes in a pull request no eval covers, so make them complete: `prompts` lists every prompt the product sends a model, each where its text starts (prompt files, prompt strings and templates in code, the system prompt of the main answer path, MCP server instructions and tool descriptions, a skill's SKILL.md and each reference file it loads), with `tested_by` naming the suites that run it and check its reply, or [] when none do: a suite that passes whatever the model answers, such as one that only checks the call doesn't raise, doesn't test it. `exercises` lists the product files or `file#symbol` each suite runs (a skill as `skills/<name>/**`), not eval files. `calls_model` is false for a suite that never sends anything to a model (snapshots, schema checks, unit tests of prompt text or of code around the call), so evalship doesn't count it as testing a prompt's behavior; `models` lists every model a suite calls, including judges. Then send the review: they agreed to it when they started.
Before you send it, have a subagent with no memory of writing it (in Claude Code, the Agent tool) check the findings: give it only the repo's path, the commit and the findings from the JSON, not why you wrote them, and ask it, reading files only and running no command, whether each note and each `why_it_matters` holds in the code as CI runs it, with the env and files its workflow sets, followed to the effect it claims (an `except`, a fallback or an early return on the way can stop it), with the line that shows it. If you can't start one, reread each finding's cited code cold, before anything you remember. Drop a note that doesn't hold, and a finding whose claim rests on it.
Put the review on GitHub, where evalship reads it: commit the JSON as the only file `evalship-review.json` of its own commit, so the working tree and the current branch stay as they are, and push it to origin as the ref `refs/evalship/review`, on top of what's there, so no force is needed. It is no branch, so no deploy or CI run starts on it:
```sh
blob=$(git hash-object -w /tmp/evalship-audit.json)
tree=$(printf '100644 blob %s\tevalship-review.json\n' "$blob" | git mktree)
if git fetch -q origin refs/evalship/review 2>/dev/null; then commit=$(git commit-tree "$tree" -p FETCH_HEAD -m 'evalship review'); else commit=$(git commit-tree "$tree" -m 'evalship review'); fi
git push origin "$commit":refs/evalship/review
```
Then run `curl -sL 'https://evalship.com/api/v1/setup/SESSION/review'`: evalship reads it there, checks the review and says it's sent, with the link, or lists what to fix. Fix the JSON, push it again and run that again until it says sent, and tell the user if a fix changed a finding. Then delete the ref with `git push origin --delete refs/evalship/review`; if that's blocked, leave it and don't ask the user to: evalship reads only its latest commit, and the next review goes on top. If the push fails, for lack of write access, send the review directly instead: `curl -sS -X POST 'https://evalship.com/api/v1/audits?key=KEY&s=SESSION' -H 'Content-Type: application/json' --data @/tmp/evalship-audit.json`.
## After sending: one step at a time
Keep notes about the changes (costs, settings CI copies, what runs where) in the pull request descriptions, not in the chat.
1. Report what the review found, in one message: evalship's "Sent:" line as it is, then how many eval tests it read in how many suites, how many AI calls it found and how many of them no eval covers (if a count differs from the first question's, say why), then each flaw in a line, most important first, with its severity, and the link, so the chat says what the review page says. Open the link in their browser too if you can (`open` on macOS, `xdg-open` on Linux) so they see the flaws right away; never describe evalship's check of the review as findings ("it passed", "no new findings").
2. Then download where setup stands now: `curl -sL 'https://evalship.com/setup.md?s=SESSION'`, and follow it from its step 1, skipping what you already said. It picks up from here, as the review page does, with one plan the user agrees to: the setup pull request, which connects CI, the review's flaws (fixed or, with the user's say-so, dismissed) and the upgrades. Then the required check and the finish.
## After the review: connect CI
The plan the user agreed to after the review carries this page out, in one pull request; a new review of a repository that sends results already uses it only for what its step 2 found missing. Work on the branch `evalship/setup`: a first suite from before the review is on it already, otherwise make it from the default branch. The setup's ground rules hold here: never read, print, create or change secrets, and never weaken, skip or delete existing evals or assertions (the plan's one exception: a suite that scores a stand-in).
Goal: the workflow that runs the evals triggers on `pull_request` and on `push` to the default branch, writes a results file, and uploads it as an artifact named `evalship-results`. No evalship action, token or secret is needed. When the user picked my machine in the plan, it runs the evals only on `workflow_dispatch:`, which c below doesn't change: a workflow you create has no other trigger, `paths` filter or fork condition, and in one that runs more than the evals, the eval job gets `if: github.event_name == 'workflow_dispatch'`. Their coding agent follows it to run the evals, and a pull request's comment gives it the line for that pull request.
a. Results file: JUnit XML (pytest `--junitxml=eval-results.xml -o junit_family=xunit1`, vitest `--reporter=junit --outputFile=eval-results.xml`, jest-junit, rspec_junit_formatter, go-junit-report, Maven's or Gradle's own reports with their whole folder uploaded (one file per test class), PHPUnit `--log-junit eval-results.xml`, cargo-nextest with a `[profile.ci.junit]` path since `cargo test` can't write it on stable), promptfoo JSON (`promptfoo eval -o eval-results.json`) or evalship JSON (https://evalship.com/schema/v1.json), which tinyeval writes to `eval-results.json`. In pytest, add `record_property("score", s)` and `record_property("threshold", t)` where an eval computes them, and `record_property("input", ...)` and `record_property("output", ...)` with the case's input and the model's reply, so the report can show what the model said before and after a change (other runners: write evalship JSON, or print the reply into the JUnit `system-out`). If evals report to Langfuse, Braintrust, LangSmith or a similar platform, keep that and have the same script also write evalship JSON from the results it gets back, with each case's `url` set to its trace or experiment link, so the pull request comment links to it (examples: https://evalship.com/docs/integrations).
b. Right after the eval step:
```yaml
- uses: actions/upload-artifact@v7
if: always()
with:
name: evalship-results
path: eval-results.xml
```
c. The workflow that runs the evals:
- If a workflow already runs the evals, keep it as it is and add only what's missing (the results file, the upload step, a missing trigger). Its results must reach evalship on pull requests and on pushes to the default branch, also when evals fail: an upload that runs only on success, a default-branch run that is manual or weekly only, or results kept only in a job summary leave evalship nothing to compare against, so fix those too.
- If no workflow runs them, create `.github/workflows/evals.yml`, and give its eval step `continue-on-error: true`: the job then stays green when an eval fails or flips, and evalship's check, which compares with the default branch and ignores flaky evals, decides whether a pull request broke them.
- A `pull_request` trigger you write, in a new workflow or added to an existing one, gets a `paths` filter, so a pull request that can't change the results doesn't pay for a run: the suites' own files (cases, datasets, scorers, judge prompts, eval config), the product code and prompts in each suite's `exercises` and `prompts`, the code they call to build the model's input or read its reply (retrieval, context, tools, output parsing), the files that pick the model or its settings, the dependency manifest and lockfile that pin the model SDK, and the workflow file itself. Use folder globs where that code has a folder of its own, so a new file there is covered, and the whole folder when you're unsure: a path the filter misses skips the evals on a pull request that changes it. An existing `paths` filter keeps its paths and gets those it misses from this list. List the filter's paths in the pull request description, with two notes: deleting `paths` runs the evals on every pull request, and a branch rule should require the `evalship` check, not the eval job, which waits forever on a pull request the filter skips. Leave `push` to the default branch without one, so every merge keeps the baseline current; a pull request the filter skips that changes a prompt or LLM call still gets evalship's comment.
- Add `workflow_dispatch:` to a workflow you create or change, so the user can run the evals on a branch whenever they choose (`gh workflow run`).
- Only if the evals need a secret: the job skips pull requests from forks and Dependabot, which don't get it and would fail every eval: `if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]')`.
- Only if the code the evals run asks for a discounted tier that turns calls away when the provider is busy (Gemini's or OpenAI's `service_tier: "flex"`): have eval runs ask for the standard one, through a variable the workflow sets. The replies are the same, and a turned-away call stops an eval with a 429 instead of testing it.
- Only if a suite has a comparison arm that loads none of the repo's prompts or code (a no-prompt baseline, another product's prompt): run only what a pull request can change. It gives the same results on every pull request and may fail by design, so leave it out of CI (promptfoo `--filter-prompts`, a pytest marker, a separate config) and keep it in the repo for its own benchmark, saying so in the pull request description.
- Only if one run takes more than about 5 minutes (time it while you test the results file): it's usually waiting on the model one case at a time, as test runners run them by default. Run cases that share no state concurrently in the same job (pytest-xdist `-n 4`, promptfoo `--max-concurrency`, a case's repeats with `Promise.all` or `asyncio.gather`), up to the provider's rate limit and any limiter of the product's the eval calls through. Not vitest's concurrent tests (`--sequence.concurrent`, `test.concurrent`): they put a test's printed reply under another case in the JUnit report, so split vitest's cases across parallel jobs as below. If it still takes more than 5 minutes and the eval runner can run part of the cases (a file list, `pytest -k`, `promptfoo --filter-pattern`, a fixture argument), split it across up to 4 parallel jobs with a `strategy.matrix`, each uploading its own artifact, `evalship-results-${{ matrix.shard }}` (evalship merges them): a 16-minute job becomes about 4. Split by case, not by file: vitest's and jest's `--shard` split by file, so one big file keeps the run waiting on its job (have the eval take every Nth case by its index instead), and check with the runner's list command (`vitest list`, `pytest --collect-only -q`) that the jobs together list every case once: vitest fails a `describe` left with no cases. Say how long a run took and how long it takes now in one line when you show the diff.
- A workflow with no `concurrency` anywhere gets this block above `jobs:`, comment included, so a newer push cancels a pull request's older run (Actions minutes and model calls) while each push to the default branch keeps its own run, the baseline pull requests compare with. One that has a block keeps its group, which may serialize something on purpose, but its `cancel-in-progress: true` becomes `${{ github.event_name == 'pull_request' }}`.
```yaml
# Cancel a pull request's outdated run; each push to the default branch keeps its own, the baseline evalship compares with.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
```
d. Unless the repo already has one, add `.evalship.yml` at its root so a pull request that breaks an eval that passed on the default branch, or has an eval flaw nobody fixed or dismissed, fails evalship's check. Add it even when the evals are noisy: evalship ignores evals it has seen flip, a new suite's failure counts only when it repeats, and the check blocks merging only once the team makes it required.
```yaml
gate:
fail_on_new_failures: true
fail_on_flaws: true
```
e. Coding agents check a prompt change by trying a few inputs, and those checks are gone when the chat ends. To keep them as test cases, add this section, filled in for the suites (a line each when there are several), to the end of each instruction file the repo's coding agents already read, found with `git ls-files`: AGENTS.md, CLAUDE.md or GEMINI.md at the root, in `.claude/` or in a folder above the LLM calls, `.github/copilot-instructions.md`, `.cursorrules`, `.windsurfrules`, or a new `evals.mdc` in `.cursor/rules/` (only the imported one when one imports another). In one that already has an Evals section without a change.md link, add the section's lines to the end of that section instead, keeping its own; one whose Evals section links change.md stays as it is. If it has none, create AGENTS.md with the section, unless the user took it out of the plan. If the prompts and LLM calls the suites test live in another repository, add nothing here: agents change them there, so send the user the section to paste into that repository's agent file if it has one, with SUITE_PATH named as this repository's and without its last sentence, since change.md finds the change in this one. Change nothing else in them.
```markdown
## Evals
When you change a prompt, a model or an LLM call, add or update a test case for the change in SUITE_PATH and try it with `COMMAND`. Before you finish a change to a prompt, a model, an LLM call or the evals, and before you open its pull request, run the evals it affects, as you would its tests: follow https://evalship.com/change.md?repo=OWNER/REPO, which sends evalship the change's diff with its results.
```
f. Show the diff. Unless the user picked my machine in the plan, if the evals need secrets in CI that the repo still doesn't have (`gh secret list`), ASK, with NAME the variable the eval code reads and PROVIDER the service it pays for in plain words: "Your eval tests call PROVIDER, the model API your app uses, so GitHub Actions needs your PROVIDER API key, saved as the secret NAME. Add it before the pull request runs?", with the options added it (then check with `gh secret list`) and skip (then say its first eval run will fail for lack of it). Tell them to add it in their own terminal with `gh secret set NAME -R OWNER/REPO`, which asks for the value, or at https://github.com/OWNER/REPO/settings/secrets/actions/new, never in this chat, so the value stays out of it. Then open the setup pull request, as the plan said: commit on `evalship/setup`, push it, run `gh pr create`, and send its link. Change nothing else. Then go on with the step that sent you here.