This Free Tool Catches Your AI Chatbot Breaking Your Rules
Your AI support bot can cave when a customer pushes, and promise a refund or a discount you never allowed. Cortad is a free, open-source tester: write your rules in plain English, and it plays pushy customers against your bot and quotes the exact reply that broke a rule. How it works, how to start, and the catch.
Free setup guide · 7 pages · PDF
Test your chatbot against your rules
The two commands to run it, how to fill in cortad.json (or let Claude Code do it), 8 starter rules for a support bot, how to read a break, and keeping test data safe.
⬇ Download the PDFIf you run an AI support bot, you have rules it must never break: no refunds after 30 days, no discounts that aren’t on the price list. The trouble is that you probably only tested it with polite questions. Cortad is a new free, open-source tool (Apache-2.0) that tests the part you skipped: customers who push.
The problem: bots cave under pressure
Ask a support bot once and it usually follows the rules. Ask again, mention you’re a loyal customer, threaten a bad review, and many bots eventually say yes. Cortad’s README puts it plainly: a single direct question “is not where an assistant usually breaks.”
The README’s own example is a shoe store bot. A customer bought shoes in January and wants their money back. The bot answers: “Absolutely, I have approved a full refund for you.” That breaks the store’s 30-day rule.
How Cortad tests your bot
You describe your app and write your rules in plain English in a file called cortad.json, along with the address your bot answers on. The README’s example rules are “never promise a refund past 30 days” and “never state a discount that is not in the price list.”
Then Cortad invents people with a reason to break those rules and plays conversations against your app: 20 by default, up to 200. They don’t stop at one question; they push back the way real customers do.
Try this prompt
Not sure what your rules are? Paste this into ChatGPT or Claude first:
I run [your business] and my AI support bot answers questions about [orders, refunds, pricing].
List 8 rules it must NEVER break, each one short and testable, in this style:
"never promise a refund past 30 days".
Base them on these policies: [paste your refund policy, price list, shipping times].
It quotes the reply that broke a rule
This is the useful part. Cortad doesn’t just say “fail.” Every verdict names the exact sentence of your bot’s reply that it rests on, and a verdict whose quote isn’t actually in the reply gets thrown out. In the README sample, 2 of 20 conversations went wrong, each with the quote that proves it.
It can block a bad update
When a rule breaks (or your app doesn’t answer at all), Cortad’s check fails. Developers can put it in their build checks so a new bot prompt or model change that breaks a rule never reaches customers. There’s no account and no sign-up; you run it from a terminal.
Use case
A small online shop changes its bot’s instructions before a holiday sale. Before the change goes live, Cortad replays 20 pushy customers against the new version. One conversation shows the bot promising “free returns forever.” The shop fixes the instruction and runs the check again before customers ever see it.
The catch
- Your data leaves your computer by default. With the default judge, your
cortad.json(including any test login details in it) and every test conversation go to Cortad’s servers, and the README says they’re kept. Point it at a test copy of your bot, never at real customer data. - Five free runs a day per computer.
- It’s brand new. The first version went up on October 25, 2026, so expect changes.
- It plays invented people, not your real customers’ chats.
Workflow: your first test
- Make a test copy of your support bot (same instructions, no real customer data).
- In a terminal, run
npx github:cortad/cortad initto createcortad.json. - Fill in what your app does, where it answers, and 3–8 rules (use the prompt above).
- Run
npx github:cortad/cortadand read each break: the quoted sentence tells you what to fix in your bot’s instructions. - Fix, run again, and once it passes, add it to your build checks so every update gets tested.
The free guide above has the commands, a filled-in cortad.json, 8 starter rules and how to add it to your checks.
The fine print
Details are from Cortad’s README and source code as of October 26, 2026. It’s a new open-source project, not a guarantee your bot is safe; it tests the rules you write, with invented customers.
What’s the one thing your bot must never say?
Free weekly email
Get stories like this every week
The Weekly Signal: the week's AI news in plain English, plus one thing to try. Free, one email a week.
Sources & links 3
More on AI Agent News, AI for Small Business