Coding Agents · [ 3 min read ]
AI agents ported curl to Rust in three weeks — and missed 200 bugfixes
Daniel Stenberg's tally: 185K lines of C became 340K of Rust while real curl merged 300+ commits, leaving the clones 200+ fixes behind.
Key findings
- AI agents converted 185,000 lines of curl's C code into 340,000 lines of Rust in a little over three weeks.
- During the same window, the real curl project merged over 300 commits, including a little over 200 bugfixes.
- None of the Rust rewrites contain those 200 bugfixes, plus a few vulnerability fixes.
- In the following month, curl shipped another 200 bugfixes and possibly more vulnerability fixes.
- Stenberg asked on November 17, 2026 whether the clones can keep up with upstream.

AI coding agents rewrote 185,000 lines of C into 340,000 lines of Rust in a little over three weeks, and curl's maintainer has counted exactly what that effort missed. Daniel Stenberg published the arithmetic on November 17, 2026, in a post titled "Actual curl rewrites in Rust," and the numbers cut against the ports.
During the same window the agents spent converting curl, the actual curl project merged over 300 commits. Stenberg wrote:
"During the time these agents converted 185,000 lines of C code into 340,000 lines of Rust code (I counted), we merged over 300 commits in the actual curl project. We actually improved curl during these a little more than three weeks."
That improvement was not cosmetic. The curl team landed "a little over 200 bugfixes" in that period — 200 bugfixes that none of the Rust rewrites contain, because they forked from a snapshot and stopped. The project also fixed a few vulnerabilities during the same stretch.
What does the divergence look like a month later?
The gap grows on a schedule. Stenberg continued:
"In another month we have done another 200 and maybe fixed a few more vulnerabilities. Will these clones keep up?"
Stack the two periods and the shape of the problem becomes plain:
- Weeks 1–3 (agent conversion window): 300+ commits merged, 200+ bugfixes shipped, several vulnerabilities fixed in real curl; none of these exist in the Rust ports.
- The following month: another 200 bugfixes landed, plus what Stenberg describes as possibly a few more vulnerability fixes.
- The ports: one-time translations of a codebase that has since moved twice.
So a Rust rewrite that looked current at conversion time now trails upstream by roughly 400 bugfixes, some of them security-relevant. A clone is not a fork with a maintenance plan; it is a photograph of a project that keeps running.
Why the line count itself matters
The conversion also inflated the codebase: 185,000 lines of C became 340,000 lines of Rust. That is nearly a doubling, and it means anyone adopting a port inherits a larger surface to audit, in a codebase with none of curl's accumulated fixes and no demonstrated pipeline for absorbing them.
For practitioners, the trade is straightforward. You gain Rust's memory-safety guarantees on the translated code. You lose every fix, hardening change, and vulnerability patch that landed upstream after the snapshot — and the evidence here says upstream moves at about 200 bugfixes a month.
The maintenance question the ports have not answered
Stenberg's closing question — "Will these clones keep up?" — is the whole review in five words. A one-shot agent rewrite demonstrates that translation at scale is possible; it does not demonstrate that the result can track a project with curl's fix velocity. Memory safety protects against a class of bugs, but the 400 fixes in question are the ordinary, continuous kind: real defects, found in production, patched by maintainers who show up every week.
Until a Rust port shows a mechanism for ingesting upstream fixes at that pace, the safe read is that the original remains the maintained artifact and the ports remain experiments.
A clone is only as good as the day it was forked.
daniel.haxx.se (Original)
More from James Calloway
Show full bio
Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.
24 articles