Boris Cherny on Trying to Get Claude Code to Rewrite the Claude App
TL;DR Highlight
Claude was told to rewrite its Electron app in Swift via pixel comparison; two weeks later it's still running
Who Should Read
A developer handing long tasks to agents who is unsure how to verify the results
Core Mechanics
- Verification is the key skill now
- Cherny says the skill today is less prompt engineering and more giving Claude a task that seems too hard.
- Then you must let Claude verify its own work along the way.
- He calls verification the single most commonly botched thing.
- The experiment: Electron to Swift
- The Claude desktop app is built on Electron, and he wanted to see what a native version would feel like.
- He started a Claude Tag session, which is Claude running in Slack.
- He gave it a GitHub macOS runner and an empty Swift codebase.
- One prompt, simple instructions
- He told it to run the Electron app in a Mac VM, screenshot it, and compare pixel by pixel to the Swift version.
- He told it not to stop until done.
- Asked if that was basically the whole prompt, he said yes.
- Still running after two weeks
- At interview time it had run about 14 to 15 days.
- Gruber writes that the task appears to have failed.
- Gruber: the problem is design, not framework
- He argues the current Claude app's design itself is non-native and poor in the abstract.
- So a pixel-perfect port solves only technical problems, not design ones.
- He says the app took 30 seconds to become usable on his Mac.
Community Reactions
- Pixel comparison is shallow, one commenter says
- They agree verification matters but doubt visual comparison yields a good app.
- They prefer specifying verification types like a rubric so a human can vouch for the result.
- LLM visual checks were flaky in one experience
- A commenter built LLM-based mobile layout validation and found results flaky even with Claude.
- They now run deterministic CSS checks first and use LLMs only afterward.
- Attach verification to every requirement, one commenter says
- They turn behaviors into requirements and add end-to-end tests.
- Traceability in tests keeps the agent honest about what was built and verified.
- Cost and design pushback
- One commenter says two weeks of tokens could cost tens of thousands of dollars and hiring an expert might be better.
- Another says better technology cannot make up for poor product design.
How to Apply
- Put the verification method in the prompt first
- Today, before giving an agent a long task, write the definition of done and the verification commands.
- Write at least two criteria rather than relying on one method like pixel comparison.
- Run deterministic checks before LLM judgment
- In a UI validation pipeline, run rule-based checks like CSS and DOM first.
- Leave only rule-resistant issues like broken text to the LLM.
- Have the agent confirm environment access up front
- Before a long run, ask the agent whether it can reach the runner and repo.
- Grant missing access before starting.
- Add checkpoints to long runs
- For multi-day tasks, set a daily checkpoint to review results and cost.
Try It
# Paste into Claude Code or ChatGPT (simplified version of the article's method)
You will perform {{task}}. Before starting, do the following.
1. Check with me one by one whether you have the needed access (repo, runtime, runner).
2. Propose at least 3 completion criteria yourself. Do not use visual comparison alone.
3. For each criterion, write the verification command or test to run.
Then proceed with the task and report verification results in a table at each step. Do not say you are done until all criteria pass.
Next to try: ask it to split criteria into those checkable deterministically and those needing LLM judgmentTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques