Boris Cherny on Trying to Get Claude Code to Rewrite the Claude App
Posted by robenkleene 13 hours ago
Comments
Comment by curious_cat_163 12 hours ago
> The verification is probably the single most important thing that people do not get right, largely.
and so, so, so wrong about giving this prompt (for verification) and expecting that it succeeds at building a "good" app:
> I want you to run the Electron app in the Mac virtual machine, screenshot it, and then look pixel by pixel. Compare it to the Swift version. Don’t stop until you’re done.
Given he has let it rip for two weeks, I am assuming they have been post-training Claude for some version of this to be more _likely_ successful than not. However, IMO, the verification that you get from a visual comparison is shallow.
To state the obvious: there is a lot more than what meets the eye. But, I think, one could prompt a Fable/Opus 5 to actually go verify that "lot more"...
The question is: should one be imperative in asking for a specific types of verification (like a rubric) vs hoping that the Google/Anthropic/Open AI/Moonshot's post-training will take care of it.
I think, as things stand today, even with the best-in-class models today, I would be leaning more imperative. And it is not because I am an expert in SwiftUI or such. It is because I want to be able to say that _I_ (i.e. the human) verified that this thing works.
Comment by calufa 11 hours ago
Comment by andreidbr 9 hours ago
I've since refactored it to first do some deterministic checks using CSS, to determine visual glitches like overlaps. Only after do I use LLMs to figure out if text is broken, loading spinners still display, or other such things where models are better.
For deterministic tasks like pixel-by-pixel comparison, I don't think LLMs are good enough (for now, at least).
Comment by joshka 8 hours ago
I speculate that maybe the OpenAI models have the edge here over Claude's (while still being terrible at web UIs), as the training necessary to handle computer use stuff is heavily image processing based. I wouldn't bet on either being bad for much longer though.
Comment by bob1029 8 hours ago
User interfaces are like pieces of artwork. You really don't know until it's finished, and even then it's not for everyone.
LLMs are most effective when working with human parsed representations of websites. They are terrible at doing the actual parsing.
They're also good at working on a relative basis. One png screenshot of the viewport is a difficult hill to climb. The difference between two screenshots is much more informative. Deltas usually tell a much bigger story than dead reckoning against the base world model.
Comment by joshka 8 hours ago
The hard point is doing that well deterministically in a way that is token efficient and which can be iterated on. I suspect it's difficult to encode that into an AI model of what's good taste.
Comment by prpl 10 hours ago
Mostly I’m borrowing heavily from model based systems engineering and adapting it to some form of constitutional spec driven development.
Comment by dostick 10 hours ago
Comment by drooby 11 hours ago
Comment by andromaton 12 hours ago
Comment by cadamsdotcom 11 hours ago
But actually this phenomenon of writing one to throw away is going to be amazing for what we can explore.
Comment by bravetraveler 12 hours ago
Next time, on Dragon Ball Z!
Comment by joeyguerra 12 hours ago
Comment by VirS 9 hours ago
Comment by uuuynnnuuuyyyn 11 hours ago
Comment by larpathyparpav 12 hours ago