fast-anything first profiles Python, Node, Ruby, Java, Go, PHP, C / C++, C#, and R programs, ranking functions by execution time and portability; once selected, it records up to 500 real calls, generates a Rust package containing only that function along with a task description, and hands it off to Claude Code, Codex, or any agent that reads prompts from standard input to write the code. The verify step compares results line by line using the recorded calls and automatically supplemented edge-case inputs (NaN, empty inputs, non-ASCII text, etc.), swapping in the new version only if results match and each call is faster; setting FAST_ANYTHING_DISABLE=1 allows reverting to the original code at any time. The author claims that in the example programs, Python fuzzy deduplication dropped from 4.91 seconds to 42 milliseconds.
Why it matters No need to rewrite the entire system: first record the inputs and outputs of real calls, enable the Rust version only if it matches line by line and is indeed faster, and switch back to the original code at any time.
Star count 3141 (+1209 / 24h)
Reasons
- 1209 new stars in 24 hours, total stars 3141 (indicating attention only); MIT license, created on 21 11
- The README lists execution times before and after rewriting for 9 example programs, all reproducible in the examples directory; includes an MCP server (8 tools) and a Claude Code plugin
Usage
- Run npm i -g @el4cteo/fast-anything (or cargo install fast-anything), then after installing the Rust toolchain, execute fast-anything go --agent claude -- python app.py; for step-by-step execution, use scan, port, verify, enable, and bench in sequence
Risks
- Only rewrites top-level, deterministic functions with plain data parameters; code with object state or side effects must be extracted first; there is overhead in entering and exiting Rust, so very small functions will be rejected for enablement
- Rewriting is performed by an agent, so code quality depends on the model used; in the Java example in the README, JVM startup time still accounts for the majority of the duration