EL4CTEO/fast-anything is a new open-source CLI that argues against rewriting whole apps in Rust. It finds the few slow functions in a Python, Node, Ruby, Java or similar app, has your coding agent port only those to Rust, and enables each port only after it matches real calls recorded from the original. The repository picked up about 1,900 GitHub stars within two days of appearing on the trending list, and it is released under the MIT license.
The README's own headline is blunt: "Don't rewrite it in Rust. Rewrite the 5% that's slow." Its published table shows 116x on a Python fuzzy-dedupe demo and 3x at the low end for Java, where JVM startup dominates. Those are the maintainer's numbers, not independent tests. This post explains how the tool works, how to try it, what the results do and do not show, and where it sits next to similar tools we have covered, such as rust-anything.
TL;DR: what readers ask first
| Question | Short answer |
|---|---|
| What does it do? | Profiles your app, ports hot functions to Rust with your agent, proves parity on recorded calls, swaps them in |
| Cost? | Free, MIT license. You pay for your own coding agent usage |
| Install | npm i -g @el4cteo/fast-anything or cargo install fast-anything |
| Needs Rust? | Yes. Ports compile with your local Rust toolchain via rustup |
| Which agents? | claude, codex, or any command that reads a prompt on stdin |
| Reversible? | Yes. One marked block, removed byte for byte, or FAST_ANYTHING_DISABLE=1 |
| Biggest published gain | 116x on a Python fuzzy dedupe (4.91s down to 42ms) |
| Biggest caveat | Results come from the README, mostly one kind of workload |
What fast-anything actually does
The tool is built around one loop. You point it at a command that runs your app, and it works through these steps, each of which is also a subcommand.
| Command | What it does |
|---|---|
scan -- <cmd> | Profiles the app and ranks functions by time spent times how portable they are |
port [id] | Records up to 500 real calls, then creates a one-function Rust crate and a TASK.md for your agent |
verify | Release-builds the port and replays every recorded call |
enable / disable | Swaps the Rust in or out |
bench | Times the whole app, original against Rust, with interleaved runs |
report | Writes a markdown report and an SVG card for your pull request |
doctor | Checks Rust, your runtimes and your agents |
The one-command version is fast-anything go --agent claude -- python app.py. The same pattern works with node app.ts, bun app.ts, deno run -A app.ts, ruby app.rb, java App.java, mvn exec:java, gradle run, go run ., php app.php or clang -O2 main.c.
The --agent flag accepts claude, codex or any command that reads a prompt on stdin. Without it, you hand the generated TASK.md to whatever assistant you already use. That design keeps the tool agent-neutral. It does not write Rust itself. The model you choose does, and the tool supplies the profile, the recorded cases and the checks.
If you are new to how agents get packaged for this kind of workflow, our guides to Agent Skills and the Model Context Protocol explain the plumbing behind the plugin, the skill and the MCP server that fast-anything ships.
Why port 5% instead of rewriting everything?
The README gives three reasons, and each one is a practical cost.
- Compile time. Each port is a one-function crate, so builds take seconds rather than minutes.
- Disk and cache. Every port shares one
.fast/targetdirectory. You can delete it whenever you like. - Risk. Your original code stays in place. Rust is opt-in per function and checked against real behavior.
The underlying argument is an old one from profiling: a small share of functions usually holds most of the runtime. A full rewrite pays for the 95% that was never slow. This is also the logic behind targeted migrations like AWS Kiro's PHP-to-Java parity engine, which treats behavior match as the gate instead of line-by-line translation.
A green lens enlarges one narrow section of a pipe, illustrating profiling before a targeted Rust port
How does it prove the Rust port is correct?
This is the most interesting part of the project, and the README is specific about it. It calls the approach "Proof, not vibes."
The tool records up to 500 real calls to the chosen function from a real run. Your agent writes the Rust port. Then verify replays all recorded calls against it. The README includes one example of why this matters: a port looked right but compared bytes instead of characters. 148 of 500 real calls caught it.
On top of the recorded calls, fast-anything derives extra cases and lets the original function answer them:
- Edge cases such as NaN, positive and negative infinity, negative zero, zero, plus and minus one, non-ASCII text, empty inputs and inputs up to 16 times bigger.
- Shrunk inputs, meaning tiny and random slices of recorded ones.
Nothing is enabled until every case matches. Floats must agree within 1e-9. Errors must happen where the original errors. A port that is correct but slower per call than the original is not enabled either, because the cost of crossing into Rust can exceed the work saved.
This is replay testing, not formal proof. Recorded calls only cover what your run actually exercised. A branch your sample never hit stays unchecked, apart from the derived edge cases. That is a real limit, and the practical answer is to record from a representative run and keep your normal test suite.
Two pipes joined through a green adapter, illustrating fast-anything language bridges
The published results, read carefully
The README lists real runs on an i5-10500 with Windows 11. The C and C++ rows ran on a 4-core GitHub Actions Linux runner. You can reproduce them from the examples/ folder.
| App | Before | After | Gain |
|---|---|---|---|
| Python fuzzy dedupe (700 names) | 4.91s | 42ms | 116x |
| TypeScript fuzzy dedupe (2,000 names) | 3.11s | 155ms | 20x |
| PHP fuzzy dedupe (600 names) | 2.94s | 53ms | 55x |
| Go fuzzy dedupe (3,000 names) | 3.02s | 144ms | 21x |
| Ruby fuzzy dedupe (400 names) | 3.13s | 228ms | 14x |
| C# fuzzy dedupe (4,000 names) | 4.03s | 312ms | 13x |
| Java fuzzy dedupe (4,000 names) | 3.50s | 1.18s | 3x (11x on the function) |
| C mandelbrot (8 zoom levels) | 431ms | 127ms | 3.4x |
| C++ fuzzy dedupe (6,000 names) | 3.02s | 1.09s | 2.7x |
Three things stand out.
First, the workload is the same in most rows. Fuzzy name deduplication is a tight, CPU-bound string loop. That is close to the best case for moving work to Rust. A web app that waits on a database or network will not see 116x, because the time is not in your functions.
Second, the tool ports the outer loop, not the inner helper. The README says it ports "the outermost loop it can, not the tiny function called inside it," so the app crosses into Rust once instead of millions of times. Porting only the inner levenshtein function gave 35x in Python and 1.9x in the other case it mentions. Where the boundary sits matters more than the language.
Third, the Java row is honest about startup. The whole app improved 3x because JVM startup is a fixed cost, while the ported function itself improved 11x.
Treat the table as a demonstration of the method, and run bench on your own code before you believe any number.
Supported languages and bridges
| Language | Binding | Notes from the README |
|---|---|---|
| Python 3.10+ | PyO3 | Module-level functions and static methods. Dataclasses, NamedTuples and numeric NumPy arrays count as plain data |
| JavaScript and TypeScript | napi-rs | Node 22+, Bun and Deno 2+ |
| Ruby 3.3+ | C ABI with JSON, through Fiddle | No extra tools needed |
| Java 22+, Kotlin on the JVM | C bridge through the FFM API | Maven, Gradle and single-file runs |
| Go 1.22+ | C bridge, with cgo | Plain functions |
| PHP 8.1+ | C bridge through the FFI extension | Needs extension=ffi |
| C and C++ | C bridge | gcc, clang or Intel oneAPI compilers |
| C# on .NET 8+ | C bridge through NativeLibrary | Profiled with EventPipe |
The tool ports top-level, deterministic functions that take plain data such as numbers, strings, lists, dicts and typed arrays. If a function does not qualify, scan tells you why it cannot move yet. That means functions that touch files, sockets, global state or random values are poor candidates until you split out a pure core.
How to try it in about ten minutes
- Install Rust with rustup and confirm
cargo --versionworks. - Install the tool with
npm i -g @el4cteo/fast-anything, orcargo install fast-anything. The npm package page lists the same README. - Run
fast-anything doctorto check Rust, runtimes and agents. - Use a script you know is slow and CPU-bound. Run
fast-anything scan -- python app.pyand read the ranking. - Run
fast-anything go --agent claude -- python app.py, or go step by step withport,verify,enableandbench. - Run
fast-anything reportand attach the markdown and SVG card to your pull request. - Keep your normal tests. Run them with the port enabled and again with
FAST_ANYTHING_DISABLE=1.
For Claude Code, the README gives two routes. The plugin route is /plugin marketplace add EL4CTEO/fast-anything, then /plugin install fast-anything@fast-anything, then /fast-anything:fast python app.py. The MCP route is claude mcp add fast-anything -- fast-anything mcp. The built-in MCP server exposes 8 tools: fast_scan, fast_port, fast_verify, fast_enable, fast_disable, fast_bench, fast_report and fast_status. It also works from Codex and Cursor. If you are still learning the slash commands, see our Claude Code commands reference.
A tower with a green beacon linked to small boxes, illustrating fast-anything MCP tools
What to check before you trust it
- It is new. The repository was created days ago and shows 59 commits. Expect rough edges and read the open issues before you adopt it.
- Pin and review the Rust. The agent writes the code. A parity check does not catch performance traps,
unsafeblocks or surprising dependencies, so read the generated crate like any pull request. - Check the build chain. Ports are native code that your machine compiles. That adds a toolchain to CI and to every developer machine. Plan for it.
- Watch the data boundary. Crossing into Rust has a cost. The tool measures this and refuses slower ports, but only on the recorded inputs.
- Recorded calls may contain real data. The tool saves up to 500 real calls from your run. If your function handles personal or secret values, review where
.faststores them and keep that folder out of version control. - Agent cost and trust. Your coding agent reads the
TASK.mdand your source. Use the same data rules you use for any agent session.
How it compares with similar tools
fast-anything is not alone. rust-anything uses a similar record, diff and gate loop with shadow mode. The difference is mostly packaging: fast-anything bundles a profiler-driven ranking, a single go command, a report card and a plugin. Another agent-skill tool we covered, ffmpeg-skill, shows the same trend: small tools that hand a narrow, checkable job to your coding agent, then verify the result with a deterministic step. The pattern is worth learning even if you never use Rust.
The bigger idea is that agents are good at translation and poor at knowing whether the translation is right. Tools that pair the agent with recorded ground truth turn a risky rewrite into a series of small, reversible steps.
Bottom line
Use fast-anything when you have a measurable CPU-bound hot spot in a dynamic language and a function that takes plain data. Skip it when your time goes to I/O, or when the slow code mixes in global state. Start with scan, read the ranking, and port one function. Compare bench output with your own expectations before you merge anything.
Repository details, star counts and benchmark figures come from the project README on November 23, 2026 and may change.
Related reading
- rust-anything: incremental Rust rewrites with recorded behavior parity
- AWS Kiro PHP-to-Java migration engine and parity harness
- What are Agent Skills? A complete guide
- What is MCP? The Model Context Protocol guide
- Claude Code commands: complete reference
- ffmpeg-skill: local video editing MCP for coding agents
- Official: fast-anything on GitHub and on npm
