AIToday
Large Language ModelsAI Coding AssistantsHacker NewsPublished: Nov 6, 2026, 22:01 JST

Johannes Treitz: Claude-built native apps replace Hotwire Native

Send on LINE
Johannes Treitz: Claude-built native apps replace Hotwire Native

3 Key Points

  1. What happened

    Johannes Treitz gave his Rails app an API and asked Claude to build a native iOS app. Within four weeks it had replaced his Hotwire Native wrapper, and an Android version in Kotlin followed even quicker, despite his not being able to read either language.

  2. Why it matters

    The lines of code that cross-platform frameworks used to save no longer justify their abstraction layer, Treitz argues, because an AI agent now writes most of that code. He says he spends the freed-up time testing every change on real devices, and the agent writes far more tests than he would.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

Treitz's starting point was a practical constraint: Werkbook, an app for blue-collar workers to document work on site, had to run on phones and tablets, and he had no Swift or Kotlin knowledge. He first chose Hotwire Native because it fit naturally with a Ruby on Rails app. The seams appeared in the field — crashes on some phones when too many photos exhausted memory, a dead app in a basement without signal, links in emails that did not open the app — and he still had to test on each device despite the shared code.

The change came at the end of August, when he exposed an API from the Rails app and used Claude to generate a native iOS client from the web app as a blueprint. What surprised him was not only the Swift output but that the agent navigated certificates, provisioning profiles, entitlements and permissions, landing the app on his iPhone without Xcode being opened once. The Android version followed faster, with most of his time going to where to keep the app's identity versus where to follow Android conventions.

His broader argument rests on a shift in cost: cross-platform frameworks made sense when writing a native app twice cost twice as much, but if an agent writes most of the code, the abstraction layer's limitations outweigh the lines it saves. He also notes that over-the-air updates lost much of their appeal, since many of his fixes needed a store release anyway and app review has become much faster. His own uncertainty is about durability rather than capability — how the generated code holds up over time — and he treats the mobile clients as untrusted by design, with the Rails API enforcing who sees what.

FAQ
How does Treitz keep the AI-written apps safe if he can't read the code?
The mobile apps are untrusted clients: the API in his Rails app is the security perimeter. Who sees which data, what a user may do and what counts as valid input all live server-side, so a Swift bug can draw a screen wrong but cannot show someone else's data.
Does Treitz review the generated Swift and Kotlin code?
He cannot read it line by line — he can follow the structure but couldn't say whether a Swift closure holds on to something it shouldn't. Instead he tests every change on real devices and hands crashes to the agent, confirming fixes on the device rather than in the diff.
What is still unresolved about this approach?
Treitz says he doesn't yet know how the code ages: whether the agents keep it tidy and how often a fix in one place breaks something elsewhere.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleLessWrong post questions claims that an AI pause would badly hurt the economy