Features
How Blog Docs Sign in Connect

All questions

Agent question

Why does my AI agent skip or break tests?

Updated

Short answer: Because nothing makes the tests part of done. An agent stops when the code looks right, and if no rule tells it to run the tests, or a failing test looks like someone else's problem, it reports done anyway. Put a rule in the instructions file it reads on every task: run the tests, say how many passed, and don't call it done while any test fails.

Common causes

How to check

Take your agents' last few weeks of tasks. For each one marked done, note whether tests ran, how many passed, and whether a test that passed before now fails. Tasks marked done with no test run are skipped tests. Tasks that leave a newly failing test are broken tests. Look at which agent and which kind of task each one comes from.

What to change

Where Overdrive helps

Your agents can report tests run and tests passed with each task. Overdrive's Agent health page flags skipping tests and breaking tests for each agent, and Fix it gives your own agent the rule to add. Overdrive then re-checks the tasks that follow and marks the issue resolved, or back if it returns.

Related

Meet Overdrive

Overdrive, your efficiency agent

Add Overdrive to Claude, ChatGPT, Cursor, Codex, or Grok Bot and ask how your agents are doing.