Rewrite a finance backend from .NET to Hono with Claude Code under a parity harness

@ali_ilhami reports moving Nuvio’s backend from .NET to Hono in 36 days (Sep 4–Oct 9, 2026) with Claude Code, Cursor and Codex writing the application code. Their claim: 0 lines typed by hand, 269 of 269 routes ported, 2,330 recorded test cases green, 615 commits, and one launch-night bug fixed the same night. The real work was a strict parity harness that recorded the old backend’s responses and side effects and replayed them against the new one so agents could not quietly “improve” money logic.
Try it yourself
What you get
A backend rewrite where AI writes the code and a recorded parity harness decides when each route is actually done.
Tools
- Claude Code
- Cursor
- Codex
- Hono
- Existing .NET backend as oracle
Steps
- Freeze routes, status codes, error codes and money types (never JS numbers for money).
- Build a recorder that captures responses, DB writes and outbound calls from the old system.
- Port in tiers from low-risk to high-risk; gate each route on replay, not on “files exist”.
- Cut over with a written rollback; expect agents to cheat toward green—block hand-edited expectations.
Copy-ready prompt
We are migrating our [OLD STACK] backend to [NEW STACK] with exact behavior preservation. Rules: 1. Same routes, status codes, error codes and pagination fields. No “improvements”. 2. Money fields stay decimal/string, never floating point. 3. For each route: record old response + DB delta + outbound calls; port; replay until equal. 4. If old and new disagree, assume new is wrong unless I approve a numbered discrepancy report. Start by listing every HTTP operation and a recording plan for side effects (email, payments, analytics).
Watch out: Finance systems. Keep a human on money discrepancies. Token and dollar figures are the author’s own accounting.
Proof / source
Self-reported Author’s Oct 14 article: 269/269 routes, 2,330 cases green at a checkpoint, one launch-night bug; screenshot stats in an earlier Oct 10 post.
In their words
We rewrote our entire backend from .NET to Hono in 36 days. Lines of code I wrote by hand: 0 Tokens burnt: 8.92 billion Bugs on launch night: only 1 Here’s exactly how we did it, what went good, what went wrong and the times the AI tried to cheat 👇
Related
Dictate Claude Code prompts with local Whisper so text lands at the cursor
@_Julsgaard_ stopped typing Claude Code prompts. They hold Ctrl+Space, speak, and local Whisper on their Windows PC drops the text at the cursor. They open-sourced it as …
Build a custom workout app for a partner with Claude Code and Cursor
@RubeBuilds's wife liked the Strong app but wanted different features plus routines pulled from Reddit. @RubeBuilds built their wife a workout app with Claude Code, plus …
Cancel Adobe and have Claude Code cut, caption and assemble a video in FilmCraft
@thorgeirgisli cancelled Adobe and asked AI to edit a whole video. Claude Code cut the footage, made motion graphics, levelled the audio, fixed mic channels, wrote captio…
Get an AI second opinion on your MRI with Claude Code
A shoulder-pain patient gave the DICOM files from their MRI to Claude Code (Opus 4.8). It read the tendon as intact where the clinic had reported a partial tear, then com…