---
id: 20261119-T0-01
title: "AI agent 三周改写 curl：185,000 行 C 代码转成 340,000 行 Rust"
title_en: "AI Agents Rewrote curl in Three Weeks: 185,000 Lines of C to 340,000 Lines of Rust"
url: https://ai.daily.yangsir.net/daily/20261119-T0-01
issue_date: 2026-11-19
publish_date: 2026-11-18T15:58:27.000Z
category: news
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Nov/18/daniel-stenberg/
---

# AI agent 三周改写 curl：185,000 行 C 代码转成 340,000 行 Rust

curl 作者 Daniel Stenberg 披露，AI agent 在三周多时间里把 185,000 行 C 代码转换成 340,000 行 Rust 代码，期间 curl 主项目合并了 300 多个 commit，修复了 200 多个 bug。这些 bugfix 大多不是 agent 直接产出的，而是转换过程中暴露出来的问题。这说明大规模代码迁移可以借 agent 加速，但产出仍需人工审核和合并。对维护大型 C 项目的团队来说，这是一条可参考的迁移路径。

## English Version

**AI Agents Rewrote curl in Three Weeks: 185,000 Lines of C to 340,000 Lines of Rust**

curl creator Daniel Stenberg revealed that AI agents converted 185,000 lines of C code into 340,000 lines of Rust over a little more than three weeks. During that period, the actual curl project merged over 300 commits and landed more than 200 bug fixes, most of which surfaced during the conversion rather than being directly produced by the agents. The takeaway: large-scale code migration can be accelerated with agents, but output still needs human review and merging. Teams maintaining large C projects now have a reference path for migration.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Nov/18/daniel-stenberg/)

**详情页**：https://ai.daily.yangsir.net/daily/20261119-T0-01

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*