Day 6, 30 minutes · advanced
Why it matters
Sooner or later Ilse asks the question every client asks: is the new version better? Without an eval, your honest answer is "it looked better on the emails I tried". That is a guess, and the client has only your word for it.
An eval is a fixed set of example inputs with a way to score each output. You run it, change one thing, and run it again. The inputs stay the same, so a difference in the score comes from your change. It turns "trust me" into a table the client can read and run again.
Today you build one for the Kettlebrook reply drafter: about twenty cases, including the awkward emails from discovery, one pass or fail check per case, and a before and after score for one change to the reply prompt. It all lives in the repository, so the eval keeps working after you have left.
The steps
1. Start from what you heard in discovery
About twenty cases is a workable size for a first eval: small enough that you read every case yourself, large enough to hold the nasty ones. Take fifteen normal emails: E-001 and fourteen new ones about the six orders in data/orders.csv, first names only. Add the five nasty cases from your discovery note:
- E-002, an order id in lower case
- E-003, two orders in one email
- E-004, an order that is not in the data (WH-19999)
- E-005, an email in Dutch
- E-006, no order number at all
The nasty cases are where a prototype breaks first, and where a client stops trusting it. Every case in evals/cases.json has the same fields: id, from_name (the sender's first name, which the greeting needs), email, expected_order_ids (a list, may be empty), expected_status, must_include and must_not_include (both lists of strings).
2. Pick a check per case
There are three kinds of check:
- An exact check in code. The draft contains
WH-10432, ends with the DRAFT line, and does not say "shipped" for a delayed order. It costs nothing to run and gives the same answer every time. - A rule. A written rule a person or a script applies, for example: if the order is not in the data, the draft says so and states no status.
- A model as judge. A second model reads the output and scores it against a written scoring guide. This helps for what code checks badly, such as tone, or whether the Dutch reply reads naturally. The judge is a model too and can be wrong, so this course keeps it on paper:
evals/scoring-guide.mdis the written guide that a person or a chat tool uses.
Use exact checks wherever you can. Write the rest into the scoring guide in plain words, one kind of case at a time.
3. Write the reply prompt by hand
The reply prompt is the instruction a model follows to turn one email plus the order data into a draft. Create prompts/reply.md yourself, with exactly this text:
You draft replies for the support team of Kettlebrook Wholesale. A person checks every draft before it is sent.
Input: one customer email and the order data in data/orders.csv.
Find the order number in the email (WH- plus five digits). Look up its status and its expected delivery date in the order data.
Write the draft in this shape: a subject line "Your order <order number>", a greeting with the customer's first name, one sentence with the status, one sentence with the expected delivery date written like 3 December 2026, the sign-off "Kind regards, Kettlebrook support", and as last line "DRAFT. A person checks this before it is sent."
It has no rule for an unknown order, for two orders or for another language. That is on purpose: those gaps are what the eval should show.
4. Let your agent stand in for the model call
On a real job the drafts come from the client's own model call. In this course your agent stands in for that call, so nobody needs an API key. The eval scores stored drafts in evals/drafts/ and does not care who wrote them.
evals/run.py reads evals/drafts/<id>.txt for every case, applies the exact checks, and prints PASS or FAIL per case and one total line. It uses only the Python 3 standard library and calls nothing over the network. Use python3 if python is not found.
Keep the writer of the drafts away from the answers. Write the drafts in a new session, not the one that wrote the cases, and tell it to use only the sender's name, the email, the reply prompt and the order data, never the expected fields. That separation rests on an instruction, not on a lock: the drafter can still open evals/cases.json. So read a few drafts for signs that an expected answer leaked in. In a chat tool the same conversation usually wrote the cases as well, so treat that run as practice and use the repository run for the client.
5. Baseline, one change, run again
Run the eval and write the result into evals/scores.md: run, date, passed out of 20, which cases changed. Then change one thing: the prompt, the model or a tool. Today it is this line in the prompt, added to the end of prompts/reply.md:
If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status.
Write all twenty drafts again from scratch and run the eval again. Between the two runs only the prompt changes: the same cases, the same script, the same order data. Change two things at once and you cannot tell which one moved the score.
Pick your tool below and follow the steps.
Read the result
A model writes the drafts, so your numbers will differ from another learner's, and from one tool to the next. There is no score to reach today. Look at which cases changed. The new line is about the unknown order, so start with E-004, then read the rest: a fix for one case can break another.
"Nothing changed" and "one case got worse" are findings too. Both are worth showing the client, because they stop a change that only looked better in a demo.
When a case fails, read the draft before you blame the prompt. Sometimes the check is wrong, for example a must_include string that is stricter than the reply needs to be. Fix a check in its own commit, never in the same step as the change you measure.
Keep it in the repository
Commit prompts/reply.md and the whole evals/ folder: the cases, the drafts, the script, the scoring guide and the scores. Show Ilse and Tomas the before and after table, not a demo. The cases are made up, and they stay that way in any tool outside the client's own environment. On day 7 this eval becomes the acceptance test of the run that goes on without you.
Deeper dive
Today's actions
Ticks are not saved without an accountDo it in your tool
Claude
- Open Settings > Capabilities and check that Code execution and file creation is on. In the updated Settings layout it is called Create and edit files.
- Click + in the lower left of the chat box, select Add files or photos and attach
orders.csvandsample_emails.csvfrom yourdata/folder. If you have nodata/folder, save the rows below as those two files first.orders.csv: order_id,customer,status,expected_delivery WH-10432,Sanne,delayed,2026-12-03 WH-10433,Daan,shipped,2026-11-30 WH-10434,Priya,processing,2026-12-05 WH-10435,Marco,delivered,2026-11-24 WH-10436,Emma,shipped,2026-12-01 WH-10437,Priya,processing,2026-12-08 sample_emails.csv: email_id,from_name,subject,body E-001,Sanne,Where is my order,"Hi, where is my order WH-10432? I need the pans before Friday." E-002,Daan,Status,"status of wh-10433 please" E-003,Priya,Two orders,"Can you tell me where WH-10434 and WH-10437 are?" E-004,Marco,Missing order,"Where is WH-19999? It should be here by now." E-005,Emma,Bestelling,"Hallo, waar blijft mijn bestelling WH-10436?" E-006,Daan,No news,"I ordered two weeks ago and heard nothing." - Paste this prompt to get the 20 cases and the scoring guide. Correct any case that does not match the order data, then save both in your
evals/folder.The attached files are made up. From orders.csv and sample_emails.csv, write 20 eval cases for a tool that drafts replies to order-status emails. Use E-001 to E-006 as they are. Add 14 normal cases, E-007 to E-020: new emails about the same six orders, from the customers named there, first names only. Fields per case: id, from_name, email, expected_order_ids, expected_status, must_include, must_not_include. Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write a short scoring guide: in plain words, what counts as a pass for each kind of case. Do not write any replies yet. - Paste this prompt so Claude writes the 20 drafts and runs the exact checks in code. Download the table it returns.
Now act as the drafter. For each of the 20 cases, use only from_name, the email and the order data, follow the reply prompt below, and write one draft. Then run the exact checks in code: for every case, check must_include and must_not_include against its draft. Give PASS or FAIL per case and the total, and return the table as an .xlsx file I can download. Reply prompt: You draft replies for the support team of Kettlebrook Wholesale. A person checks every draft before it is sent. Input: one customer email and the order data in data/orders.csv. Find the order number in the email (WH- plus five digits). Look up its status and its expected delivery date in the order data. Write the draft in this shape: a subject line "Your order <order number>", a greeting with the customer's first name, one sentence with the status, one sentence with the expected delivery date written like 3 December 2026, the sign-off "Kind regards, Kettlebrook support", and as last line "DRAFT. A person checks this before it is sent." - Paste this prompt for the one change. Download the new table and write both totals in
evals/scores.mdas run 1 and run 2.Add this line to the end of the reply prompt, write all 20 drafts again from scratch, run the same checks, and return the before and after totals side by side, with the cases that changed, as an .xlsx file I can download. If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Go to the Claude Code tab of this lesson for the run in your repository. Claude Code is not included in the Free plan.
Note: Running a repository's tests from chat is not described on Claude's pages: the code runs in a sandbox on the files you attach, up to 30MB per file. Owners can switch the capability off under Organization settings > Capabilities. Attach made-up data only.
ChatGPT
- Select + in the message box, then Add photos & files, and upload
orders.csvandsample_emails.csvfrom yourdata/folder. If you have nodata/folder, save the rows below as those two files first.orders.csv: order_id,customer,status,expected_delivery WH-10432,Sanne,delayed,2026-12-03 WH-10433,Daan,shipped,2026-11-30 WH-10434,Priya,processing,2026-12-05 WH-10435,Marco,delivered,2026-11-24 WH-10436,Emma,shipped,2026-12-01 WH-10437,Priya,processing,2026-12-08 sample_emails.csv: email_id,from_name,subject,body E-001,Sanne,Where is my order,"Hi, where is my order WH-10432? I need the pans before Friday." E-002,Daan,Status,"status of wh-10433 please" E-003,Priya,Two orders,"Can you tell me where WH-10434 and WH-10437 are?" E-004,Marco,Missing order,"Where is WH-19999? It should be here by now." E-005,Emma,Bestelling,"Hallo, waar blijft mijn bestelling WH-10436?" E-006,Daan,No news,"I ordered two weeks ago and heard nothing." - Paste this prompt to get the 20 cases and the scoring guide. Correct any case that does not match the order data, then copy both into your
evals/folder.The attached files are made up. From orders.csv and sample_emails.csv, write 20 eval cases for a tool that drafts replies to order-status emails. Use E-001 to E-006 as they are. Add 14 normal cases, E-007 to E-020: new emails about the same six orders, from the customers named there, first names only. Fields per case: id, from_name, email, expected_order_ids, expected_status, must_include, must_not_include. Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write a short scoring guide: in plain words, what counts as a pass for each kind of case. Do not write any replies yet. - Paste this prompt so ChatGPT writes the 20 drafts and runs the exact checks in Python.
Now act as the drafter. For each of the 20 cases, use only from_name, the email and the order data, follow the reply prompt below, and write one draft. Then run the exact checks in Python: for every case, check must_include and must_not_include against its draft. Show a table with PASS or FAIL per case and the total. Reply prompt: You draft replies for the support team of Kettlebrook Wholesale. A person checks every draft before it is sent. Input: one customer email and the order data in data/orders.csv. Find the order number in the email (WH- plus five digits). Look up its status and its expected delivery date in the order data. Write the draft in this shape: a subject line "Your order <order number>", a greeting with the customer's first name, one sentence with the status, one sentence with the expected delivery date written like 3 December 2026, the sign-off "Kind regards, Kettlebrook support", and as last line "DRAFT. A person checks this before it is sent." - Review the Python code, the outputs and the assumptions ChatGPT shows before you trust the table.
- Paste this prompt for the one change, then write both totals in
evals/scores.mdas run 1 and run 2.Add this line to the end of the reply prompt, write all 20 drafts again from scratch, run the same checks, and show the before and after totals side by side, with the cases that changed. If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Open the ChatGPT desktop app for the run in your repository, select Codex and open your
orderdesk/folder. Then follow the OpenAI Codex tab of this lesson.
Note: Data analysis is limited on the Free plan, and Free allows 3 file uploads a day. Its Python cannot make web requests or API calls, so it only checks drafts that are already written. A file to download from data analysis is not confirmed, so copy the text yourself. Running a test suite in Chat is not confirmed either.
Gemini
- Go to gemini.google.com, click Add files, then Upload Files, and attach
orders.csvandsample_emails.csvfrom yourdata/folder. If you have nodata/folder, save the rows below as those two files first.orders.csv: order_id,customer,status,expected_delivery WH-10432,Sanne,delayed,2026-12-03 WH-10433,Daan,shipped,2026-11-30 WH-10434,Priya,processing,2026-12-05 WH-10435,Marco,delivered,2026-11-24 WH-10436,Emma,shipped,2026-12-01 WH-10437,Priya,processing,2026-12-08 sample_emails.csv: email_id,from_name,subject,body E-001,Sanne,Where is my order,"Hi, where is my order WH-10432? I need the pans before Friday." E-002,Daan,Status,"status of wh-10433 please" E-003,Priya,Two orders,"Can you tell me where WH-10434 and WH-10437 are?" E-004,Marco,Missing order,"Where is WH-19999? It should be here by now." E-005,Emma,Bestelling,"Hallo, waar blijft mijn bestelling WH-10436?" E-006,Daan,No news,"I ordered two weeks ago and heard nothing." - Paste this prompt. It asks for the cases as a CSV file and the scoring guide as a Markdown file.
The attached files are made up. From orders.csv and sample_emails.csv, write 20 eval cases for a tool that drafts replies to order-status emails. Use E-001 to E-006 as they are. Add 14 normal cases, E-007 to E-020: new emails about the same six orders, from the customers named there, first names only. Fields per case: id, from_name, email, expected_order_ids, expected_status, must_include, must_not_include. Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write a short scoring guide: in plain words, what counts as a pass for each kind of case. Do not write any replies yet. Give the cases as a CSV file and the scoring guide as a Markdown file. - Download both files and save them in your
evals/folder. If the cases come back as a table instead, click Export to Sheets at the bottom right of the table. - Paste this prompt so Gemini writes the 20 drafts. It does not score them.
Now act as the drafter. For each of the 20 cases, use only from_name, the email and the order data, follow the reply prompt below, and write one draft. Give all 20 drafts as a CSV file with the columns id and draft. Do not score them. Reply prompt: You draft replies for the support team of Kettlebrook Wholesale. A person checks every draft before it is sent. Input: one customer email and the order data in data/orders.csv. Find the order number in the email (WH- plus five digits). Look up its status and its expected delivery date in the order data. Write the draft in this shape: a subject line "Your order <order number>", a greeting with the customer's first name, one sentence with the status, one sentence with the expected delivery date written like 3 December 2026, the sign-off "Kind regards, Kettlebrook support", and as last line "DRAFT. A person checks this before it is sent." - Score by hand only the drafts of E-001 to E-006: check each one for the
must_includeandmust_not_includestrings of its case, and use the scoring guide for the rest. Write the count out of 6 as run 1 inevals/scores.md. - Paste this prompt for the one change, then score the new drafts of the same six cases by hand as run 2 and compare.
Add this line to the end of the reply prompt, write all 20 drafts again from scratch, as a CSV file with the columns id and draft. Do not score them. If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status.
Note: For work inside a repository Google now sends individuals to Antigravity CLI. The Gemini CLI tab of this lesson only works with a company licence or a paid API key. Running the checks in Gemini chat is not confirmed, so this tab scores by hand, and only six cases to fit the time. The full run of 20 with checks in code belongs in a coding tab. Tasks, which run code on a remote computer, are not offered in the EEA, so not in the Netherlands.
Microsoft Copilot
- Attach
orders.csvandsample_emails.csvwith Upload images and files in Copilot Chat on your work or school account. If you have nodata/folder, or the upload is refused, paste the rows below as text.orders.csv: order_id,customer,status,expected_delivery WH-10432,Sanne,delayed,2026-12-03 WH-10433,Daan,shipped,2026-11-30 WH-10434,Priya,processing,2026-12-05 WH-10435,Marco,delivered,2026-11-24 WH-10436,Emma,shipped,2026-12-01 WH-10437,Priya,processing,2026-12-08 sample_emails.csv: email_id,from_name,subject,body E-001,Sanne,Where is my order,"Hi, where is my order WH-10432? I need the pans before Friday." E-002,Daan,Status,"status of wh-10433 please" E-003,Priya,Two orders,"Can you tell me where WH-10434 and WH-10437 are?" E-004,Marco,Missing order,"Where is WH-19999? It should be here by now." E-005,Emma,Bestelling,"Hallo, waar blijft mijn bestelling WH-10436?" E-006,Daan,No news,"I ordered two weeks ago and heard nothing." - Paste this prompt to get the 20 cases and the scoring guide. Save the scoring guide as a text file.
The attached files are made up. From orders.csv and sample_emails.csv, write 20 eval cases for a tool that drafts replies to order-status emails. Use E-001 to E-006 as they are. Add 14 normal cases, E-007 to E-020: new emails about the same six orders, from the customers named there, first names only. Fields per case: id, from_name, email, expected_order_ids, expected_status, must_include, must_not_include. Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write a short scoring guide: in plain words, what counts as a pass for each kind of case. Do not write any replies yet. Give the cases as CSV text. - Paste this prompt so Copilot adds a draft to every case. Copy the CSV text it returns into a file named
cases.csv.Now act as the drafter. For each of the 20 cases, use only from_name, the email and the order data, follow the reply prompt below, and write one draft. Return all 20 cases as CSV text with one more column, draft. Reply prompt: You draft replies for the support team of Kettlebrook Wholesale. A person checks every draft before it is sent. Input: one customer email and the order data in data/orders.csv. Find the order number in the email (WH- plus five digits). Look up its status and its expected delivery date in the order data. Write the draft in this shape: a subject line "Your order <order number>", a greeting with the customer's first name, one sentence with the status, one sentence with the expected delivery date written like 3 December 2026, the sign-off "Kind regards, Kettlebrook support", and as last line "DRAFT. A person checks this before it is sent." - Select New agent, then Skip to configure.
- Type
eval-checkeras Name on the Configure tab, add a one-line Description and paste the scoring guide into Instructions. Leave the toggle next to Create documents, charts, and code on. - Open the Try it tab, add
cases.csvand paste this prompt. The pages do not name the control for adding a file in Try it.Use the attached cases.csv. For each row, check the draft against must_include and must_not_include in code, and use the scoring guide in your instructions for anything code cannot check. Return a table with id, result and a one-line reason, the total score, and an Excel file I can download. - Select the download link in the answer straight away and save the result as run 1.
- Paste this prompt in Copilot Chat for run 2, save the CSV text it returns as a new
cases.csv, and repeat the last two steps.Add this line to the end of the reply prompt, write all 20 drafts again from scratch, and return all 20 cases as CSV text with the new drafts in the draft column. If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status.
Note: For the part that needs a repository this course sends you to the GitHub Copilot tab. That pairing is our choice, not a Microsoft statement. Microsoft's own route is the Code tab, which is a preview. On a personal account it is for the United States and Canada only. Files the agent makes are gone when the session ends. Plain Copilot Chat running code is not confirmed.
Paid planWork or school account. Code interpreter is for users with a Microsoft 365 Copilot licence and for Copilot Chat users without metered usage enabled.
Claude Code
- Create
prompts/reply.mdby hand with the first version from the lesson text. Then runclaudein yourorderdesk/folder. - Paste this prompt. Claude writes the cases, the check script and the scoring guide with its normal tools. Read
evals/cases.jsonbefore you go on.Read data/orders.csv, data/sample_emails.csv and prompts/reply.md. Create evals/cases.json with exactly 20 cases. Use E-001 to E-006 from data/sample_emails.csv as they are. Add 14 normal cases, E-007 to E-020: new made-up emails about the six orders in data/orders.csv, from the customers named there, first names only. Each case has the fields id, from_name, email, expected_order_ids (a list, may be empty), expected_status, must_include (a list of strings) and must_not_include (a list of strings). Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write evals/run.py in Python 3, standard library only, with no network calls. For every case it reads evals/drafts/<id>.txt, applies the checks in code, and prints PASS or FAIL per case and one total line. Also write evals/scoring-guide.md: in plain words, what counts as a pass for each kind of case. Do not write any drafts. Do not change data/ or prompts/. - Type
/clearso the drafts do not come from the session that wrote the cases. Then paste this prompt.Write one draft per case in evals/cases.json. For each case read only its id, its from_name and its email, follow prompts/reply.md with the order data in data/orders.csv, and save the draft as evals/drafts/<id>.txt. Do not read the expected fields of the cases. Replace any draft that is already there. Change no other file. - Paste this run prompt for the baseline. Check that the answer shows the command it ran and one PASS or FAIL line per case.
Run python evals/run.py and show me the command and its full output. Then add one row to evals/scores.md (create the file if it is missing) with the columns run, date, passed out of 20, and which cases changed since the last run. Change no other file. - Add this line to the end of
prompts/reply.mdyourself. It is the one change you measure.If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Type
/clearand paste the drafts prompt again, so every draft is written again from scratch. - Paste the run prompt again for run 2, then compare the two rows in
evals/scores.md. - Commit
prompts/andevals/with git so the client can run the eval after you have left.
Note: Claude Code has no general eval feature for your own project, so the eval is plain code in the repository. The bundled /claude-api build-eval (v2.1.259 or later) is described for a Claude-powered app: use it only as a second opinion on your cases.
Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The Free plan does not include Claude Code.
OpenAI Codex
- Create
prompts/reply.mdby hand with the first version from the lesson text. Then startcodexin yourorderdesk/folder. - Type
/planand press Enter, then paste this prompt. Read the plan and correct it before anything is built.Read data/orders.csv, data/sample_emails.csv and prompts/reply.md. Create evals/cases.json with exactly 20 cases. Use E-001 to E-006 from data/sample_emails.csv as they are. Add 14 normal cases, E-007 to E-020: new made-up emails about the six orders in data/orders.csv, from the customers named there, first names only. Each case has the fields id, from_name, email, expected_order_ids (a list, may be empty), expected_status, must_include (a list of strings) and must_not_include (a list of strings). Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write evals/run.py in Python 3, standard library only, with no network calls. For every case it reads evals/drafts/<id>.txt, applies the checks in code, and prints PASS or FAIL per case and one total line. Also write evals/scoring-guide.md: in plain words, what counts as a pass for each kind of case. Do not write any drafts. Do not change data/ or prompts/. - Choose Yes, clear context and implement when the plan is right.
- Type
/newso the drafts do not come from the chat that wrote the cases. Then paste this prompt.Write one draft per case in evals/cases.json. For each case read only its id, its from_name and its email, follow prompts/reply.md with the order data in data/orders.csv, and save the draft as evals/drafts/<id>.txt. Do not read the expected fields of the cases. Replace any draft that is already there. Change no other file. - Paste this run prompt for the baseline. Check that the answer has one PASS or FAIL line per case.
Run python evals/run.py and show me the command and its full output. Then add one row to evals/scores.md (create the file if it is missing) with the columns run, date, passed out of 20, and which cases changed since the last run. Change no other file. - Add this line to the end of
prompts/reply.mdyourself. It is the one change you measure.If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Type
/new, paste the drafts prompt again, then paste the run prompt again for run 2. - Commit
prompts/andevals/with git so the client can run the eval after you have left.
Note: In the default sandbox commands have no network access. That is fine here: evals/run.py needs none, so leave network access off. Codex has no eval feature of its own. Do not build on the OpenAI Evals dashboard: OpenAI gives 30 November 2026 as its shutdown date.
Paid planThe Codex CLI needs ChatGPT Plus, Pro, Business, Enterprise or Edu, or an API key. A free route for the CLI is not confirmed.
Gemini CLI
- Create
prompts/reply.mdby hand with the first version from the lesson text. Then start Gemini CLI in yourorderdesk/folder, signed in with your company licence or a paid API key. - Paste this prompt. When it asks to run a shell command, choose Allow once, so you see each command.
Read data/orders.csv, data/sample_emails.csv and prompts/reply.md. Create evals/cases.json with exactly 20 cases. Use E-001 to E-006 from data/sample_emails.csv as they are. Add 14 normal cases, E-007 to E-020: new made-up emails about the six orders in data/orders.csv, from the customers named there, first names only. Each case has the fields id, from_name, email, expected_order_ids (a list, may be empty), expected_status, must_include (a list of strings) and must_not_include (a list of strings). Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write evals/run.py in Python 3, standard library only, with no network calls. For every case it reads evals/drafts/<id>.txt, applies the checks in code, and prints PASS or FAIL per case and one total line. Also write evals/scoring-guide.md: in plain words, what counts as a pass for each kind of case. Do not write any drafts. Do not change data/ or prompts/. - Type
/clearso the drafts do not come from the session that wrote the cases. Then paste this prompt.Write one draft per case in evals/cases.json. For each case read only its id, its from_name and its email, follow prompts/reply.md with the order data in data/orders.csv, and save the draft as evals/drafts/<id>.txt. Do not read the expected fields of the cases. Replace any draft that is already there. Change no other file. - Paste this run prompt for the baseline and choose Allow once when it asks to run
python evals/run.py.Run python evals/run.py and show me the command and its full output. Then add one row to evals/scores.md (create the file if it is missing) with the columns run, date, passed out of 20, and which cases changed since the last run. Change no other file. - Add this line to the end of
prompts/reply.mdyourself. It is the one change you measure.If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Type
/clearand paste the drafts prompt again, so every draft is written again from scratch. - Paste the run prompt again for run 2, then compare the two rows in
evals/scores.md. - Commit
prompts/andevals/with git so the client can run the eval after you have left.
Note: Google now sends individuals to Antigravity CLI, a different product. This course has no checked steps for it. Without the licence or a paid key you cannot do this tab. The vendor documents no eval method for your own project: its eval guide is for contributors to Gemini CLI itself. Every call through the CLI counts against your request quota or your API bill.
Paid planNeeds a company Gemini Code Assist Standard or Enterprise licence, or a paid Gemini API or Vertex AI key. Free and Google AI Pro or Ultra sign-in stopped on 18 June 2026.
Cursor
- Create
prompts/reply.mdby hand with the first version from the lesson text. Then open yourorderdesk/folder in Cursor. - Open the Agent panel with Ctrl + I (Cmd + I on a Mac) and paste this prompt.
Read data/orders.csv, data/sample_emails.csv and prompts/reply.md. Create evals/cases.json with exactly 20 cases. Use E-001 to E-006 from data/sample_emails.csv as they are. Add 14 normal cases, E-007 to E-020: new made-up emails about the six orders in data/orders.csv, from the customers named there, first names only. Each case has the fields id, from_name, email, expected_order_ids (a list, may be empty), expected_status, must_include (a list of strings) and must_not_include (a list of strings). Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write evals/run.py in Python 3, standard library only, with no network calls. For every case it reads evals/drafts/<id>.txt, applies the checks in code, and prints PASS or FAIL per case and one total line. Also write evals/scoring-guide.md: in plain words, what counts as a pass for each kind of case. Do not write any drafts. Do not change data/ or prompts/. - Start a new chat so the drafts do not come from the chat that wrote the cases. Then paste this prompt.
Write one draft per case in evals/cases.json. For each case read only its id, its from_name and its email, follow prompts/reply.md with the order data in data/orders.csv, and save the draft as evals/drafts/<id>.txt. Do not read the expected fields of the cases. Replace any draft that is already there. Change no other file. - Paste this run prompt for the baseline. If Cursor asks you to approve the terminal command, approve it.
Run python evals/run.py and show me the command and its full output. Then add one row to evals/scores.md (create the file if it is missing) with the columns run, date, passed out of 20, and which cases changed since the last run. Change no other file. - Add this line to the end of
prompts/reply.mdyourself. It is the one change you measure.If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Start a new chat and paste the drafts prompt again, so every draft is written again from scratch.
- Paste the run prompt again for run 2, then compare the two rows in
evals/scores.md. - Commit
prompts/andevals/with git so the client can run the eval after you have left.
Note: Agent is on the Free plan with Cursor's own models and limited usage. We did not confirm how many requests a twenty-case run uses. On the legacy plans the Free plan is called Hobby. Whether a command asks first depends on your Run Mode under Settings > Agents > Approvals & Execution. Auto-review is the default from Cursor 3.6. Cursor's own eval framework is only for agents built with its Agent SDK.
GitHub Copilot
- Create
prompts/reply.mdby hand with the first version from the lesson text. Then startcopilotin yourorderdesk/folder. - Paste this prompt and approve the file writes it asks for.
Read data/orders.csv, data/sample_emails.csv and prompts/reply.md. Create evals/cases.json with exactly 20 cases. Use E-001 to E-006 from data/sample_emails.csv as they are. Add 14 normal cases, E-007 to E-020: new made-up emails about the six orders in data/orders.csv, from the customers named there, first names only. Each case has the fields id, from_name, email, expected_order_ids (a list, may be empty), expected_status, must_include (a list of strings) and must_not_include (a list of strings). Put the line "DRAFT. A person checks this before it is sent." in must_include of every case. Then write evals/run.py in Python 3, standard library only, with no network calls. For every case it reads evals/drafts/<id>.txt, applies the checks in code, and prints PASS or FAIL per case and one total line. Also write evals/scoring-guide.md: in plain words, what counts as a pass for each kind of case. Do not write any drafts. Do not change data/ or prompts/. - Run this one-shot command in a second terminal in the same folder. A one-shot run works without entering an interactive session, so the drafts do not come from the session that wrote the cases.
copilot -p 'Write one draft per case in evals/cases.json. For each case read only its id, its from_name and its email, follow prompts/reply.md with the order data in data/orders.csv, and save the draft as evals/drafts/<id>.txt. Do not read the expected fields of the cases. Replace any draft that is already there. Change no other file.' --allow-tool='write' - Run
python evals/run.pyyourself in that terminal and write the total and the failing ids as run 1 inevals/scores.md. - Add this line to the end of
prompts/reply.mdyourself. It is the one change you measure.If the email names an order that is not in the order data, say you cannot find it and ask for the order number again. Never guess a status. - Run the one-shot command again, then
python evals/run.py, and write the result as run 2 inevals/scores.md. - Commit
prompts/andevals/with git so the client can run the eval after you have left.
Note: Every run uses AI credits, so the limit of your plan applies, also on Free. The exit code of copilot -p only tells you the run finished, not whether the cases passed: read the total line of evals/run.py and keep it in evals/scores.md. GitHub documents no eval method of its own.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up