---
title: "AI will probably rewrite all our software and that's great"
description: "AI will rewrite it all.. It will make it fast, efficient, and secure."
url: "https://michael.zazon.us/notes/ai-should-rewrite-all-our-software"
published: "2026-11-05T12:00:00-05:00"
kind: "take"
subject: "architecture"
tags: ["ai-coding","strategy","careers"]
---
I feel like we will all be seeing in the coming weeks and months that most of our human-made software was really slow, had many security vulnerabilities, and was under-spec'd, and incorrect. AI will rewrite it all.. It will make it fast, efficient, and secure. AI will even think about failure modes we couldn't wrap our heads around.

This rewrite is already happening at whole-company scale. In December 2025, Microsoft Distinguished Engineer Galen Hunt said his goal is "to eliminate every line of C and C++ from Microsoft by 2030" using AI and algorithms to rewrite the company's largest codebases. His north star: one engineer, one month, one million lines of code. [The Register covered it](https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/). Hunt later clarified that this is a research project, not a new Windows strategy. But even as a research project, it's notable that a large vendor considers a full language migration to be machine-doable.

Government research money is going after the same problem, but taking it a step further from translation to proof. DARPA's TRACTOR (Translating All C to Rust) program is funding a $5 million project called ForCLift, led by the University of Wisconsin-Madison and partner universities. [The project](https://www.cs.wisc.edu/2025/07/15/translating-legacy-code-for-a-safer-future) aims to do formally verified lifting of C into Rust. That's the "turn memory-unsafe foundations into robust ones" step, with a formal proof that the translated code behaves the same as the original.

Hardening is happening in public, too. Google DeepMind's [CodeMender](https://deepmind.google/blog/introducing-codemender-an-ai-agent-for-code-security/) system has already upstreamed 72 security fixes to open source projects at the time of its announcement, some in codebases up to 4.5 million lines. It can proactively rewrite code to eliminate entire classes of vulnerabilities, and every patch was reviewed by a human researcher before submission.. the agent proposed the fixes, but people decided which ones actually got shipped.

And some of the oldest software too.. COBOL still powers an estimated 95% of US ATM transactions. Anthropic published a post about [using Claude Code for COBOL modernization](https://claude.com/blog/how-ai-helps-break-cost-barrier-cobol-modernization), arguing that mapping dependencies and documenting undocumented workflows could bring modernization timelines from years to quarters. IBM objected in the same news cycle that decades of hardware/software integration couldn't be replicated by just moving the code. Both have a point, and the argument is about how much of the legacy system lives outside the source.

That doesn't mean the first pass of code an AI generates is good code. IOActive [tested 27 models and coding tools](https://ioactive.com/the-security-gap-in-ai-generated-code/) across nearly 20,000 generated samples and found average security performance was 59%, with nearly a third of samples fully exploitable. That's a security consultancy's own benchmark, not peer reviewed, but it does match the "many times" part of the claim. Rewrite doesn't mean "run it through once and get clean code", it means "generate and attack until you get something robust".

> [!warning] Generated code still has security gaps
> In IOActive's benchmark, no model achieved 100% secure output. Infrastructure code (Dockerfiles, Terraform, CI/CD) had the highest vulnerability rates.

As machines do more of the writing, the role of the people around them changes. Amazon published [an update on the software engineer role](https://www.aboutamazon.com/news/company-news/amazon-software-engineer-role-guideline-ai) in October 2026, saying "the outcomes that matter aren't changing, even if the inputs, tools, and techniques are changing faster than ever" and "we are in the era of the Renaissance Developer". That's a large employer saying in public that the role is being redefined around outcomes, whoever or whatever types the code.

The software engineer role is being redefined, and I think it's moving toward a technical product manager who oversees agentic software development factories. As an infrastructure or application architect, ideally with a software development background, this positions our field to be prime targets for filling these roles at senior levels. But it must be a shared responsibility with current software development engineers.

But even such a factory still depends on human-only inputs. Someone has to write the specification that defines what correct looks like (software that is under-specified is precisely what we're trying to replace here). Someone has to review the output and own the change control when the rewrite touches systems that run banks or hospitals. The review queue becomes the bottleneck (as I argue in [The SDLC isn't dead but the review queue might be](https://michael.zazon.us/notes/the-sdlc-isnt-dead-but-the-review-queue-might-be)), and these parts are where the architect's habits meet the developer's code knowledge. That's why [whether "built with AI" is an insult](https://michael.zazon.us/notes/is-built-with-ai-an-insult) matters less than who specified and reviewed the result.