fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.
Vamsi Tallapudi
Manager, Architect Technology at Cognizant
If your Python or Node app is slow, you probably don't have a slow app. You have one or two slow functions buried in an otherwise fine codebase. fast-anything is a CLI tool from EL4CTEO that profiles your running app, finds that handful of functions, and lets Claude Code (or Codex) rewrite just those as Rust, then proves the rewrite behaves identically before it ever touches your main branch.
The tagline on the GitHub repo says it best: "Don't rewrite it in Rust. Rewrite the 5% that's slow." That's the whole pitch, and it's a good one.
Full Rust rewrites are a trap. You've seen the blog posts: someone spends three months porting a Flask app to Rust, ships it, and gets a 4x speedup that cost a quarter of engineering time. Most of an app's runtime isn't CPU-bound logic, it's I/O, templating, routing, and glue code that Rust doesn't help with. Usually only a tiny slice of the code, the tight loops doing string distance math or JSON parsing or pixel math, is actually CPU-bound and worth the trouble.
fast-anything's bet is that you don't need to guess which slice that is. You profile it, you get a ranked list, and you port the top one or two entries. Everything else stays exactly as it was.
Run fast-anything scan -- python app.py (or your language's equivalent) and it attaches a profiler to your real app while it runs through whatever workload you point at it. The output is a ranked list of functions scored by execution time and portability, meaning it's not just "what's slowest," it's "what's slowest and also realistic to rewrite as a standalone Rust function without dragging in your whole dependency graph."
That second part matters more than it sounds. A function that calls into your ORM or touches global state is a bad porting candidate even if it's hot, because there's no clean boundary to cut along.
Once you pick a target, fast-anything port <id> records up to 500 real calls to that function, inputs and outputs both, then hands the function signature plus those recorded behaviors to your coding agent. Claude writes a standalone, single-function Rust crate that's supposed to reproduce the same behavior.
This is the part that's genuinely clever: the agent isn't translating syntax, it's pattern-matching against real recorded input/output pairs. Edge cases, weird encodings, that one NaN that shows up 1-in-10,000 calls, all of it gets baked into what the agent has to satisfy. Under the hood, the generated crate gets wired back into your app through PyO3 for Python or napi-rs for Node, so you call it like a normal function in your language. No subprocess, no socket, no serialization tax eating your speedup.
This is the step that actually makes the whole idea trustworthy, and I'd skip the tool entirely if it didn't exist. fast-anything verify release-builds the Rust crate and replays every recorded call against it, plus a batch of generated edge cases and derived mutations of the real inputs. Floats are checked within 1e-9, errors have to match where the original errors, and nothing gets enabled until every single case agrees.
One writeup I checked (a developer who tested it on a 700-name fuzzy-dedupe script) saw it verify across 34 cases: the one recorded call, 8 edge cases, and 25 derived mutations. That's a reasonable amount of coverage for a pure function, but it's still only as good as what it records. The project's own docs are honest about this: if a branch in your function never gets hit during recording, the port can be wrong on that branch and the verification loop has no way to notice. That's not a bug, it's just what "verify by replay" can and can't promise you.
The tool's own benchmark table is the headline number everyone's been sharing:
| Language | Speedup | Before → After |
|---|---|---|
| Python (fuzzy dedupe) | 116x | 4.91s → 42ms |
| PHP | 55x | 2.94s → 53ms |
| Go | 21x | — |
| TypeScript | 20x | 3.11s → 155ms |
| Java | 3x | — |
These are real, but they're function-level numbers, measuring the one function in isolation, not your whole app. An independent test on a near-identical Python dedupe script (10.06 seconds down to 129 milliseconds, a 78x speedup) landed below the advertised 116x, and the author chalked the gap up to machine variance and small implementation differences, fair enough. A separate critique dug into the demo itself and found the per-function number (110x) and the whole-app number (48x) diverging because of fixed costs around the function, Python interpreter startup, data generation, printing output, that no Rust port touches.
Here's my honest take: the 116x number is true and also the wrong number to plan around. What you'll feel as a user is the end-to-end number, and that one depends entirely on how much of your actual runtime the ported function owns. If that one function is 90% of your wall-clock time, you'll see something close to the headline figure. If it's 20%, you'll see a modest win and nothing more. Profile first, and look at the percentage, not just the raw time, before you decide a port is worth the ceremony.
There are two ways to wire this into Claude Code, and they're both one-time setup:
As a plugin:
/plugin marketplace add EL4CTEO/fast-anything
/plugin install fast-anything@fast-anything
/fast-anything:fast python app.py
As an MCP server:
claude mcp add fast-anything -- fast-anything mcp
This exposes eight tools directly to Claude: fast_scan, fast_port, fast_verify, fast_enable, fast_disable, fast_bench, fast_report, and fast_status. Claude can call these on its own when you ask it to profile and optimize something, instead of you running CLI commands by hand.
If you just want the whole pipeline in one shot without babysitting each step, there's a single command for that too:
fast-anything go --agent claude -- python app.py
That runs scan, port, verify, and (if everything checks out) enable, back to back.
Yes, and this is the detail that made me comfortable recommending this at all. The swap happens inside a single marked code block in your source file. fast-anything enable turns it on, fast-anything disable rips it back out byte-for-byte. Nothing about this is a one-way door. If the Rust port starts behaving weirdly in production three weeks from now, flipping it back to the original implementation is a one-line command, not a git archaeology project.
I'd use it, with guardrails. It launched around November 21, 2026 and was already at version 0.8.8 and several thousand GitHub stars within days, which tells you two things: the idea resonates, and the software is young. There's no 1.0 yet. The issue tracker already has reports of real gaps (no Android scan path as of 0.8.6, for instance), which is exactly what you'd expect from a project moving this fast.
Use it on a feature branch. Read the Rust crate Claude generates before you merge it, don't just trust the green checkmark from verify. And keep in mind that "verified" here means "matches on the calls we recorded," not "mathematically proven correct." For a pure, well-tested function with clear inputs and outputs, that's a solid bar. For something stateful or full of rare branches, I'd want a lot more than 500 recorded calls before I trusted it in production.
If you're already using Claude Code skills and plugins for other parts of your workflow, this slots in the same way. And if you want more context on why "rewrite it in Rust" has become such a loaded phrase this year, the TypeScript compiler's Rust port is the other big example worth reading about, along with what's changed in Rust 1.100 itself.
New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.
Ternary Bonsai 2.5 27B packs a 27B coding model into a 5.9 GB download. Here's how to run it locally, what hardware you need, and where the benchmarks don't hold up.
Ladybird's first public alpha (build 2026.47.7) is live for macOS and Linux. Here's how to install it and test your site in its from-scratch engine.
GLM-5.4 loops 28 of its 78 layers twice instead of adding parameters. Here's what Z.ai's architecture, vision support, and 50% bigger coding plan quota actually mean, with no API yet.
Comments