Rust for agents

The claim: Rust is a good language for agents to write, and the reason is structural rather than stylistic. greg-brockman’s January 2026 short version is “rust is a perfect language for agents, given that if it compiles it’s ~correct” https://x.com/gdb/status/2007228511363444905. The ~ in his own quote is the honest part, and the pages below keep it.

The stronger version of the argument, from nicholas-matsakis’s ISSTA 2026 piece as relayed by 2026-10-23-youtube-lets-get-rusty-rust-perfect-language: a strong type system plus a borrow checker is a mechanism that checks the agent’s output at every step, and the check is mostly right. Feed-forward can then point the agent at more of it, since you can instruct an agent to use newtypes and the type-state pattern to make invalid states unrepresentable. It is the same move Ryan’s fleet conventions already make in prose: if skipping a pipeline step is a bug, make it a compile error.

The inversion the video gets right (3:26-5:43): every language’s reputation was priced for human readers. JavaScript’s ease of learning mattered when human attention was the bottleneck, and its loose types stayed survivable because senior humans absorbed the damage in review. With agents writing the code, both terms move. Ease of learning stops mattering to a model that is not tired, and the looseness becomes expensive, because the wrong programs it accepts are exactly the kind that compile, ship, and surprise. Rust’s learning curve, the cost that capped its adoption, is a cost mostly borne by agents now. See environment-and-constraints: the compiler is a deterministic feedback control, the strongest kind in the harness grid. verifiability-and-one-way-doors explains why agents make a machine answerable check so valuable: judgment is scarce, compute is cheap.

Evidence the industry is behaving as if true, all verified against primaries 2026-10-25: bun ported about 535,000 lines of Zig to Rust in days with Claude agents after anthropic acquired it https://bun.com/blog/bun-in-rust; Google DeepMind’s Gemini 4 Argon announcement leads its software-engineering pitch with agent-driven C/C++ to Rust migration across the company, up to 800K+ lines of the Fuchsia Zircon kernel https://9to5google.com/2026-09-30/gemini-4-argon-announcement/; and the rea tool’s Adobe reimplementation wave produced Rust apps https://akitaonrails.com/en/2026-10-13/ai-reverse-engineering-is-adobe-dead.

The counterweight is also in the record. The Zig creator called the Bun port “unreviewed slop” https://www.theregister.com/devops/2026-07-14/zig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop/5270743, and nineteen regressions surfaced post-merge even though the full test suite passed before it (all fixed, per the same post). Compilation guarantees the type-checked invariants hold and nothing more. The claim this page can defend is narrower than the title it is named after: Rust’s feedback controls are unusually dense, and dense feedback matters most when the writer does not learn. See slop-code-bench for what passing tests still hides.

Sources