ClaudeMap

fast-anything

Profiles an app, has your coding agent port only the slow 5% of functions to Rust, proves the port matches on real recorded calls, and swaps it in — one command, fully reversible

SDKs & Toolingperformancerustprofilingmcpplugin

fast-anything is the targeted answer to rewrite-it-in-Rust: it profiles your app, ranks functions by time x portability, records up to 500 real calls to a function, has your coding agent (claude, codex, or any stdin-prompt command) port just that function into a one-function Rust crate, release-builds the port and replays every recorded call plus derived shrink cases (empty, tiny, random slices) — nothing is enabled until every case matches, floats within 1e-9, errors where the original errors. enable/disable swaps the Rust in or out through one marked block, removed byte for byte, and FAST_ANYTHING_DISABLE=1 always runs the original. bench times original vs Rust interleaved; report emits markdown plus an SVG card for your PR. Seven language families work out of the box: Python via PyO3 and Node via napi-rs, with Ruby, Java, Go, PHP, C and C++ all crossing one JSON-over-C bridge (through Fiddle, FFM, PHP's FFI extension, cgo or dlopen — the six C-bridge languages need no per-language headers or bindings). It also ships as a Claude Code plugin (/plugin marketplace add EL4CTEO/fast-anything), a built-in MCP server with 8 tools, and a plain skill for any agent.

What it does

  • scan profiles the app and ranks functions by time x portability; port records up to 500 real calls and generates a one-function Rust crate plus a TASK.md for the agent
  • verify release-builds the port and replays every recorded call plus shrink-derived cases; enable swaps the Rust in via one marked block, byte-for-byte reversible, with FAST_ANYTHING_DISABLE=1 as a runtime kill switch
  • bench times original vs Rust in interleaved runs; report emits markdown plus an SVG card for the PR; doctor checks Rust, runtimes and agents
  • One JSON-over-C bridge covers Python (PyO3), Node (napi-rs), and Ruby, Java, Go, PHP, C, C++ (Fiddle / FFM / PHP FFI / cgo / dlopen) — the six C-bridge languages need no per-language headers or bindings
  • Ships as a Claude Code plugin, a built-in MCP server (8 fast_* tools), and a plain agent skill; --agent accepts claude, codex, or any stdin-prompt command

When to use it

Right tool when a script or service has a few hot functions that dominate runtime — port exactly those to Rust with recorded-call proof, instead of rewriting the whole app or accepting the slow path.

Getting started

npm i -g @el4cteo/fast-anything      # or: cargo install fast-anything

fast-anything go --agent claude -- python app.py     # or: -- node app.ts / ruby app.rb / java App.java / mvn exec:java / gradle run / go run . / php app.php / clang -O2 main.c

Claude Code plugin:
/plugin marketplace add EL4CTEO/fast-anything
/plugin install fast-anything@fast-anything
/fast-anything:fast python app.py

MCP server:
claude mcp add fast-anything -- fast-anything mcp

Things to know

Ports only top-level, deterministic functions taking plain data — in Java and PHP that means static methods and functions, in Go plain functions, in C/C++ free functions and static methods; scan explains why anything else cannot move yet. The tool ports the outermost loop it can so the app crosses into Rust once, not per call — porting only the inner levenshtein gave 35x and 1.9x on the same workloads. Ports are compiled with your own Rust toolchain (rustup). The README's benchmark table is from an i5-10500 on Windows 11 (C/C++ on a 4-core GitHub Actions Linux runner) and is reproducible from examples/. MIT. 29 stars as of writing (2026-11-22).

Repository

EL4CTEO/fast-anything

Charted

Related on the map

  • The open Agent Skills standard — SKILL.md folders any agent can load, governed by the Agentic AI Foundation since 2026-10-22.

    • official
    • spec
    • agent-skills
    • standard
  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation