<?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: Justin Hong</title>
    <description>The latest articles on DEV Community by Justin Hong (@hongnoul).</description>
    <link>https://dev.to/hongnoul</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%2F3963030%2F108b12de-3e1b-405b-9011-46ad9fd413d2.png</url>
      <title>DEV Community: Justin Hong</title>
      <link>https://dev.to/hongnoul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hongnoul"/>
    <language>en</language>
    <item>
      <title>Stop letting your coding agent claim "pixel-perfect". Make it prove 97.49%.</title>
      <dc:creator>Justin Hong</dc:creator>
      <pubDate>Sat, 25 Jul 2026 09:31:44 +0000</pubDate>
      <link>https://dev.to/hongnoul/stop-letting-your-coding-agent-claim-pixel-perfect-make-it-prove-9749-f4f</link>
      <guid>https://dev.to/hongnoul/stop-letting-your-coding-agent-claim-pixel-perfect-make-it-prove-9749-f4f</guid>
      <description>&lt;p&gt;Your coding agent edits a component, runs the build, and reports the UI is now "pixel-perfect." It never opened a browser. It's guessing.&lt;/p&gt;

&lt;p&gt;I got tired of that, so I built &lt;a href="https://github.com/hongnoul/hwatu" rel="noopener noreferrer"&gt;hwatu&lt;/a&gt;, a browser designed specifically for the agent verification loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The loop
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;hwatu &lt;span class="nt"&gt;--headless&lt;/span&gt; http://localhost:3000   &lt;span class="c"&gt;# open, no focus steal&lt;/span&gt;
hwatu wait-load                          &lt;span class="c"&gt;# block until loaded&lt;/span&gt;
hwatu &lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s1"&gt;'document.title'&lt;/span&gt;              &lt;span class="c"&gt;# DOM-level checks&lt;/span&gt;
hwatu shot /tmp/check.png                &lt;span class="c"&gt;# screenshot&lt;/span&gt;
hwatu diff &lt;span class="nt"&gt;--id&lt;/span&gt; 1 &lt;span class="nt"&gt;--baseline&lt;/span&gt; before.png  &lt;span class="c"&gt;# pixel diff: 97.49% match + heatmap&lt;/span&gt;
hwatu close 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The whole loop, screenshot included, runs in about 87 ms on my laptop. Cheap enough that the agent can verify after every edit instead of claiming success blind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design choices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Headless by default in agent environments.&lt;/strong&gt; Windows never steal focus while you keep typing. When you want to look, the agent hands you the same live window as a normal browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Chromium.&lt;/strong&gt; One static Rust binary plus your distro's &lt;code&gt;webkitgtk-6.0&lt;/code&gt;. No 170 MB download per project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three protocols.&lt;/strong&gt; MCP (&lt;code&gt;hwatu mcp&lt;/code&gt;), plain CLI, and a 1-line JSON socket. Works with Claude Code, Cursor, Jcode, or any harness.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real numbers.&lt;/strong&gt; The diff command reports an actual match percentage with a heatmap, so "pixel-perfect" becomes a measurable claim.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Measured, not estimated
&lt;/h2&gt;

&lt;p&gt;Every benchmark in the repo was measured on real runs with scripts you can rerun: window spawn medians of 13-16 ms, ~87 ms full verification loop, memory measured via PSS across all WebKit child processes. Methodology in &lt;a href="https://github.com/hongnoul/hwatu/blob/main/docs/benchmarks.md" rel="noopener noreferrer"&gt;docs/benchmarks.md&lt;/a&gt;.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/hongnoul/hwatu/main/scripts/install.sh | bash
hwatu setup   &lt;span class="c"&gt;# detects Claude Code, Cursor, Jcode, or generic MCP&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MIT licensed. Linux (WebKitGTK). Feedback and issues welcome: &lt;a href="https://github.com/hongnoul/hwatu" rel="noopener noreferrer"&gt;https://github.com/hongnoul/hwatu&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>testing</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
