Claude just reverse-engineered a massive Direct2D library for Paint.NET developer Rick Brewster used Anthropic's Claude AI to reverse-engineer and rewrite Microsoft's Direct2D graphics library from scratch, generating roughly 180,000 lines of code—about 25% of the size of Paint.NET's entire 700,000-line codebase built over 20 years. Brewster reported that while Claude excelled at complex mathematical reverse engineering, it required constant supervision to fix resource management issues and architectural flaws, highlighting both the potential and limitations of AI-driven development for legacy systems. Claude just reverse-engineered a massive Direct2D library for Instead of waiting for a WINE update that might never come, Brewster basically used Claude /en/tags/claude/ to build a custom, clean-room reverse-engineered rewrite of Direct2D from scratch. This isn't just a small patch; we are talking about a massive amount of code living in PaintDotNet.Windows.Direct2D1.Managed.dll . The scale of this is honestly hard to wrap your head around. Brewster noted that Claude churned out roughly 180,000 lines of code for this specific implementation. To put that in perspective, the entire rest of the Paint.NET codebase is around 700,000 lines, and he's been building that for over 20 years. Seeing an AI agent /en/tags/ai%20agent/ tackle a chunk that represents about 25% of a two-decade-old project is a massive milestone for prompt engineering and AI-driven development. However, it wasn't all smooth sailing. This is where the term "vibe coding" comes in. Brewster admitted that a lot of the code was written in a "trust me bro" style because it's physically impossible for a human to thoroughly review 180k lines of new logic in a reasonable timeframe. Here is the reality of the current AI workflow for high-level engineering: The Good: Claude demonstrated "genius-level" capabilities when it came to the heavy lifting of reverse engineering the complex math formulas required for the Direct2D effects library. It was tireless and handled the logic that would take a human engineer weeks of manual research. The Bad: The agent struggled with fundamental systems programming. Brewster had to "babysit" it to fix resource management issues—specifically, Claude was failing to handle the COM equivalent of AddRef for reference-counted objects. If you don't catch those, you get massive memory leaks. The Ugly: There were frequent instances of poor architectural decisions that required manual intervention to steer the model back toward a sane design. If you want to try this experimental setup, you trigger the new implementation by using the /wine flag.This is a perfect real-world case study for anyone debating whether LLMs are ready for serious deployment. It shows that while Claude can act like a "10x coder" by smashing through complex reverse-engineering tasks, it still lacks the seasoned intuition of a developer who has spent 20 years managing memory and system architecture. It’s a powerful tool for a deep dive into legacy systems, but you still need a human in the loop to make sure the whole thing doesn't crash the OS. How I actually reclaimed 15 hours a week using an AI workflow 22h ago /en/news/8554/ Stop wasting your credits on generic prompts that produce 22h ago /en/news/8552/ AI job hunters are flooding the market and making traditional 1d ago /en/news/8504/ Anthropic's 20x Claude usage limit is a total trap 2d ago /en/news/8381/ Local AI is hitting a massive wall that most people are ignoring 2d ago /en/news/8347/ Stop treating LLMs like they have souls or feelings 2d ago /en/news/8327/ Next Li Auto's new MEGA is sticking to its guns despite the haters → /en/news/8666/