{"slug": "all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs", "title": "All my tests passed. Then I sent 4 AI \"users\" into my app and they found 5 bugs", "summary": "A developer built a small command-line ToDo app with three passing tests, then ran four parallel Claude Code subagents, each role-playing a different user persona, against it; the AI \"users\" surfaced five bugs that silently corrupted data, none of which the original tests caught. The full run, including a lead agent that reproduced and triaged reports into logic bugs, usability issues, spec conflicts, no-issues and unverified buckets, cost just under $1.50 on Sonnet. The developer packaged the loop as a Claude Code skill and argues that harness engineering is only complete once failing tests and CLAUDE.md notes prevent the same bug from recurring.", "body_md": "The term is everywhere right now. I read a few explainers (\"designing the environment, constraints and feedback around an AI\") and nodded along without really getting it.\n\nIt clicked when I built one small loop myself:\n\n**Have AI pretend to be users, let them use the app, and plug every hole they find so it can't come back.**\n\nThat's not all of harness engineering. But it's the fastest way I know to feel what \"stop the AI's mistakes with a system, not with hope\" means.\n\nA harness is what you put on a horse. A fast horse without reins doesn't go where you want. Same with agents: the system around the model matters as much as the model.\n\nLangChain sums it up as \"Agent = Model + Harness.\" So the harness is **everything except the model**: the sandbox, permissions, tools, system prompt, instruction files, tests. Claude Code itself is a harness.\n\nThat means there are two sides:\n\nThis post is about the user side. Mitchell Hashimoto (co-founder of HashiCorp) popularized it in his February 2026 post \"My AI Adoption Journey\": every time the agent makes a mistake, add something so it can never make that mistake again. He calls it \"Engineer the Harness.\"\n\nBirgitta Böckeler at Thoughtworks splits what users can add into two kinds:\n\n`CLAUDE.md`, `AGENTS.md`, skills, coding rules\nThe interesting part: in the same piece, AI-driven exploratory testing is listed as an open problem. We have plenty of sensors that check what we already expect. We don't have many that use the app sloppily, like a real human, and notice what's weird. That's the gap this post is about.\n\nTests only check what their author thought of. And the author only ever uses the app **the right way**.\n\nI did exactly this with a ToDo app I built for myself. I used it every day and still missed a bug in dates combined with repeats for months. Why? I never used that combination.\n\nHow you use your own app is a tiny slice of how other people will. Bugs live in other people's habits.\n\nI wrote a tiny command-line ToDo app for this: add, list, complete, delete, tags, due dates, weekly repeats. Three tests. All passing.\n\nThen I ran four Claude Code subagents in parallel, each with its own data file, each playing a different kind of user.\n\nHere are just the bugs that silently corrupted data:\n\nNone of the three tests caught any of these. I did a double take.\n\nFun detail: on the first run, I'd misconfigured permissions and none of the AI users could run commands. The lead agent reported \"everything is unverified\" and stopped. It did not say \"no issues found.\" Small thing, but that honesty matters.\n\nTotal cost, lead agent included, all on Sonnet: just under $1.50.\n\n\"32, office worker, two kids\" doesn't help you find bugs. **Usage habits** do. I use four types:\n\nThe Time Traveler wins almost every time. Date math trips up humans and AI alike. In this run it found three of the bugs on its own.\n\nFinally, the lead reproduces the top reports itself, then sorts everything into five buckets: logic bugs, UI/usability, spec conflicts, no issues, unverified. You instantly know what to fix first.\n\nFinding and fixing bugs is just QA. You've trained the harness only when **you can't hit the same hole twice**.\n\nThree steps:\n\nIn my run, the agent wrote 7 failing tests before fixing 4 bugs. Afterwards, all 10 tests (3 old + 7 new) passed.\n\nIt also proposed these two lines for `CLAUDE.md`:\n\nNow the lesson lives in both a sensor (tests) and a guide (`CLAUDE.md`). Next time an agent touches that code, the tests stop the mistake, and the note stops it before it's even written.\n\nUser-side harness engineering turns out to be this kind of unglamorous stacking.\n\nOne thing you can do today: have AI play just the Time Traveler against your app. Make it pick the end of the month and the end of the year. Something will probably break.\n\nThanks for reading this far! If you're itching to send a few AI users into your own app right now, I packaged this whole loop as a Claude Code skill.\n\nWhen you actually run it on your own project, there's more to decide than this post covers: turning each persona into concrete actions, separating environments, the report format, how to write the regression tests. The skill handles all of that. I ran it on the app above and confirmed it finds and fixes the bugs end to end.\n\nWorks for web apps, iOS apps and CLI tools. If you can build this yourself from the steps above, you don't need to buy it.\n\n👉 Get the skill: [https://gennekiengineer.gumroad.com/l/persona-qa](https://gennekiengineer.gumroad.com/l/persona-qa)\n\nIf this was useful, a ❤️ and a follow would mean a lot. I write about practical ways to put AI to work in indie development.", "url": "https://wpnews.pro/news/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs", "canonical_source": "https://dev.to/genneki_engineer/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs-11oj", "published_at": "2026-11-26 10:07:49+00:00", "updated_at": "2026-11-26 10:14:10.294279+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models", "developer-tools"], "entities": ["Claude Code", "Anthropic", "LangChain", "Mitchell Hashimoto", "HashiCorp", "Thoughtworks", "Birgitta Böckeler"], "also_reported_by": [], "takeaway": "Running four persona-driven Claude Code subagents (including a \"Time Traveler\" probing month- and year-end dates) against a ToDo app found five data-corrupting bugs that three passing tests missed, for under $1.50 on Sonnet.", "recommendation": {"advice": "Run AI user personas, especially a Time Traveler hitting month- and year-end dates, against your app, then convert each confirmed bug into a failing test and a CLAUDE.md rule so it cannot recur.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs", "markdown": "https://wpnews.pro/news/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs.md", "text": "https://wpnews.pro/news/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs.txt", "jsonld": "https://wpnews.pro/news/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs.jsonld"}}