<?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: Haul</title>
    <description>The latest articles on DEV Community by Haul (@haul).</description>
    <link>https://dev.to/haul</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%2F4224583%2Fdad65f8c-f4e3-4f26-9e97-b5c82cb1055e.jpg</url>
      <title>DEV Community: Haul</title>
      <link>https://dev.to/haul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haul"/>
    <language>en</language>
    <item>
      <title>I moved two Electron apps to Tauri. The installer went from 198MB to 5.6MB.</title>
      <dc:creator>Haul</dc:creator>
      <pubDate>Wed, 11 Nov 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/haul/i-moved-two-electron-apps-to-tauri-the-installer-went-from-198mb-to-56mb-36ae</link>
      <guid>https://dev.to/haul/i-moved-two-electron-apps-to-tauri-the-installer-went-from-198mb-to-56mb-36ae</guid>
      <description>&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkk3zvxl08zjmvbvub910.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkk3zvxl08zjmvbvub910.png" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GitHub: &lt;a href="https://github.com/ESeungJun/smash" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/smash&lt;/a&gt; · &lt;a href="https://github.com/ESeungJun/poketmon_idle" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/poketmon_idle&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I've built a handful of desktop apps this year, and most of them are Electron apps. Every installer ended up over 100MB. Smash!, an app that tidies my Downloads folder, was 114MB. A desktop pet that grows while I focus was 198MB. Then I built a weather widget with Tauri, and it came out at 17MB, 3D assets included. (I wrote this with help from Claude and checked every number myself.)&lt;/p&gt;

&lt;p&gt;So I moved two of the Electron apps to Tauri, which means Rust on the native side. I did it together with Claude Code. This post covers how I picked the order, and what I did so the people already using these apps wouldn't notice anything except a smaller download.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;p&gt;On the Mac, the pet app went from 198.7MB to 5.6MB, and Smash went from 114MB to 6.2MB. Smash used to ship separate builds for Apple silicon and Intel. Now it's one universal build at 6.2MB. On Windows, the installers went from 92.8MB to 2.0MB and from 115MB to 2.2MB.&lt;/p&gt;

&lt;p&gt;I could only compare memory for Smash. The Electron version used 244MB across 8 processes. The Tauri version uses 88MB.&lt;/p&gt;

&lt;p&gt;That 88MB needs a note. Tauri draws the UI with the system WebKit on macOS, and WebKit runs in its own processes outside the app. My first measurement only counted the app process and gave me 48MB. That felt like cheating, so the number above adds the three WebKit processes that started with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which app first
&lt;/h2&gt;

&lt;p&gt;Before touching any code, I went through my Electron apps one by one. "Port it to Rust" sounds like a big rewrite. In practice, the UI (HTML or React) stays almost the same, and you rewrite the Electron main process, the Node part, in Rust.&lt;/p&gt;

&lt;p&gt;So I counted how big each main process was and which Electron features it used.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fefhhf23w83rtl7vhsyml.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fefhhf23w83rtl7vhsyml.png" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The pet app's main process was only 494 lines, and everything it used (tray, transparent window, always-on-top) has a Tauri equivalent. Smash was bigger, with 1,816 lines plus an MCP server. DroidLens, an Android dev tool of mine, has over 5,000 lines to rewrite, and install size matters less for a dev tool. I put it on hold.&lt;/p&gt;

&lt;p&gt;I also wrote down what I expected to get: smaller installers, less memory, faster startup. I didn't expect features to get faster just because of Rust. My apps were never slow because of JavaScript. The cost I accepted was that each OS now uses its own webview (WebKit on macOS, WebView2 on Windows), so the UI can look slightly different per OS.&lt;/p&gt;

&lt;p&gt;The plan was simple. Port the smallest app, measure, and only move on to Smash if the numbers held up. I'd rather pick the next app from a measured number than from an estimate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Goals
&lt;/h2&gt;

&lt;p&gt;I used three goals to make decisions along the way.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz3txqd9l2944pqca7g4n.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz3txqd9l2944pqca7g4n.png" width="800" height="515"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first one mattered most. A smaller installer is nice, but if updating wipes your rules or quietly breaks your Claude setup, it's a step back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the UI, match the boundary
&lt;/h2&gt;

&lt;p&gt;I barely touched the UI code in either app.&lt;/p&gt;

&lt;p&gt;In Electron, the UI talks to the main process through an object like &lt;code&gt;window.electronAPI&lt;/code&gt; or &lt;code&gt;window.tidy&lt;/code&gt;. I wrote one small file that builds the same object on top of Tauri commands. The UI calls the same functions and gets the same values back, so it doesn't need to know whether Electron or Rust is on the other side.&lt;/p&gt;

&lt;p&gt;For the pet app, all 38 React components stayed as they were. The 494-line main process became 720 lines of Rust, and the installer dropped from 198.7MB to 5.6MB. That was enough to move on to Smash.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smash, MCP server included
&lt;/h2&gt;

&lt;p&gt;Smash had more to port: the rule engine, the folder watcher, trash handling, history, the Claude integration, and an MCP server. I started after midnight and shipped 2.0.0 around noon the same day. The Rust side is 3,841 lines, tests included.&lt;/p&gt;

&lt;p&gt;The MCP server is the biggest change. You can register Smash as an MCP server in Claude Code or Claude Desktop and say "tidy my Downloads". In the Electron version, the server ran by starting the bundled Electron binary as if it were Node. Now it's the app binary with &lt;code&gt;--mcp&lt;/code&gt;, and Node isn't involved at all.&lt;/p&gt;

&lt;p&gt;That created a problem, though. Anyone on 1.x had Claude configured with the old Electron path. The moment they updated, that path would disappear, and Claude would silently lose Smash.&lt;/p&gt;

&lt;p&gt;So the first time 2.0 starts, it looks for Claude config files and rewrites any old Smash entry to point at the new binary. That covers &lt;code&gt;~/.claude.json&lt;/code&gt;, the Claude Desktop config, and per-profile config folders. It leaves places where Smash isn't registered alone, and it skips the rewrite when the app runs from a temporary path, like straight from the disk image.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the tests didn't catch
&lt;/h2&gt;

&lt;p&gt;I ported the existing tests for the rule engine and file moves to Rust, and all 21 pass. A few things still slipped past them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My edit reshuffled the user's Claude config.&lt;/strong&gt; When I first built the registration fix, a review showed that reading and rewriting the JSON sorted every key alphabetically. It still worked. But &lt;code&gt;~/.claude.json&lt;/code&gt; holds a person's whole Claude Code setup, and changing one entry shouldn't reorder the entire file. I switched to keeping the original key order. Then I compared three real config files on my machine before and after, and only the &lt;code&gt;smash&lt;/code&gt; entry had changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The nag banner lost the folder name.&lt;/strong&gt; When auto-tidy runs, Smash shows a banner like "Tidied 3 files in Downloads". After the port, I dropped a real file into the folder and got "Tidied 1 file in" with no folder name. The watcher was passing a path where it should have passed the folder's ID, and no test looked at that value. I fixed it and made the test check the ID.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building only in CI made me find errors late.&lt;/strong&gt; At first this Mac had no Rust, so every build ran on GitHub Actions. That meant waiting over ten minutes to learn about a single compile error. (Not my proudest afternoon.) I installed Rust locally, and now I build and test on my machine first. CI only does the things I can't do here, like the Windows build.&lt;/p&gt;

&lt;p&gt;The first two only showed up with the installed app, my real config files and real files. So after porting, I left the installed app running for over 40 seconds, measured memory, and talked to the MCP server directly before calling it done.&lt;/p&gt;

&lt;h2&gt;
  
  
  No more manual downloads
&lt;/h2&gt;

&lt;p&gt;Neither app had auto-update in its Electron days. Every release meant downloading again.&lt;/p&gt;

&lt;p&gt;Both apps now check 15 seconds after launch and every 6 hours after that. When there's a new version, they download it in the background and add "Install new version and restart" to the tray menu. They only install when you click it. That rule comes from the pet app: it's a focus timer, and it shouldn't restart in the middle of your focus session.&lt;/p&gt;

&lt;p&gt;I checked that a test build actually updated itself to the real 2.0.0. In 2.1.0 I also added the current version and a "Check for updates" button to the settings screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's left
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On Windows, I've only confirmed that the installer builds. I haven't run it on a real Windows machine yet, and WebView2 may render the UI a little differently.&lt;/li&gt;
&lt;li&gt;Next in line is Claudy, a desktop pet that shows what my Claude sessions are doing. Its main process is 2,799 lines. With numbers like these, I think it's worth doing.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Size and memory dropped a lot. Feature speed didn't change in any way I could feel, which is what I expected.&lt;/li&gt;
&lt;li&gt;The Rust rewrite wasn't the hard part. Carrying over settings, history and Claude registrations without breaking anything took more care.&lt;/li&gt;
&lt;li&gt;Porting the smallest app first and measuring it made the next decision easy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If one of these apps sounds useful, a star on GitHub would make my day.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smash: &lt;a href="https://github.com/ESeungJun/smash" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/smash&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pokémon Idle: &lt;a href="https://github.com/ESeungJun/poketmon_idle" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/poketmon_idle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LinkedIn: &lt;a href="https://www.linkedin.com/in/%EC%8A%B9%EC%A4%80-%EC%9D%B4-53707a328/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/승준-이-53707a328/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>rust</category>
      <category>tauri</category>
      <category>electron</category>
      <category>opensource</category>
    </item>
    <item>
      <title>My AI agent says "all fixed." 3 times out of 4, it never measured the before.</title>
      <dc:creator>Haul</dc:creator>
      <pubDate>Fri, 06 Nov 2026 06:01:05 +0000</pubDate>
      <link>https://dev.to/haul/only-10-of-my-ai-agents-34-bug-reports-said-what-the-fix-would-improve-dge</link>
      <guid>https://dev.to/haul/only-10-of-my-ai-agents-34-bug-reports-said-what-the-fix-would-improve-dge</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;GitHub: &lt;a href="https://github.com/ESeungJun/fix-proposal" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/fix-proposal&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;"All fixed." I've heard that from my AI agent, opened the app, and found the same margin more times than I'd like. (I wrote this with help from Claude and checked every number myself.)&lt;/p&gt;

&lt;p&gt;I do most of my work with Claude Code now, and the agent often finds problems on its own. It says something like "this is also broken, want me to fix it?" And almost every time, my reply is the same question: "So what goes wrong if we leave it, and what gets better if we fix it?" When it says it fixed something, I ask: "Really? How did you check?" I got tired of asking, so I made a skill for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result first
&lt;/h2&gt;

&lt;p&gt;Same situation, same model (Haiku). The agent has fixed a search box and is reporting whether its promise, "requests drop from 12 to 1", came true.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flu3w79jrdm36hnxg2hvi.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flu3w79jrdm36hnxg2hvi.png" width="800" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Without the skill, it admitted the count only dropped to 2. Then it added "if typing doesn't pause, it drops to 1", which it never measured. With the skill, it marked that row ❌ and only explained where the "1" came from.&lt;/p&gt;

&lt;p&gt;The skill does two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When proposing a fix, fill four fields: what's wrong, how to fix it, what gets better, and the expected result.&lt;/li&gt;
&lt;li&gt;After the fix, check every promise with a measured as-is / to-be table.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcktm98o7qeltyojkebeq.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcktm98o7qeltyojkebeq.png" width="800" height="412"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The field that matters most is the expected result. Instead of "it'll be more stable", the agent has to write something you can check by running it, like "&lt;code&gt;select 1&lt;/code&gt; returns one row". That sentence later becomes a row in the to-be table.&lt;/p&gt;

&lt;h2&gt;
  
  
  It started with one bug
&lt;/h2&gt;

&lt;p&gt;In a team project, the agent found a problem in a data script. A function that reads the database in read-only mode was missing a CLI flag, so it stopped and asked for confirmation whenever an agent ran it. The location and the fix were both right.&lt;/p&gt;

&lt;p&gt;What it didn't say was why it mattered, so I asked. The answer was bigger than the report:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;two scripts that use this function had never run in an agent session&lt;/li&gt;
&lt;li&gt;the "read-only" function let a table-creating statement (&lt;code&gt;select … into&lt;/code&gt;) straight through&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither was in the first report. If I hadn't asked, I'd have filed it as "one missing flag" and moved on.&lt;/p&gt;

&lt;p&gt;That "all fixed" from the top had the same root. It claimed a fix without a measured "before" to compare against.&lt;/p&gt;

&lt;h2&gt;
  
  
  I measured my history before writing the skill
&lt;/h2&gt;

&lt;p&gt;One annoying evening isn't enough reason for a rule, so I checked whether this was a real pattern.&lt;/p&gt;

&lt;p&gt;I collected everything the agent had sent me over about 40 days, across 87 projects. That came to 248 bug or fix proposals and 326 "fixed it" reports. I sampled 40 of each at random and had Sonnet grade them.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffuhp3clxeudfni7jvpgx.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffuhp3clxeudfni7jvpgx.png" width="800" height="672"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;82% said where the problem was and how to fix it. Only 29% said what would get better, and only 18% gave a result you could check. After a fix, about one report in four compared against a measured "before".&lt;/p&gt;

&lt;p&gt;So I wasn't being picky. (Okay, maybe a little.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Did it actually help? 72 answers
&lt;/h2&gt;

&lt;p&gt;Writing the skill took minutes. Knowing whether it changed anything took longer.&lt;/p&gt;

&lt;p&gt;I wrote six situations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;three proposals: the data script bug, a web search box that sends a request for every keystroke, and an Android label that shows "yesterday" for something that happened this morning&lt;/li&gt;
&lt;li&gt;three reports after fixing each of them&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each report hides a trap: a promise from the proposal that the logs show wasn't met, or was never measured. The goal was to catch answers that draw a nice table and tick every box.&lt;/p&gt;

&lt;p&gt;Every situation ran once without the skill and once with &lt;code&gt;SKILL.md&lt;/code&gt; added, on Sonnet and Haiku, three times each. That's 72 answers. My global settings already include this rule, so every run had settings and &lt;code&gt;CLAUDE.md&lt;/code&gt; turned off.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjcvf58mdgyg5thyshzdn.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjcvf58mdgyg5thyshzdn.png" width="799" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the skill, "what gets better" and "expected result" showed up in all 18 runs, and every trap was caught. "Doesn't claim what wasn't measured" stopped at 78%. Some habits survive a skill, it seems.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Femlce50upttkgabck1xe.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Femlce50upttkgabck1xe.png" width="799" height="185"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The part I liked most: Haiku with the skill scored higher than Sonnet without it, at about one eighth of the cost per answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the grading trustworthy
&lt;/h2&gt;

&lt;p&gt;A model grading a model is easy to fool, so I added two checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quoted evidence. For each item, the grader has to quote the answer. If the quote isn't really in the answer, code flips that item to a fail.&lt;/li&gt;
&lt;li&gt;A second grading. The same 72 answers were graded again with a different prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The two gradings agreed on 446 of 468 judgments (95.3%), and the second one alone gave the same conclusion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using it for real
&lt;/h2&gt;

&lt;p&gt;This is the report I got after re-proposing that first bug in the new format and approving it. The "before" values came from temporarily reverting the fix and running the same commands.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbyp7s3dnyo52dvkxp187.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbyp7s3dnyo52dvkxp187.png" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My favorite row is the last one. Nobody ran it from a human terminal, so it stays ⚠️ instead of ✅. Before, I'd probably have gotten "all done".&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took away
&lt;/h2&gt;

&lt;p&gt;My part in this was setting the direction and deciding at each fork.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F15qqdn20xt3itzlufevw.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F15qqdn20xt3itzlufevw.png" width="800" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The biggest lesson was a small one. Once "what gets better" became a field, the agent filled it every time. I had just never said I wanted it.&lt;/p&gt;

&lt;p&gt;What do you keep asking your agent over and over? It might fit in one field too.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GitHub: &lt;a href="https://github.com/ESeungJun/fix-proposal" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/fix-proposal&lt;/a&gt;&lt;br&gt;
LinkedIn: &lt;a href="https://www.linkedin.com/in/%EC%8A%B9%EC%A4%80-%EC%9D%B4-53707a328/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/승준-이-53707a328/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>opensource</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Flipper got archived, so I built an Android inspector that needs no SDK</title>
      <dc:creator>Haul</dc:creator>
      <pubDate>Tue, 03 Nov 2026 16:26:35 +0000</pubDate>
      <link>https://dev.to/haul/flipper-got-archived-so-i-built-an-android-inspector-that-needs-no-sdk-11o7</link>
      <guid>https://dev.to/haul/flipper-got-archived-so-i-built-an-android-inspector-that-needs-no-sdk-11o7</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztcskttgiogt2b62e0xh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztcskttgiogt2b62e0xh.gif" width="560" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GitHub: &lt;a href="https://github.com/ESeungJun/droidlens" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/droidlens&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Installers for macOS, Windows and Linux are on the Releases page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you've done Android work for a while, you've probably used Flipper. You add its SDK to your app, and you get the network log, the database and the view tree on your desktop. Meta archived it, and I kept missing it. (I wrote this with help from Claude and checked every number myself.)&lt;/p&gt;

&lt;p&gt;So I built my own. It's called DroidLens, and it does a few things differently.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It works over adb alone, with no SDK, so it can open any app on the phone.&lt;/li&gt;
&lt;li&gt;It has an MCP server, so a Claude Code agent can drive the device and check things for you.&lt;/li&gt;
&lt;li&gt;What the agent checks gets saved as a YAML scenario you can replay as a regression test.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first version took about a day, from the first commit to v0.5.1. It's at v0.10.3 now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result first
&lt;/h2&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpsn07g09t1cp4n8rgejq.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpsn07g09t1cp4n8rgejq.jpg" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Screen: scrcpy-based mirroring up to 60fps, with click, swipe and text input&lt;/li&gt;
&lt;li&gt;View hierarchy: a tree and a 3D exploded view of the layout&lt;/li&gt;
&lt;li&gt;Screen flow: it taps through the app by itself and draws a graph of how screens connect&lt;/li&gt;
&lt;li&gt;Libraries: it detects which libraries an app uses from the class names inside the APK&lt;/li&gt;
&lt;li&gt;App info: version, SDK levels, activities, permissions, and a deep link launcher&lt;/li&gt;
&lt;li&gt;Scenarios: flows the agent verified, saved as YAML and replayable from the CLI&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fttfvz5jjyu90b0g2fjes.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fttfvz5jjyu90b0g2fjes.jpg" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I wanted from it
&lt;/h2&gt;

&lt;p&gt;I wrote down four goals before I started, and I used them every time I had to pick between two options.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Look inside any app, without an SDK.&lt;/li&gt;
&lt;li&gt;Let an agent use it directly, not only a person.&lt;/li&gt;
&lt;li&gt;Be usable by someone who isn't an Android developer.&lt;/li&gt;
&lt;li&gt;Keep running without me babysitting it.&lt;/li&gt;
&lt;/ol&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feixvtoi1l406cr0y5pvs.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feixvtoi1l406cr0y5pvs.png" width="800" height="654"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  No SDK, just adb
&lt;/h2&gt;

&lt;p&gt;The thing that bothered me most about Flipper was the SDK. You can't look at someone else's app at all. And your own app needs the SDK in the build, so release builds are off limits too.&lt;/p&gt;

&lt;p&gt;Every core feature runs on plain adb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the view hierarchy comes from &lt;code&gt;uiautomator dump&lt;/code&gt;,&lt;/li&gt;
&lt;li&gt;the current activity from &lt;code&gt;dumpsys window&lt;/code&gt;, and fragments from &lt;code&gt;dumpsys activity top&lt;/code&gt;,&lt;/li&gt;
&lt;li&gt;libraries come from pulling the APK and matching class names in &lt;code&gt;classes*.dex&lt;/code&gt; against 103 signatures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That means anything installed on the phone is fair game. The README screenshots are of Google's Calculator app for exactly that reason.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3cotp2zaydcjjicocu1j.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3cotp2zaydcjjicocu1j.jpg" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some things really do need to look from inside the app: network traffic, SharedPreferences, databases. Those went into an optional SDK. You add it to debug builds only, and release builds get an empty implementation (&lt;code&gt;sdk-noop&lt;/code&gt;). It needs no init code and no INTERNET permission.&lt;/p&gt;

&lt;h2&gt;
  
  
  adb was too slow, so I put a small agent on the phone
&lt;/h2&gt;

&lt;p&gt;adb worked, but it was slow. One &lt;code&gt;uiautomator dump&lt;/code&gt; took 1.5 to 3 seconds. Checking the current fragment took anywhere from 1 to 7.&lt;/p&gt;

&lt;p&gt;For a person clicking around, that's annoying but fine. For an agent that reads the screen dozens of times while it works, it was a dead end.&lt;/p&gt;

&lt;p&gt;I moved the work onto the device instead. DroidLens installs a 13KB agent APK, starts it with &lt;code&gt;am instrument&lt;/code&gt;, and keeps a UiAutomation connection open. It answers requests over a socket.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8w0boech6y3r9n7l65yh.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8w0boech6y3r9n7l65yh.png" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a bonus, Korean text input started working. &lt;code&gt;adb shell input text&lt;/code&gt; only handles ASCII, which is a real problem when your users type in Korean.&lt;/p&gt;

&lt;p&gt;If the agent fails to install or start, DroidLens falls back to the old uiautomator path. Everything still works, just slower.&lt;/p&gt;

&lt;h2&gt;
  
  
  From looking to checking
&lt;/h2&gt;

&lt;p&gt;At this point it was a Flipper replacement and not much more. But I do most of my development with Claude Code now, so I wanted the agent to use this thing too.&lt;/p&gt;

&lt;p&gt;I added an MCP server. It hands Claude Code the same tools I use in the app: read the screen, tap, swipe, type, launch an app, read logs, look at network calls. That was 43 tools in the first version and it's 50 now.&lt;/p&gt;

&lt;p&gt;That made this kind of request possible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Log in, open Settings, and check that dark mode turns on.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent reads the real screen on a real phone, taps through it, and checks the result. If it passes, the steps are saved as a YAML scenario. You can replay it from the CLI, and it exits with code 1 on failure, so it fits into CI.&lt;/p&gt;

&lt;p&gt;Setup is one button in the app's settings tab, which runs &lt;code&gt;claude mcp add&lt;/code&gt; for you. The MCP server runs on the Node that ships inside Electron, so there's nothing extra to install.&lt;/p&gt;

&lt;h2&gt;
  
  
  The auto-explorer connected the wrong screens
&lt;/h2&gt;

&lt;p&gt;The screen flow tab taps through the app on its own and draws how screens connect.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuumnnhk06b0pvxixgdhp.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuumnnhk06b0pvxixgdhp.jpg" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I ran it on a real app, it linked a category menu to a screen that had nothing to do with it. Three things were going wrong at once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It kept tapping the coordinates it recorded the first time. After going to another screen and coming back, the list had scrolled, so a different item was sitting there.&lt;/li&gt;
&lt;li&gt;It never checked that "back" actually returned to the original screen. If it landed somewhere else, it carried on tapping anyway.&lt;/li&gt;
&lt;li&gt;Its screen signature included the contents of scrollable areas, so the same screen with different list items counted as two screens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now it finds the same button again right before tapping, and the signature ignores what's inside scrollable areas.&lt;/p&gt;

&lt;p&gt;It also had two inputs, "max depth" and "max steps". After using it for a bit I couldn't tell you the difference between them, and I wrote it. I removed steps and kept depth. Internally it stops after 500 taps, and it never taps buttons that look like pay, delete, log out or send.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking it: the SDK was logging passwords
&lt;/h2&gt;

&lt;p&gt;Before v0.5.0, I ran two code reviews and one security review in parallel. The worst finding was in the SDK's redaction.&lt;/p&gt;

&lt;p&gt;The SDK hides passwords and tokens in the network log. But it only matched keys named exactly &lt;code&gt;password&lt;/code&gt; or &lt;code&gt;token&lt;/code&gt;. So &lt;code&gt;newPassword&lt;/code&gt;, &lt;code&gt;fcmToken&lt;/code&gt; and &lt;code&gt;jwt&lt;/code&gt; were being logged in plain text. The reviewer found it by actually compiling the SDK and running it.&lt;/p&gt;

&lt;p&gt;I switched to partial matching on key names, and extended redaction to JSON inside strings, GraphQL arguments, and multipart and XML bodies.&lt;/p&gt;

&lt;p&gt;Then the automated security review found a problem in my fix. One of the new regexes slowed down badly on certain inputs (ReDoS). A single 256KB input took more than 60 seconds. After the fix it takes about 20ms.&lt;/p&gt;

&lt;p&gt;There was an older one too. The on-device agent used to listen on a TCP port, which meant any other app on the same phone could connect and borrow its UiAutomation privileges. (Not my proudest moment.) It now uses a Unix socket and only accepts connections from the shell or root user.&lt;/p&gt;

&lt;h2&gt;
  
  
  What broke when I actually installed it
&lt;/h2&gt;

&lt;p&gt;I tested the one-line installer and auto-update by installing them for real, and two things broke:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An environment variable I used to pin the version during testing leaked into the newly launched app. The new app thought it was the old version, updated itself, and did it again. An update loop.&lt;/li&gt;
&lt;li&gt;The in-app agent chat didn't work on Windows only. Going through cmd.exe was mangling JSON and multi-line arguments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither would have shown up if I'd only run it in dev mode.&lt;/p&gt;

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

&lt;p&gt;The goal I spent the most time on was "usable by someone who isn't an Android developer". Every feature I added made the app a little harder for a first-time user. So before adding anything, I asked whether someone opening it for the first time would understand it. If even I got confused by an option, it went.&lt;/p&gt;

&lt;p&gt;I also didn't find any of the security bugs by using the app. The password leak and the open port only showed up when a review read the code looking for exactly that kind of problem.&lt;/p&gt;

&lt;p&gt;If you try it and something's missing or broken, please open an issue. I'm especially curious whether mirroring and install work for you on Windows and Linux.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/ESeungJun/droidlens" rel="noopener noreferrer"&gt;https://github.com/ESeungJun/droidlens&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LinkedIn: &lt;a href="https://www.linkedin.com/in/%EC%8A%B9%EC%A4%80-%EC%9D%B4-53707a328/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/승준-이-53707a328/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://medium.com/@haul/flipper-got-archived-so-i-built-an-android-inspector-that-needs-no-sdk-38a63a512ed8" rel="noopener noreferrer"&gt;Medium&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>opensource</category>
      <category>mcp</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
