Blitzy logo
OverviewUse-casesSecurity
Company
DocsBlogVideos
Pricing
OverviewUse-casesSecurity
Company
DocsBlogVideos
Pricing

C to Rust in 3 Days: Blitzy Autonomously Rewrote dnsmasq

Mar 13, 2026 • Murph Vandervelde • 5 min read

C to Rust in 3 Days: Blitzy Autonomously Rewrote dnsmasq

119 Engineering Days. 86,000 Lines. Zero Errors. Here's How.

Let's start with what everyone's thinking: AI-generated contributions to open source are a disaster.

Over the past two years, AI copilots have made it trivially easy for anyone to generate a patch, open a pull request, and dump it on a maintainer's desk.

The problem is so significant that GitHub is actively considering a "kill switch" for pull requests because maintainers are drowning in AI-generated submissions. cURL has even cancelled their successful bug bounty program due to "AI slop".

The numbers back this up. CodeRabbit's State of AI vs Human Code Generation Report found that AI-generated PRs produce 1.7x more issues than human-authored code. Projects face those repercussions fast with critical issues already up 40% and major issues up 70%. Logic and correctness errors appeared more than twice as often.

The quality gap is stark.

What Makes Blitzy Different?

Blitzy optimizes for quality, not speed.

The platform dynamically creates and orchestrates 3,000+ specialized AI agents that produce end-to-end tested, production-ready code. The difference between Blitzy and existing agentic copilots is in what happens before touching a line of source code.

First, we start by developing a deep understanding of the codebase we are working on. Our agents ingest the entire repository: every file, every dependency, every line. They build a 300+ page technical specification for the developer to see the surface of what Blitzy has understood from the onboarding.

From there, Blitzy spins up agents that write, compile, test, and validate code against the contribution guidelines set in the project agent action plan. Every pull request passes a full QA validation pipeline, making the run equivalent to a production-grade engineering team.

The Blitzy Open Source Enhancement Initiative

Today, we are launching the Blitzy Open Source Enhancement Initiative. The program identifies high-impact community-driven projects burdened by significant technical debt and contributes free, substantive engineering work to address it with the Blitzy platform.

There is no greater calling than serving our country and ensuring our infrastructure is secure and performant. This is why our first project is from the Great Refactor, where we had Blitzy rewrite dnsmasq from C to Rust.

Why dnsmasq?

For those who are not familiar with the Great Refactor, in February 2024, the White House Office of the National Cyber Director published a report titled Back to the Building Blocks. The objective was a calling on the software industry to adopt memory-safe programming languages. CISA followed with its own guidance, going so far as to call development of new critical infrastructure software in C or C++ dangerous and significantly elevating risk to national security.

One such project, dnsmasq, is critical internet infrastructure containing:

  • Lightweight DNS forwarder
  • DHCP server
  • Network boot toolkit that runs on routers, embedded devices, and Linux servers worldwide

The C codebase carries the inherent risks of buffer overflows, use-after-free vulnerabilities, and data races in signal handlers.

Memory management is not a theoretical concern; the risks are the exact vulnerability classes that Rust's ownership system eliminates at compile time. The hard part remains in the sheer amount of engineering hours behind migration.

Rewriting tens of thousands of lines of network protocol code from C to Rust is enormously expensive for human teams. A project of this size would typically take a systems engineering team six to twelve months. The difficulty of creating a team with this level of expertise and specialties is why the work remains unfinished.

Blitzy acknowledges the challenge and chose the project for this very reason.

Deep Codebase Understanding: Tech Spec

Before writing a single line of code, Blitzy ingested and analyzed the entire dnsmasq C codebase and created a detailed technical specification.

The analysis identified gaps that would have tripped up a less thorough approach. The discovered rules included: error handling that relied entirely on return codes and the global errno variable rather than explicit error types, security patterns that needed modernization, and areas where documentation was sparse enough that the code was the only source of truth.

What Blitzy Built

See the pull request and project guide that recaps the work. Here are the numbers:

  • Executed 950 engineering hours (119 work days) in 3 days by parallelizing development
  • 86,000+ lines of production Rust code across 88 source files, written autonomously
    • A 6.1MB optimized release binary with full functional parity: DNS forwarding and caching, DHCPv4/v6 with lease management, DNSSEC validation, TFTP, Router Advertisement, D-Bus and systemd integration
  • 592 tests (485 unit and 107 integration) with a 100% pass rate and zero compilation errors
  • All 350 configuration directives are backward compatible, making it a drop-in replacement

Performance Improvements

Beyond the sheer volume of high quality code, the real impact is in the technical details. Consider memory management. In the C version, every buffer allocation is a potential vulnerability. Error handling moved from C's silently-ignorable return codes to Rust's Result<T, E> type, where the compiler itself refuses to let you forget to handle an error.

The net effect: the security vulnerability classes that the White House is warning about, the ones that account for 70% of CVEs in systems software, are gone at compile time.

Not mitigated. Not reduced. Gone.

Remaining Work

All code for the Rust rewrite of dnsmasq is written, compiles, and passes initial tests. Blitzy completed 90% of the project, with the remaining 10% focused on production readiness and validation. The run included performance benchmarking against the original C version, real-world integration testing with production configurations, a comprehensive security audit, and load/stress testing. What remains is a need to create deployment guides, operational documentation, and set up monitoring.

The bottom line is that all code is complete, and what's left is validating that it performs, scales, and survives in a production environment.

Blitzy, and we, have tested this across 592 different tests, but not for every edge case. If you find any gaps, thank you for helping improve this project. Please report the gaps to [email protected] and we can talk about next steps and platform usage, with more information found on our dev docs.

What's Next

After 950 engineering hours of autonomous work on this refactor, what is next for Blitzy?

The project is an example of what responsible open source contributions from AI should look like: full codebase understanding, production-quality output, and minimal effort for the maintainers.

dnsmasq was just the first open source project of many. Blitzy plans to push the boundaries of autonomous software development with each post while solving some of the open-source community's largest open items.

To stay current on Blitzy's Open Source Initiative, follow us on LinkedIn.

More from the blog

View all
How Blitzy Optimized Our GTM Team

How Blitzy Optimized Our GTM Team

Jun 04, 2026 • Carly Levinsohn • 3 min read

A Quick Blitzy Chat:  3 Codebases’ Takes on Prompting

A Quick Blitzy Chat: 3 Codebases’ Takes on Prompting

May 28, 2026 • Carly Levinsohn • 7 min read

Frequently asked questions

What is Blitzy?

toggle button

Blitzy enables development teams to transform six-month software projects into six-day turnarounds using Blitzy OS, an agentic platform that enables thousands of AI Agents to 'think' and cooperate for hours to bulk build software with precision. The platform builds everything AI can deliver in a precise manner, around 80% of any roadmap or new product, supplemented with a human engineering guide to complete the remaining 20% needed for production. With over 27 patents and counting, Blitzy is actively hiring PhDs and senior developers in Cambridge, MA who have a passion for building AI that leverages 'System 2 Thinking' to solve problems at inference.

Who is Blitzy for?

toggle button

Enterprises that aim to dramatically accelerate their software development velocity, development agencies with enterprise clients, development teams with complex existing products, and individuals looking to accelerate their own velocity on complex builds.

How does Blitzy's technology work?

toggle button

Our patent-pending code ingestion framework maps a curated selection of robust, reliable, and secure open source software libraries that we track by version and update frequently. Combined with our proprietary code generation technology that specializes on enforcing enterprise-class software policies, Blitzy far exceeds the utility of typical chatbots and co-pilots in creating production-ready software at scale.

Is Blitzy a coding co-pilot?

toggle button

Nope. Blitzy surpasses traditional co-pilots with its ability to autonomously generate nearly-complete code repositories, not just snippets. It features a daily-refreshed knowledge base, avoiding the pitfalls of outdated information. Blitzy's proprietary codebase representation system enables deep understanding of generated code, offering highly contextual and relevant suggestions for your entire repository.

What's my role in Blitzy's development process?

toggle button

Your team is responsible for bringing the requirements, and as an approver during the technical specification stage. We ask you to edit/approve the Technical Specification. The document is editable, so you can edit and approve to get exactly what you had in mind.

How does Blitzy decide which tasks to delegate to human developers?

toggle button

Blitzy's multi-agent system is meticulously and rigorously trained to know what it can accomplish, and what needs to be left for the human engineers. This ensures you only receive quality code and have a clear picture of remaining tasks.

Does Blitzy do more than just autonomous code generation?

toggle button

Yes. Blitzy is a comprehensive platform that provides end-to-end development assistance. We support the entire development lifecycle by taking descriptive inputs and generating software requirements documents, technical design, code structure, and generative code within repos for your product.

Is this high quality and secure?

toggle button

Quality and security matter deeply to us — and they were our biggest frustration with the copilots already on the market. That frustration is what led us to build something different: a system designed to meet enterprise standards from the start. Every piece of work passes through multiple QA agents that review each other's output before any code reaches you, so what you receive is held to a consistent quality bar rather than the variable output typical of single-pass code generation. We deliver production-grade code repositories. As with any code entering your environment — written by humans or AI — your team should still run its own QA, QC, and security testing before deployment. We build to a high standard and give your reviewers a strong starting point; final validation stays with the team that owns the production environment.

What is the typical cost of your solution?

toggle button

Blitzy uses a two-phase pricing model: evaluation followed by deployment. This structure lets enterprises validate ROI at their preferred scale before committing to organization-wide implementation. The evaluation phase provides three options. Reverse Engineer ($0) offers an initial assessment with complete codebase reverse engineering and understanding up to 100K lines of code; Proof of Concept ($50K for a 2-month term), where Blitzy delivers a guided POC to demonstrate value; or Structured Pilot ($250K for a 6-month term), which fully deploys Blitzy in your environment with 5M lines onboarding and 1.25M lines generation to prove production readiness. Following successful evaluation, organizations choose between three deployment paths. Commercial ($500K typical investment per year) adopts Blitzy on one team to accelerate a defined initiative: the first 20M lines onboarded are included, with additional onboarding at $0.10 per line and generation at $0.20 per line starting at 2.5M lines, plus dedicated infrastructure and SAML-SSO. Enterprise ($5M typical investment per year) rolls Blitzy out across your engineering organization, with onboarding billed at $0.10 per line across the full codebase — a typical engagement onboards 50M lines — and generation at $0.20 per line as needed, adding a Dedicated AI Solutions Consultant, 2 Forward Deployed Engineers, org-wide onboarding and certification, and priority support. Transformation ($50M typical investment per year) supports your largest codebases, with a typical engagement onboarding 500M lines at the same per-line rates, custom deployment, and embedded teams including a Field CTO, a Dedicated AI Solutions Consultant, 6 Forward Deployed Engineers, and 2 Forward Deployed Designers for complete digital transformation. All tiers maintain SOC 2 Type II compliance, ISO 27001 certification, and guarantee no training on your code. Pricing follows a transparent two-rate model: $0.10 per line onboarded for reverse engineering and $0.20 per line generated for forward engineering. Because reverse engineering also produces complete technical documentation of your codebase, onboarding-only engagements are fully supported, and in every tier costs align directly with the value delivered.

After submitting my prompt, Blitzy added functionality in my tech spec that I did not expect. What do I do?

toggle button

The system defaults to taking advantage of all technology upgrades when modernizing or upgrading to the latest technology stack. For example, if you specify an upgrade to Java 21, the system will by default implement virtual threads, as it's generally seen as a superior technical approach. If you do not want this, you must simply tell the system to 'make as few changes as possible to achieve the desired request'. Being as specific as possible about what functionality is (and is not) desired helps yield results that will align with expectations.

What do Blitzy agents rely on as a source of truth to represent my existing codebase?

toggle button

Blitzy agents rely on the actual source code of your existing codebase—not the Tech Spec documentation—when performing refactors or extending functionality. However, an accurate Tech Spec significantly aids the system's efficiency in querying the underlying representation of the code. Therefore, investing time to ensure the Tech Spec reflects the core features of the application will yield expectation-aligned results and will save time with last-mile development.

Can Blitzy work with existing products and code bases?

toggle button

Yes! Blitzy excels at working with existing codebases, using them as a foundation to ensure consistent, high-quality development. The platform enables you to add new features to existing products, generate comprehensive documentation, and tackle technical debt by upgrading legacy systems to state-of-the-art technologies or refactoring complex codebases. Our platform deploys dedicated AI agents that map and understand your codebase before generation, ensuring intelligent, contextualized development that aligns with your existing patterns and standards.

What programming languages does Blitzy support?

toggle button

Blitzy's AI platform works with all programming languages.

How should I structure my prompts for Blitzy?

toggle button

Structure and organization are crucial when prompting Blitzy. The most effective prompts follow our prompting template with clear sections for WHY (vision & purpose), WHAT (core requirements), and HOW (technical details, user experience & implementation priorities). Each section should be detailed but concise, focusing on essential information while providing relevant context. Including structured frameworks and concrete examples - like data models, user stories, or feature templates - helps Blitzy deliver more precise and purposeful solutions.

What information does Blitzy need to compile and run my code?

toggle button

During code generation, Blitzy compiles your codebase and performs runtime validation to ensure the generated code works correctly. To enable this, we require: (1) Internal dependencies - any private packages, libraries, or binaries not publicly available that your code needs to build and run, (2) Environment variables and secrets - API keys, credentials, and configuration values required for compilation and runtime (shared securely through our encrypted UI, never exposed to AI agents), and (3) Build instructions - the specific steps or scripts needed to compile your code, typically found in your README or setup documentation. This information allows Blitzy to replicate your development environment and verify that all generated code functions properly before delivery.

How can I exclude certain files or folders from Blitzy's code generation?

toggle button

Create a .blitzyignore file in your repository's root directory to specify which files or paths Blitzy should exclude during tech-spec generation and code generation. This works similarly to .gitignore - simply list the file patterns, directories, or specific files you want Blitzy to skip, using standard gitignore syntax like *.log, /build/, or config/secrets.json. To ensure Blitzy respects these exclusions, mention in both your codebase context prompt and target state prompt that Blitzy should reference the .blitzyignore file and exclude those paths from processing.

Can I cancel my project/job (code gen) once in progress?

toggle button

At this time, jobs are not cancelable. Once you submit, it consumes the assigned quota.

Build enterprise software in days, not months.

Start buildingTalk to an expert
Blitzy

Blitzy

One Kendall Square,

Cambridge,

MA 02139

© 2026 Blitzy. All rights reserved

Product

  • Overview
  • Use-cases
  • Security
  • Pricing

Company

  • About us
  • Careers

Support

  • Help
  • Service status
  • Trust center

Resources

  • Docs
  • Blog
  • Videos

Social

  • YouTube
  • LinkedIn

Legal

  • Terms of use
  • Privacy policy