It’s possible to
stop the slop.
The problemA marketplace in beta. About a million lines of repeated, inconsistent code. Engineers struggled to change it; founders lacked confidence in the product.
My fixI rebuilt it around a clear structure: shared views, 350+ tRPC endpoints consolidated into one REST endpoint, and rules for the work. About 30,000 lines in two weeks. Fresh agents compared the rebuild with the original for feature coverage.
The team’s win
The team and its agents could read it, debug it, and build faster again.
2 weeksto go from ~1M to ~30k lines
~30,000lines of code
Each block ≈ 10,000 lines