<?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: dhq_boiler</title>
    <description>The latest articles on DEV Community by dhq_boiler (@dhq-boiler).</description>
    <link>https://dev.to/dhq-boiler</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%2F3966155%2F7796a8fe-dc03-4e3f-b076-ed5c777552c8.png</url>
      <title>DEV Community: dhq_boiler</title>
      <link>https://dev.to/dhq-boiler</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhq-boiler"/>
    <language>en</language>
    <item>
      <title>I built an AI-collaborative UML editor that puts 💩 on smelly code</title>
      <dc:creator>dhq_boiler</dc:creator>
      <pubDate>Tue, 18 Aug 2026 11:09:32 +0000</pubDate>
      <link>https://dev.to/dhq-boiler/i-built-an-ai-collaborative-uml-editor-that-puts-on-smelly-code-2eb2</link>
      <guid>https://dev.to/dhq-boiler/i-built-an-ai-collaborative-uml-editor-that-puts-on-smelly-code-2eb2</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — I really just wanted to put 💩 icons on UML class diagrams. Along the way it turned into &lt;strong&gt;Kata&lt;/strong&gt;, a two-way class diagram editor for C# / C++/CLI solutions that (1) detects 22 out of Fowler's 24 code smells and pins a 💩 badge to the exact type or member, (2) lets you fire Fowler-catalog refactorings straight from the diagram and writes them back into the source, and (3) forwards "I don't know how to fix this" to Claude Code / Codex CLI and previews the returned unified diff before applying.&lt;/p&gt;

&lt;p&gt;Site: &lt;a href="https://kata.dhq-boiler.dev/" rel="noopener noreferrer"&gt;https://kata.dhq-boiler.dev/&lt;/a&gt; · Repo: &lt;a href="https://github.com/dhq-boiler/Kata" rel="noopener noreferrer"&gt;https://github.com/dhq-boiler/Kata&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I know the &lt;em&gt;Refactoring&lt;/em&gt; book. I've read &lt;em&gt;Refactoring&lt;/em&gt; the way most of us have — I can name Extract Method, I can spot a big switch statement, and I nod when someone says "feature envy". But knowing the catalog and &lt;em&gt;actually running through it on a real codebase&lt;/em&gt; are two different sports.&lt;/p&gt;

&lt;p&gt;The gap for me was step zero: &lt;strong&gt;finding code smells at all&lt;/strong&gt;. Once you know a method reeks, half the fight is over. The catalog tells you what to do next. But there's no "smelly bit" indicator on a real project — you just stare at 200,000 lines and hope a bad smell walks up and introduces itself.&lt;/p&gt;

&lt;p&gt;So the pitch was really that literal:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If I could see a 💩 icon sitting on top of the classes that need attention, the rest of the workflow would fall into place.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's it. The editor grew around that one need.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core workflow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Human&lt;/strong&gt; — opens the class diagram, scans for 💩 badges (the tool does this part).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI&lt;/strong&gt; — applies the refactoring recipe (Claude Code or Codex, whichever you already pay for).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human&lt;/strong&gt; — reviews the diff and clicks Apply.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The important bit is that &lt;strong&gt;humans stay in the review seat&lt;/strong&gt;. AI never writes to disk without you seeing the exact diff first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the tool actually does
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;code&gt;.sln&lt;/code&gt; / &lt;code&gt;.slnx&lt;/code&gt; → live class diagram
&lt;/h3&gt;

&lt;p&gt;Open a solution, get a real class diagram back. Symbol resolution is done through Roslyn for C# and through a hand-written semantic layer (&lt;code&gt;Kata.Cpp&lt;/code&gt;) for C++/CLI, so mixed-language WPF-plus-native-library projects render correctly.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Ctrl+Click navigation (cross-language)
&lt;/h3&gt;

&lt;p&gt;Click any type or member to jump to its definition. C# ↔ C++/CLI navigation works both ways — chase a P/Invoke or a &lt;code&gt;ref class&lt;/code&gt; from either side.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Fowler refactorings, driven from the diagram
&lt;/h3&gt;

&lt;p&gt;Right-click a class → pick a refactoring → Kata rewrites the source. The current set covers Extract Method / Extract Interface / Extract Class, the whole Rename family (type / member / field / parameter), Move Method / Move Field, Extract Hierarchy, and more.&lt;/p&gt;

&lt;p&gt;The same operations are exposed as &lt;strong&gt;MCP tools&lt;/strong&gt;, so an external agent (Claude Code, Codex, or anything speaking MCP) can drive Kata programmatically the same way a human does from the UI.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Code-smell analyzer + 💩 badges
&lt;/h3&gt;

&lt;p&gt;22 of Fowler's 24 smells are implemented as deterministic detectors that run over the semantic model. Results show up in two places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;top-right of a &lt;strong&gt;type node&lt;/strong&gt; for type-level smells (God Class, Data Class, Feature Envy…)&lt;/li&gt;
&lt;li&gt;end of a &lt;strong&gt;member row&lt;/strong&gt; for member-level smells (Long Method, Long Parameter List, Divergent Change…)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Tiered badges — the more severe ones get a rainbow halo — so a screen full of nodes reads at a glance.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. AI-generated diffs, with preview
&lt;/h3&gt;

&lt;p&gt;Two AI paths, both piggy-backed on your existing subscription:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;claude -p "&amp;lt;prompt&amp;gt;"&lt;/code&gt; — Claude Code CLI (headless mode)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;codex exec "&amp;lt;prompt&amp;gt;"&lt;/code&gt; — Codex CLI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Kata builds the prompt from &lt;em&gt;(the smell, the enclosing type / member source, the catalog recipe for that smell, and a strict "return a unified diff" instruction)&lt;/em&gt;, runs it, parses the returned diff, and drops you into a preview dialog. Nothing hits disk until you approve.&lt;/p&gt;

&lt;p&gt;Two design choices that matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No API key management.&lt;/strong&gt; You're not billed by Kata — it uses whatever Claude / ChatGPT plan you already have.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic first, AI second.&lt;/strong&gt; For a growing set of categories (currently 20 rewriters across three tiers) Kata has an in-tool Roslyn rewriter that produces the exact same diff without hitting the network. For the harder cases (data-flow, cross-file design changes) it falls back to the AI path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's also a &lt;strong&gt;behavior-change caution pane&lt;/strong&gt; in the diff preview when a fix is technically correct but semantically shifts something — e.g. &lt;code&gt;OrderBy(...).FirstOrDefault()&lt;/code&gt; → &lt;code&gt;MinBy(...)&lt;/code&gt; throws on empty sequences where the original returned &lt;code&gt;default(T)&lt;/code&gt;. That's the kind of "the diff is right, please just be aware" moment that a plain patch view swallows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture, briefly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Source is SSOT.&lt;/strong&gt; Kata is a mirror of the codebase. Only pure UI state (node positions, zoom, filter selections) lives in a side file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Intent-driven.&lt;/strong&gt; Every user action becomes a strongly-typed &lt;code&gt;Intent&lt;/code&gt; (&lt;code&gt;RenameIntent&lt;/code&gt;, &lt;code&gt;ExtractMethodIntent&lt;/code&gt;, &lt;code&gt;PerfFixIntent&lt;/code&gt;, …). Language-specific adapters translate intents into source edits. Both the UI and the MCP surface fire the same intents through the same handlers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP externalized.&lt;/strong&gt; &lt;code&gt;Kata.Mcp&lt;/code&gt; runs over Streamable HTTP + stateless, so a Kata.App user and one or more AI agents can all talk to the same live model without sessions fighting each other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language-neutral core.&lt;/strong&gt; &lt;code&gt;Kata.Core&lt;/code&gt; has no dependency on any language adapter. Adding a new language means implementing &lt;code&gt;ILanguageAdapter&lt;/code&gt; plus a smell detector set, not editing the core. C# is the mature adapter today; Java is next up (JDT-Core-based load benchmarked at 4.6 s for a large real project).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Perf note: rendering a live class diagram of a big solution used to hitch hard because Nodify wants to materialize every visual up front. &lt;code&gt;VirtualizingNodifyCanvas&lt;/code&gt; (a "realize-all, measure-only-viewport" trick) took that hitch from ~845 ms to invisible without breaking Nodify's null-unsafe container assumptions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it out
&lt;/h2&gt;

&lt;p&gt;Requirements: .NET 10 SDK on Windows (WPF).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dhq-boiler/Kata
&lt;span class="nb"&gt;cd &lt;/span&gt;Kata
dotnet build Kata.slnx
dotnet run &lt;span class="nt"&gt;--project&lt;/span&gt; src&lt;span class="se"&gt;\K&lt;/span&gt;ata.App&lt;span class="se"&gt;\K&lt;/span&gt;ata.App.csproj
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the app launches, use &lt;strong&gt;File → Open Solution&lt;/strong&gt; to point at any &lt;code&gt;.sln&lt;/code&gt; / &lt;code&gt;.slnx&lt;/code&gt;. The rendered graph is your live model — everything you click on will call back into the source.&lt;/p&gt;

&lt;p&gt;If you prefer an installer, the site links to signed Setup.exe / portable zip builds with auto-updates via Velopack.&lt;/p&gt;

&lt;h2&gt;
  
  
  Licensing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Community build&lt;/strong&gt; — PolyForm Noncommercial 1.0.0. Free for personal use, learning, research, hobby projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commercial use&lt;/strong&gt; — needs a Pro license (Lemon Squeezy, one-time buyout or per-seat).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI cost&lt;/strong&gt; — you own the Claude / Codex subscription. Kata never bills you for tokens. The monthly quota you'll see in the Community build isn't a cost gate, it's a "please try Pro for heavy workloads" gate.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Roadmap
&lt;/h2&gt;

&lt;p&gt;Near-term:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Team Collab&lt;/strong&gt; — team-lead workflows: author a refactor instruction packet, hand it to the team with impact focus visualization and diff previews, get consistent execution across contributors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More language adapters&lt;/strong&gt; — Java is next (in progress), then Kotlin and TypeScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beyond class diagrams&lt;/strong&gt; — sequence diagrams and state diagrams, mostly to reuse the same intent-driven refactoring plumbing on a wider slice of the codebase view.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Feedback wanted
&lt;/h2&gt;

&lt;p&gt;Bug reports, especially reproduction samples for &lt;strong&gt;C++/CLI mixed solutions&lt;/strong&gt;, are welcome — that's the corner where semantic resolution has the most sharp edges.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://kata.dhq-boiler.dev/" rel="noopener noreferrer"&gt;https://kata.dhq-boiler.dev/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Community repo: &lt;a href="https://github.com/dhq-boiler/Kata" rel="noopener noreferrer"&gt;https://github.com/dhq-boiler/Kata&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pro: &lt;a href="https://kata.dhq-boiler.dev/pro" rel="noopener noreferrer"&gt;https://kata.dhq-boiler.dev/pro&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it and it puts 💩 on the exact class you were already avoiding, I want to hear about that too.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>ai</category>
      <category>refactoring</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I Gave Claude Access to Windows Calculator via MCP — Then Watched It Catch Its Own Hallucination</title>
      <dc:creator>dhq_boiler</dc:creator>
      <pubDate>Wed, 03 Jun 2026 09:19:48 +0000</pubDate>
      <link>https://dev.to/dhq-boiler/i-gave-claude-access-to-windows-calculator-via-mcp-then-watched-it-catch-its-own-hallucination-3occ</link>
      <guid>https://dev.to/dhq-boiler/i-gave-claude-access-to-windows-calculator-via-mcp-then-watched-it-catch-its-own-hallucination-3occ</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;TL;DR — I built an MCP server that lets Claude drive Windows desktop apps (UI Automation + screen capture + OCR + Visual Studio debugger). In a black-box test of Windows Calculator, the agent &lt;strong&gt;falsely flagged a "display bug"&lt;/strong&gt; based on the AccessibleName string. When I told it to look again, it captured the real screen, compared its earlier claim against the pixels, and &lt;strong&gt;retracted its own finding&lt;/strong&gt;. The retraction was the moment I knew this was worth shipping.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The moment
&lt;/h2&gt;

&lt;p&gt;The agent was 30 minutes into autonomously poking at Windows Calculator. It had verified divide-by-zero, the old &lt;code&gt;√4 − 2&lt;/code&gt; precision bug, &lt;code&gt;0^0&lt;/code&gt;, overflow, error recovery. All green.&lt;/p&gt;

&lt;p&gt;Then it stopped. New message:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Sensei, the history shows &lt;code&gt;√(4) マイナス ( 2= 0&lt;/code&gt;. There's an &lt;strong&gt;unclosed opening paren &lt;code&gt;(&lt;/code&gt;&lt;/strong&gt; right after the minus sign. The result &lt;code&gt;0&lt;/code&gt; is correct, but the expression display looks wrong. Possible display bug."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I looked at my actual calculator window. The history line read &lt;code&gt;√(4) - 2 = 0&lt;/code&gt;. No stray paren. Nothing wrong.&lt;/p&gt;

&lt;p&gt;So I typed back two words:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Look again."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What happened next is the reason I'm writing this post.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is this thing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://jidodebugger.dhq-boiler.dev/" rel="noopener noreferrer"&gt;JidoDebugger&lt;/a&gt; is an MCP server I've been building. It gives AI agents like Claude Code, Cursor, Codex, and Copilot the ability to &lt;strong&gt;drive Windows desktop applications&lt;/strong&gt; — not just read about them, but actually click buttons, type into fields, capture the screen, run OCR, attach the Visual Studio debugger, set breakpoints, evaluate expressions, and write the results back to disk as xUnit/NUnit/MSTest skeletons.&lt;/p&gt;

&lt;p&gt;Two modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Black-box&lt;/strong&gt; — you give the agent a window title. It attaches via UIA, surveys the element tree, and starts poking. No source code required. Useful for testing third-party apps, regression-checking your shipped product, or — as in this post — testing Windows Calculator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;White-box&lt;/strong&gt; — you point it at your solution. It cross-references UI elements with source code, sets breakpoints at the offending callback, steps through, dumps locals, and writes a &lt;code&gt;repro.zip&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 45-ish MCP tools roughly cluster as: UIA driving, screen capture &amp;amp; OCR, finding/recording, crash watching, accessibility audit, Visual Studio debugger control.&lt;/p&gt;

&lt;p&gt;This post is about the black-box mode and one specific session.&lt;/p&gt;




&lt;h2&gt;
  
  
  The black-box session, condensed
&lt;/h2&gt;

&lt;p&gt;I'll show the actual tool calls. They're verbatim from the session log — the agent decided what to call, I just watched.&lt;/p&gt;

&lt;h3&gt;
  
  
  Attach
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;start calc.exe
uia_attach_title { windowTitle: "電卓" }
  → sessionId u1
uia_survey { sessionId: "u1", maxResults: 200 }
  → 64 elements. num0Button..num9Button / squareRootButton /
    powerButton / powerOf10Button / factorialButton /
    CalculatorResults / CalculatorExpression
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two automation IDs matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;CalculatorResults&lt;/code&gt; — the main display&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CalculatorExpression&lt;/code&gt; — the expression line above it&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: this session was run against Japanese Windows, so the UIA &lt;code&gt;Name&lt;/code&gt; strings below contain Japanese fragments like &lt;code&gt;表示は ... です&lt;/code&gt; ("the display is ...") and &lt;code&gt;マイナス&lt;/code&gt; ("minus"). The hallucination-vs-pixels divergence is locale-independent — it just happens that the punchline string in this run is Japanese.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Test 1: Divide by zero
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_press_key { sessionId: "u1", keyName: "Escape" }
uia_type_text { sessionId: "u1", text: "1/0" }
uia_press_key { sessionId: "u1", keyName: "Enter" }
uia_find_elements { sessionId: "u1", automationId: "CalculatorResults" }
  → Name: "Cannot divide by zero"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Handled.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test 2: The old &lt;code&gt;√4 − 2&lt;/code&gt; precision bug
&lt;/h3&gt;

&lt;p&gt;Years ago, the calculator's floating-point engine would return something like &lt;code&gt;-1.068281969439142e-19&lt;/code&gt; instead of &lt;code&gt;0&lt;/code&gt; for &lt;code&gt;√4 − 2&lt;/code&gt;. Modern Calculator uses an arbitrary-precision engine. Let's confirm.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_press_key { sessionId: "u1", keyName: "Escape" }
uia_type_text { sessionId: "u1", text: "4" }
uia_invoke    { sessionId: "u1", automationId: "squareRootButton" }
uia_type_text { sessionId: "u1", text: "-2" }
uia_press_key { sessionId: "u1", keyName: "Enter" }
uia_find_elements { sessionId: "u1", automationId: "CalculatorResults" }
  → Name: "Display is 0"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Fixed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test 3: &lt;code&gt;0^0&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_type_text { sessionId: "u1", text: "0" }
uia_invoke    { sessionId: "u1", automationId: "powerButton" }
uia_type_text { sessionId: "u1", text: "0" }
uia_press_key { sessionId: "u1", keyName: "Enter" }
  → "Display is 1"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Conventional &lt;code&gt;0^0 = 1&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tests 4–5: Overflow + error recovery
&lt;/h3&gt;

&lt;p&gt;Both behaved correctly. Skipping the listings for brevity (&lt;code&gt;10^100000&lt;/code&gt; → "Invalid input", and pressing &lt;code&gt;+5=&lt;/code&gt; from the error state cleanly resets to &lt;code&gt;5&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;So far, the agent had run five test cases against a black box, autonomously chosen the inputs based on its knowledge of historical calculator bugs, and reported no defects. Fine. This is the boring part.&lt;/p&gt;

&lt;p&gt;Then it looked at the history pane.&lt;/p&gt;




&lt;h2&gt;
  
  
  The hallucination
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_find_elements { sessionId: "u1", controlType: "ListItem", maxResults: 30 }
  → "√(4) マイナス ( 2= 0"

uia_find_elements { sessionId: "u1", automationId: "CalculatorExpression" }
  → Name: "式は √(4) マイナス ( 2= です"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent's reasoning, paraphrased from its own message:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The expression's &lt;code&gt;Name&lt;/code&gt; property contains the substring &lt;code&gt;マイナス ( 2&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;That's "minus, open-paren, two" — an unclosed paren after a minus sign.&lt;/li&gt;
&lt;li&gt;The calculator's expression display is therefore malformed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the kind of finding that &lt;em&gt;sounds&lt;/em&gt; right. The string literally contains &lt;code&gt;(&lt;/code&gt; in a place where the expression &lt;code&gt;√(4) - 2 =&lt;/code&gt; has no &lt;code&gt;(&lt;/code&gt;. If you trust the tool output, you write a bug report.&lt;/p&gt;

&lt;p&gt;I didn't trust the tool output. I'd been looking at my actual calculator window the whole time. The history said &lt;code&gt;√(4) - 2 = 0&lt;/code&gt; with no stray paren. Whatever the agent was looking at, it wasn't the same thing my eyes were seeing.&lt;/p&gt;

&lt;p&gt;So I said: "Look again."&lt;/p&gt;




&lt;h2&gt;
  
  
  The self-correction
&lt;/h2&gt;

&lt;p&gt;The agent's response, paraphrased:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"You're right — I should not have reported based on the UIA Name alone. UIA Name strings are normalized for screen readers and can diverge from the rendered pixels, especially when symbols are involved. Let me verify against the real screen."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What it did:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_press_key { sessionId: "u1", keyName: "Escape" }
uia_type_text { sessionId: "u1", text: "4" }
uia_invoke    { sessionId: "u1", automationId: "squareRootButton" }
uia_invoke    { sessionId: "u1", automationId: "minusButton" }

# Attach a *second* session, this time for Windows Graphics Capture
attach_to_title { windowTitle: "電卓" }
  → sessionId s1  (kind: gui)

capture { sessionId: "s1", maxWidth: 800, format: "png" }
ocr     { sessionId: "s1", language: "ja-JP" }
  → OCR reads "(4" cleanly, but symbols are ambiguous at this resolution
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OCR wasn't decisive. So it cranked the resolution, saved the PNG, and &lt;strong&gt;read the image file with its own multimodal vision&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uia_type_text { sessionId: "u1", text: "2" }
uia_press_key { sessionId: "u1", keyName: "Enter" }

capture { sessionId: "s1", format: "png" }   # full-res
# (Save base64 to calc_expr.png on disk)
Read { file_path: "calc_expr.png" }
  → Both the main expression line and the history show
    "√(4) - 2 ="  with no extra paren anywhere.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the actual capture (re-run today to verify the divergence still reproduces on Windows 10.0.26100.8521):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1vij2qij9pe3do92bm5h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1vij2qij9pe3do92bm5h.png" alt="Windows Calculator showing √(4) - 2 = 0 with a clean expression line and history pane — no stray paren anywhere" width="711" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The expression line at the top of the result area reads &lt;code&gt;√(4) - 2 =&lt;/code&gt;. The history pane on the right reads &lt;code&gt;√(4) - 2 = 0&lt;/code&gt;. There is no orphan &lt;code&gt;(&lt;/code&gt; after the minus. The UIA &lt;code&gt;Name&lt;/code&gt; string was lying — or, more charitably, the UIA &lt;code&gt;Name&lt;/code&gt; was answering a different question (how should a screen reader pronounce this?) than the one the agent thought it was answering (what is on screen?).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Then the agent sent this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Sensei, this was entirely my mistake. The real screen shows &lt;code&gt;√(4) - 2 =&lt;/code&gt;, no stray paren anywhere. The &lt;code&gt;(&lt;/code&gt; in &lt;code&gt;CalculatorExpression.Name&lt;/code&gt; is the screen-reader-normalized token stream, not the visual display. I should not have reported the UIA Name as if it were a rendering. Retracting the finding."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I sat with that for a minute. The agent had:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generated a false-positive based on incomplete information.&lt;/li&gt;
&lt;li&gt;Received a one-line nudge that didn't even tell it &lt;em&gt;what&lt;/em&gt; was wrong.&lt;/li&gt;
&lt;li&gt;Designed and executed a second verification path using a different modality (pixel capture instead of accessibility metadata).&lt;/li&gt;
&lt;li&gt;Confirmed the pixels disagreed with its earlier claim.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Retracted its own finding without me having to argue it down.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the loop I've been trying to make possible. It happened by itself.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why this matters (and why I built it)
&lt;/h2&gt;

&lt;p&gt;There's a category of bug that QA people know intimately: &lt;strong&gt;the UI says one thing, the accessibility tree says another, and the test only checks one of them.&lt;/strong&gt; Visual regressions hide behind passing UIA assertions all the time. Conversely, UIA tests written against AccessibleName can fire false positives when the rendering is fine but the underlying string changed.&lt;/p&gt;

&lt;p&gt;A human tester knows to &lt;em&gt;look at the screen&lt;/em&gt; when something feels off. An AI agent reading only one channel (UIA) doesn't, unless you give it the other channel and a reason to use it.&lt;/p&gt;

&lt;p&gt;JidoDebugger's bet: &lt;strong&gt;give the agent both channels, and the discrepancies become discoverable.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;uia_find_elements&lt;/code&gt; / &lt;code&gt;uia_invoke&lt;/code&gt; / &lt;code&gt;uia_type_text&lt;/code&gt; — the accessibility-tree side.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;capture&lt;/code&gt; (Windows Graphics Capture) + &lt;code&gt;ocr&lt;/code&gt; + having the agent &lt;code&gt;Read&lt;/code&gt; the resulting PNG with its own vision — the pixel side.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The interesting failures live in the gap between them. Most existing E2E tools only cover one side.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fijof4k240ul7jh3q505w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fijof4k240ul7jh3q505w.png" alt="JidoDebugger Monitor — tool calls streaming live from the agent" width="799" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;JidoDebugger Monitor — every MCP tool call the agent makes streams here in real time. You can watch it &lt;code&gt;capture&lt;/code&gt;, &lt;code&gt;uia_invoke&lt;/code&gt;, &lt;code&gt;record_finding&lt;/code&gt;, all without leaving the window.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Same logic extends to the debugger:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;record_finding&lt;/code&gt; writes findings to a normalized JSON store.&lt;/li&gt;
&lt;li&gt;If you're in white-box mode, the agent can set a breakpoint at the suspect callback, hit it, inspect locals, and attach the call stack to the finding.&lt;/li&gt;
&lt;li&gt;At the end, it emits an xUnit/NUnit/MSTest skeleton you can drop into CI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6wicji5pwjzuh4nukrcm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6wicji5pwjzuh4nukrcm.png" alt="JidoDebugger BugViewer — findings written by the agent, ready to triage" width="800" height="501"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;BugViewer surfaces every &lt;code&gt;record_finding&lt;/code&gt; call. The agent writes the finding text, severity, repro steps, and (in white-box mode) the call stack — you triage from this single pane instead of reading scrollback.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The dogfood story: my own WPF PDF editor got rejected by the Microsoft Store for a rendering bug ("place a mark at the top, it appears at the bottom"). I gave JidoDebugger to Claude and said "go find it." One session later it had a &lt;code&gt;repro.zip&lt;/code&gt;, a stack trace pointing at a missing &lt;code&gt;ScreenToPdf&lt;/code&gt; inverse transform on 180°-rotated pages, and a finding record. I haven't manually reproduced a UI bug since.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://jidodebugger.dhq-boiler.dev/" rel="noopener noreferrer"&gt;jidodebugger.dhq-boiler.dev&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pre-launch beta, free for the first 500 users&lt;/strong&gt;, no time limit.&lt;/li&gt;
&lt;li&gt;Email signup → license file → installer → one CLI command to register with Claude Code / Cursor / Codex / Copilot / Claude Desktop. About 10 minutes end to end.&lt;/li&gt;
&lt;li&gt;Bug reports go straight back to me via the &lt;code&gt;submit_feedback&lt;/code&gt; MCP tool — you literally just tell your AI "file this as feedback" and it routes it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have a WPF / WinForms / WinUI app and you've been writing E2E tests by hand, this is for you. If you've been wondering what MCP can actually &lt;em&gt;do&lt;/em&gt; beyond read-only queries, this is also for you.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I learned writing this
&lt;/h2&gt;

&lt;p&gt;Two things, separate from the product.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The retraction is the feature.&lt;/strong&gt; I almost wrote this post about the cool tool calls and the UIA stack. The thing readers actually care about is the loop: AI claims → human nudges → AI verifies via a second channel → AI retracts. That's the trust-building move, and it's the only reason I'd hand off testing to an agent at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AccessibleName ≠ pixels.&lt;/strong&gt; This is well known to accessibility engineers and almost nobody else. If you're building any kind of AI-driven UI tooling, treat the accessibility tree as &lt;em&gt;one&lt;/em&gt; source of truth, not &lt;em&gt;the&lt;/em&gt; source. Always have a way to fall back to pixels.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Comments / corrections / war stories welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>showdev</category>
      <category>csharp</category>
    </item>
  </channel>
</rss>
