<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: genneki_engineer</title>
    <description>The latest articles on DEV Community by genneki_engineer (@genneki_engineer).</description>
    <link>https://dev.to/genneki_engineer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4266315%2F07df715a-b874-41bd-b122-dc45426a51f5.png</url>
      <title>DEV Community: genneki_engineer</title>
      <link>https://dev.to/genneki_engineer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/genneki_engineer"/>
    <language>en</language>
    <item>
      <title>All my tests passed. Then I sent 4 AI "users" into my app and they found 5 bugs</title>
      <dc:creator>genneki_engineer</dc:creator>
      <pubDate>Thu, 26 Nov 2026 10:07:49 +0000</pubDate>
      <link>https://dev.to/genneki_engineer/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs-11oj</link>
      <guid>https://dev.to/genneki_engineer/all-my-tests-passed-then-i-sent-4-ai-users-into-my-app-and-they-found-5-bugs-11oj</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Harness" means everything around an AI model that isn't the model: sandbox, tools, instructions, tests. On the user side, harness engineering means making sure your agent never makes the same mistake twice.&lt;/li&gt;
&lt;li&gt;The easiest place to start: have AI play users with different habits and let them poke at your app. All my tests passed. They still found 5 bugs.&lt;/li&gt;
&lt;li&gt;Before fixing a bug, write a test that fails because of it. That's the step that actually "trains the harness."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  "Harness engineering" didn't click for me at first
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;It clicked when I built one small loop myself:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Have AI pretend to be users, let them use the app, and plug every hole they find so it can't come back.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That'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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Harness engineering in one minute
&lt;/h2&gt;

&lt;p&gt;A 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.&lt;/p&gt;

&lt;p&gt;LangChain sums it up as "Agent = Model + Harness." So the harness is &lt;strong&gt;everything except the model&lt;/strong&gt;: the sandbox, permissions, tools, system prompt, instruction files, tests. Claude Code itself is a harness.&lt;/p&gt;

&lt;p&gt;That means there are two sides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Builders&lt;/strong&gt; design the agent itself: sandboxes, tools, context management&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Users&lt;/strong&gt; take an existing agent and tune it for their own project with instructions and tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This 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."&lt;/p&gt;

&lt;p&gt;Birgitta Böckeler at Thoughtworks splits what users can add into two kinds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Guides&lt;/strong&gt; steer the agent before it acts: &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, skills, coding rules&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sensors&lt;/strong&gt; check the result after it acts: tests, linters, reviews&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Passing tests don't mean no bugs
&lt;/h2&gt;

&lt;p&gt;Tests only check what their author thought of. And the author only ever uses the app &lt;strong&gt;the right way&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I 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.&lt;/p&gt;

&lt;p&gt;How you use your own app is a tiny slice of how other people will. Bugs live in other people's habits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment: 4 AI users vs. an app with all-green tests
&lt;/h2&gt;

&lt;p&gt;I wrote a tiny command-line ToDo app for this: add, list, complete, delete, tags, due dates, weekly repeats. Three tests. All passing.&lt;/p&gt;

&lt;p&gt;Then I ran four Claude Code subagents in parallel, each with its own data file, each playing a different kind of user.&lt;/p&gt;

&lt;p&gt;Here are just the bugs that silently corrupted data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Completing a weekly task near the end of the month crashed the app. It added 7 to the day number, so anything from the 24th on became an impossible date&lt;/li&gt;
&lt;li&gt;"Complete tasks 1 and 2" completed 1 and &lt;strong&gt;3&lt;/strong&gt;. The numbers shifted after each completion&lt;/li&gt;
&lt;li&gt;Completing by the number shown in a tag-filtered list completed a different task from the full list&lt;/li&gt;
&lt;li&gt;The "today" command showed overdue tasks instead of today's&lt;/li&gt;
&lt;li&gt;Deleting task 0 didn't error. It deleted the last task&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of the three tests caught any of these. I did a double take.&lt;/p&gt;

&lt;p&gt;Fun 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.&lt;/p&gt;

&lt;p&gt;Total cost, lead agent included, all on Sonnet: just under $1.50.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build personas from habits, not demographics
&lt;/h2&gt;

&lt;p&gt;"32, office worker, two kids" doesn't help you find bugs. &lt;strong&gt;Usage habits&lt;/strong&gt; do. I use four types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Minimalist:&lt;/strong&gt; types as little as possible. Empty fields, one character, quitting midway, mashing the same button&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Organizer:&lt;/strong&gt; tags, renames, reorders, deletes. Tries to undo deletions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Time Traveler:&lt;/strong&gt; dates, deadlines, repeats. Always picks end of month, end of year, leap day, midnight&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Stress Tester:&lt;/strong&gt; tons of data, bulk actions, absurdly long text, emoji&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four rules for running it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The lead doesn't touch the app.&lt;/strong&gt; It only gives instructions and collects reports. Once it starts testing itself, the reporting gets sloppy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate environments.&lt;/strong&gt; If two agents share the same data or device, you can't tell who broke what. If you can't separate them, run them one at a time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three-line reports.&lt;/strong&gt; "Steps / Expected (with source) / Actual." No "something feels off" without a reason&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't guess the spec.&lt;/strong&gt; "Deleting a tag also deleted its tasks" might be a bug or a feature. The AI can't know. Flag it as a spec conflict for a human&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Finally, 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plugging the holes is the actual "training"
&lt;/h2&gt;

&lt;p&gt;Finding and fixing bugs is just QA. You've trained the harness only when &lt;strong&gt;you can't hit the same hole twice&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Before fixing, write a test that &lt;strong&gt;fails&lt;/strong&gt; because of the bug. Note which persona found it and how&lt;/li&gt;
&lt;li&gt;Fix it, and make sure the new test and all old tests pass&lt;/li&gt;
&lt;li&gt;If the same kind of mistake could come back, add one line to &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In my run, the agent wrote 7 failing tests before fixing 4 bugs. Afterwards, all 10 tests (3 old + 7 new) passed.&lt;/p&gt;

&lt;p&gt;It also proposed these two lines for &lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For date math, never touch the day number; always add a timedelta&lt;/li&gt;
&lt;li&gt;For commands that take item numbers, resolve all numbers to items before changing anything&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now the lesson lives in both a sensor (tests) and a guide (&lt;code&gt;CLAUDE.md&lt;/code&gt;). Next time an agent touches that code, the tests stop the mistake, and the note stops it before it's even written.&lt;/p&gt;

&lt;p&gt;User-side harness engineering turns out to be this kind of unglamorous stacking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The harness is everything except the model. On the user side, you train it so the agent never repeats a mistake&lt;/li&gt;
&lt;li&gt;We have plenty of sensors for what we expect. Few that use the app like a careless human&lt;/li&gt;
&lt;li&gt;Four AI users with different habits can find bugs in an app whose tests are all green&lt;/li&gt;
&lt;li&gt;Write a failing test before fixing, and add a line to &lt;code&gt;CLAUDE.md&lt;/code&gt; if needed. That's what "training the harness" means&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Want to run all four with one command?
&lt;/h2&gt;

&lt;p&gt;Thanks 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.&lt;/p&gt;

&lt;p&gt;When 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.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Asks you four questions first (what the app is, how to run it, where the spec is, how to run tests), filling in what it can from your README and code&lt;/li&gt;
&lt;li&gt;Turns the four personas into concrete actions for your app's features&lt;/li&gt;
&lt;li&gt;Runs one subagent per persona and keeps their environments separate, or runs them one by one&lt;/li&gt;
&lt;li&gt;Collects three-line reports, verifies the top ones, and sorts them into five buckets&lt;/li&gt;
&lt;li&gt;For each bug you choose to fix, writes a failing test first, fixes it, and proposes a &lt;code&gt;CLAUDE.md&lt;/code&gt; note&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Works 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.&lt;/p&gt;

&lt;p&gt;👉 Get the skill: &lt;a href="https://gennekiengineer.gumroad.com/l/persona-qa" rel="noopener noreferrer"&gt;https://gennekiengineer.gumroad.com/l/persona-qa&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If this was useful, a ❤️ and a follow would mean a lot. I write about practical ways to put AI to work in indie development.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>testing</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
