fast-anything
Don't rewrite it in Rust. Rewrite the 5% that's slow: profile Python, Node or Ruby apps, port the hot functions with your coding agent, prove they behave the same.
Install / Use
claude mcp add EL4CTEO -- npx -y github:EL4CTEO/fast-anythingIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of fast-anything
fast-anything scores 91/100 on our quality scale, 946th of 4,715 Development & Engineering skills we index (top 21%).
Its MCP Server is 7.8 KB long, well organised into 8 sections with 2 code examples: a thorough specification that gives an agent plenty to work with.
With 2,852 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so fast-anything is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
fast-anything compared with similar skills
All 4 of these similar skills score higher than fast-anything; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| fast-anything (this skill)by EL4CTEO | 91 | 2.9k | today | MCP Server |
| taste-skillby Leonxlnx | 100 | 120.4k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.1k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 88.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install fast-anything?
- Run
claude mcp add EL4CTEO -- npx -y github:EL4CTEO/fast-anything. The install tabs above show the steps for each supported agent. - Which AI agents does fast-anything work with?
- It is written for Claude Code, Claude Desktop and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is fast-anything safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is fast-anything still maintained?
- The repository was last updated today, so fast-anything is actively maintained.
Skill content
View source on GitHubRewriting a whole app in Rust costs months, minute-long compiles and gigabytes of target/. Most of the runtime sits in a few functions anyway.
fast-anything finds those functions, has your coding agent port only them to Rust, proves the port gives the same results on real recorded calls, and swaps it in. One command, fully reversible.
<p align="center"><img src="https://raw.githubusercontent.com/EL4CTEO/fast-anything/main/docs/assets/demo.gif" alt="fast-anything go --agent claude -- python app.py" width="820"></p>Install
npm i -g @el4cteo/fast-anything # or: cargo install fast-anything
Ports are compiled with your Rust toolchain (rustup).
Use
fast-anything go --agent claude -- python app.py # or: -- 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 / clang -O2 main.c / Rscript app.R
Or step by step:
| command | what it does |
|---|---|
| scan -- <cmd> | profiles the app, ranks functions by time Γ how portable they are |
| port [id] | records up to 500 real calls, creates a one-function Rust crate + TASK.md |
| verify | release-builds the port and replays every recorded call |
| enable / disable | swaps the Rust in or out (one marked block, removed byte for byte) |
| bench | times the whole app, original vs Rust, interleaved runs |
| report | markdown + SVG card for your PR |
| doctor | checks Rust, your runtimes and your agents |
--agent takes claude, codex, or any command that reads a prompt on stdin. Without it, hand TASK.md to whatever you use.
Proof, not vibes
<p align="center"><img src="https://raw.githubusercontent.com/EL4CTEO/fast-anything/main/docs/assets/verify.gif" alt="verify catches a wrong port" width="820"></p>That 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 answer them: edge cases (NaN, Β±infinity, -0.0, zero and Β±1, non-ASCII text, empty and up to 16Γ bigger inputs) and shrunk inputs (tiny and random slices). Nothing is enabled until every case matches: same values (floats within 1e-9), errors where the original errors. A port that is right but slower per call than the original (calling into Rust costs more than the work saved) isn't enabled either. FAST_ANYTHING_DISABLE=1 runs the original any time.
Results
Real runs on an i5-10500, Windows 11 (C and C++: a 4-core GitHub Actions Linux runner). Reproduce them from examples/.
| app | before | after | |---|---|---| | Python fuzzy dedupe (700 names) | 4.91s | 42ms, 116Γ | | TypeScript fuzzy dedupe (2,000 names) | 3.11s | 155ms, 20Γ | | PHP fuzzy dedupe (600 names) | 2.94s | 53ms, 55Γ | | Go fuzzy dedupe (3,000 names) | 3.02s | 144ms, 21Γ | | Ruby fuzzy dedupe (400 names) | 3.13s | 228ms, 14Γ | | C# fuzzy dedupe (4,000 names) | 4.03s | 312ms, 13Γ | | Java fuzzy dedupe (4,000 names) | 3.50s | 1.18s, 3Γ (11Γ on the function; the rest is JVM startup) | | C mandelbrot (8 zoom levels) | 431ms | 127ms, 3.4Γ | | C++ fuzzy dedupe (6,000 names) | 3.02s | 1.09s, 2.7Γ |
fast-anything 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 gave 35Γ and 1.9Γ.
Why not rewrite it all?
- Compile time: each port is a one-function crate. Seconds, not minutes.
- Cache: every port shares one
.fast/target. Delete it whenever you like. - Risk: your code stays as it is. Rust is opt-in per function, checked against real behavior.
Agents
- Claude Code plugin:
/plugin marketplace add EL4CTEO/fast-anything, then/plugin install fast-anything@fast-anythingand/fast-anything:fast python app.py - MCP server (Claude Code, Codex, Cursorβ¦), built into the binary:
claude mcp add fast-anything -- fast-anything mcp. 8 tools:fast_scan,fast_port,fast_verify,fast_enable,fast_disable,fast_bench,fast_report,fast_status. - Skill:
skills/fast-anythingteaches any agent the loop.
Languages
| language | binding | status |
|---|---|---|
| Python 3.10+ | PyO3 | β
|
| JavaScript / TypeScript (Node 22+, Bun, Deno 2+: bun app.ts, deno run -A app.ts) | napi-rs | β
|
| Ruby 3.3+ | C ABI + JSON, through Ruby's built-in Fiddle | β
|
| Java 22+ (java App.java, Maven, Gradle) | the same C bridge, through the FFM API | β
|
| Kotlin/JVM (Gradle, src/main/kotlin, JDK 22+) | the Java bridge; top-level functions, object and companion members, extension functions | β
|
| Go 1.22+ (go run .) | the same C bridge, through the Windows loader or dlopen (cgo) | β
|
| PHP 8.1+ (php app.php) | the same C bridge, through PHP's FFI extension (extension=ffi) | β
|
| C and C++ (gcc, clang or Intel oneAPI icx/icpx: clang -O2 main.c lib.c) | the same C bridge, through LoadLibrary or dlopen | β
|
| C# / .NET 8+ (dotnet run -c Release) | the same C bridge, through NativeLibrary; profiled with EventPipe, nothing to install | β
|
| R 4.0+ (Rscript app.R) | the same C bridge, through base R's .C(); profiled with Rprof, no packages or R headers needed | β
|
It ports top-level, deterministic functions that take plain data (numbers, strings, lists, dicts, typed arraysβ¦), including ones in your entry script when its main code sits under if __name__ == "__main__": (or if __FILE__ == $0, or if (import.meta.main) / if (require.main === module)). In Python that means module-level functions and @staticmethods (dataclasses, NamedTuples and numeric NumPy arrays count as plain data), in Java, C# and PHP static methods (and PHP functions), in Go plain functions, in C and C++ free functions and static methods. scan says why anything else can't move yet.
With Intel oneAPI on Windows, run fast-anything from a shell where setvars.bat ran (it sets up the linker). SYCL kernels run on the device and aren't ported; with -fsycl, only host functions are profiled and ported.
Ruby, Java, Go, PHP, C, C++, C# and R need no headers, bindings or extra tools: the port is a plain Rust library with one C entry point taking and returning JSON, and fast-anything replays the recorded calls against it directly. Any language that can call C can use that bridge.
License
MIT
Related Skills
taste-skill
120.4kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
hyperframes
88.6kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.3kπ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
