Field noteNov 23, 20265 min read1 source

rust-anything v3.1.0 adds a one-command go loop and only enables a port when it is not slower

In one minute

rust-anything v3.1.0 adds go, a command that profiles a workload, asks an AI agent to port a selected hot-path function to Rust, then builds and checks the result before enabling it. For teams considering gradual rewrites, the important design choice is that behavioral equivalence and a performance gate are part of the activation path, not afterthoughts.

What happened

The v3.1.0 release of rust-anything introduces go as a one-command workflow for porting a hot path. The command runs a workload, profiles it, and selects the outermost exported function of a portable unit that takes arguments. Where the profile recommends batching, it can bridge the function with --batch; --function lets the user choose a different function. The generated bridge goes into rust/<function>-rs. The tool records generated test cases as well as calls made by the workload, writes TASK.md, and passes the task to an agent.

The agent can be Claude, Codex, or another command that reads a prompt on stdin. Users can set a maximum number of turns with --rounds; failing cases are sent back to the agent for further work. After the port is ready, rust-anything builds it, diffs behavior, runs its gate, and activates the unit only when every recorded case matches and the gate passes. Without --agent, go stops after preparing the task. A user can port the code separately, then run the command again; completed steps are retained.

The release describes a performance safeguard: go runs a benchmark after the gate and switches a unit on only when it is not slower as its callers invoke it. Otherwise it stops and reports the slowdown factor and where the speed issue lies: the batch class that should be called from a loop, or the caller that should be ported along with the function. The release also reports that a wasm port called once per item from a JavaScript loop measured 7.6 times slower than the JIT, even though go had switched it on. The project says the issue was found while running go --agent claude on a TypeScript fixture.

The release adds related workflow details. Before building a crate with batches, go runs refresh so an agent-written <Name>Index is used. Profiling now identifies the innermost loop variable for batches in nested loops. Wasm builds write a pkg/package.json marking the output as CommonJS, addressing a case where Node treated wasm-bindgen output as an ES module in a project marked type: module and the diff failed.

The existing enable and disable commands switch a TypeScript, JavaScript, or Python unit in place for every caller, using a marked block in original files. An environment variable can keep the original implementation active for a run, and enable refuses activation when recorded cases differ unless --force is used. The release also describes a shared Cargo build cache, reporting tools and MCP tools, and fixes to Python __all__ handling.

What the archive adds

New Runtime's earlier coverage on 2026-11-19 described rust-anything as a tool for staged application rewrites with behavior checks at each step (earlier New Runtime note). Version 3.1.0 is a new fact on that story: it adds an agent-driven hot-path loop and makes performance part of the activation decision, rather than simply restating the staged-porting premise.

Trend signal

This does not yet fit a pattern New Runtime tracks. The release nevertheless makes a concrete operational claim: recorded cases and caller-aware benchmarks are intended to determine whether a generated port is activated. That is a product design claim, not evidence that verification work disappears. Teams still need representative cases and meaningful workloads, and the release gives no aggregate results for how often the gates catch faulty or slower ports.

Why it matters

Porting a function to Rust can improve a workload, but a mechanically successful translation is not enough. It must preserve behavior in the actual call context, and the bridge itself can alter performance. rust-anything's workflow makes those concerns visible in the sequence: capture cases, generate and revise a port, compare behavior, benchmark it with callers, and only then enable it. The 7.6x slowdown example is a useful warning against judging a port by language choice or isolated function speed alone.

For teams, the practical value is the shape of the loop more than the promise of automatic rewriting. An agent can handle repeated implementation attempts against recorded failures, while the tool retains a way to keep the original implementation active. That can make a narrow, reversible experiment easier to evaluate than a broad rewrite. It does not establish that the tool will select the right hot path for every application, or that a test corpus captures every behavior that matters. The quality of the workload, cases, and gate remains an engineering responsibility.

Limits and uncertainty

The release gives one measured slowdown example, not a broad benchmark of completed ports, success rates, developer time saved, or performance outcomes across projects. It does not quantify how representative recorded cases need to be, how the gate is configured, or how often a port that passes the gate still fails in production. The 7.6x example also shows that a performance gate did not prevent every slower activation in that case; teams should validate the resulting behavior and measurement setup themselves. The release does not state pricing or adoption figures.

Skill to build now

Try the loop on one isolated hot-path function with a workload you already trust. Preserve representative inputs as recorded cases, inspect which function and batch boundary the profiler selects, and compare the benchmark with the real caller included. Keep the original implementation available while you test. If the benchmark points to the loop or caller as the problem, use that result to decide whether a broader unit should be ported instead of accepting a slower bridge.

Reader takeaway

The useful change in rust-anything v3.1.0 is not simply that an agent can write a Rust port. It is that the tool connects agent iteration to recorded behavior checks and a caller-aware performance decision before switching code on. Treat its measurements as a gate to inspect, not a substitute for choosing representative workloads and verifying the result.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/erkamyaman/rust-anything/releases/tag/v3.1.0
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicClaudeExplore the claude topic hub.
  2. 02topicCodexExplore the codex topic hub.
  3. 03archiveField NotesOpen the latest editorial analysis.
  4. 04sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract