Skip to content
Agents tracked: 504 Releases (7d): 733 Agent status: 2 with issuesSince last limit reset: Claude 12d · Codex 10d For AI agents: Markdown Updated Nov 23, 2026

rust-anything: rewrite an app in Rust, checked step by step

erkamyaman/rust-anything

Your AI coding assistant moves your app, or only its slow part, to the Rust language one piece at a time. A separate free tool first records what your current app does. Every piece the assistant rewrites is then checked against that recording, and it counts as done only when all checks pass.

Pack description by its author: “Your AI coding assistant moves your app, or only its slow part, to the Rust language one piece at a time. A separate free tool first records what your current app does. Every piece the assistant rewrites is then checked against that recording, and it counts as done only when all checks pass.”

Software engineeringGives your assistant new abilities with scriptsCommands you run when needed

GitHub

Checked against the pack's files at commit d964bdc, on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error

Gives your assistant new abilities with scriptsCommands you run when needed

Good for you if

  • You want an app or a slow command rewritten in Rust and want proof it still behaves the same
  • Your code is in TypeScript or JavaScript, Python, C, Go, Ruby or Java
  • You want a plan of what to move first before any code changes
  • You use Claude Code, Codex, Cursor, Gemini CLI or OpenCode

Probably not for you if

  • You need a PHP or C# app ported piece by piece: today those get recording, replay and a Rust front door only
  • You want the tool itself to translate code: the assistant (or you) writes the Rust

What you'll notice

  • A plan first: which pieces to move first, which stay, what blocks them; the assistant waits for your approval
  • A new rust/ folder in your project with one small Rust project per moved piece
  • Reports with match counts and speed against the original, and a stop for your go-ahead after each piece
  • For a whole app, a round of numbered questions with a suggested answer for each

What you need

  • Claude Code, Codex, Cursor, Gemini CLI, OpenCode
  • Free, MIT license
  • Install the rust-anything command line tool (cargo or npm), then run rust-anything setup
  • Needs the Rust toolchain to build ports, and the runtime of your app's language (Node, Python, Go, Ruby, a JDK or a C compiler)
Words on this page
Skill
A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
Plugin
A package your assistant installs that can bring skills, commands and hooks together.
MCP
A standard way to connect an AI assistant to outside tools and data.
CLI
A program you run by typing commands in a terminal.
Subagent
A helper the assistant starts for one part of a task.
Repositoryerkamyaman/rust-anything · website
GitHub stars7,632
Skills1
CategorySoftware engineering
LicenseMIT
Last updatedNov 22, 2026 · card checked Nov 23, 2026 at commit d964bdc
Install countserkamyaman/rust-anything on skills.sh, Vercel's skills directory, which shows installs and security audits per skill

What rust-anything does

Before writing anything, the assistant takes the first option that fully works:

  1. Profile: run a real workload and find where the time goes (only when the goal is speed)
  2. Plan: list the pieces, the best first ones, the ones that stay and the ones that are blocked; stop for approval
  3. Bridge: make a small Rust project for one piece so the rest of the app calls it the same way
  4. Record: run the original on many generated and real inputs and save what it returns or throws
  5. Port: the assistant writes the Rust for that piece only
  6. Prove: build, compare every recorded case, compare speed
  7. Ship safely: run Rust beside the original and report differences, or switch the piece on in place
  8. Gate: formatting, lint, tests, no unsafe code without a reason, every case matching; then report and wait

Never cut, per the skill: a mismatch is fixed in the port, never in the recording; a tolerance is never widened to hide a mismatch.

From the pack's SKILL.md files, summarised by AgentGid.

The 3 skills, explained

rust-anything

Moves one piece of your app at a time to Rust and checks it against the original

You give

  • The project folder
  • What you want: the whole app in Rust, a migration plan, or one slow command faster
  • A command that runs a real workload, when the goal is speed
  • Your approval of the plan and of each next piece
  • Real inputs the code sees, when generated ones are not enough

You get

  • A plan: best first pieces, order, pieces that stay, blocked pieces and why
  • A Rust project per piece under rust/
  • A recording of the original's behavior (cases.jsonl)
  • Match counts, a speed comparison with a verdict, and gate results
  • REPORT.md and card.svg with measured numbers for a pull request
Say: “Plan a migration of src/parser/ to Rust with rust-anything; port the first unit and prove it.”

rust-anything (whole app, whole-app.md)

Turns a whole command line tool, web server or library into a standalone Rust app, step by step

You give

  • Answers to rounds of numbered questions (shape, scope, how exact the match must be, what must stay compatible, targets, checkpoints, cutover)
  • Database reset and dump commands, when the database is not a local file
  • The go-ahead at each checkpoint and for the cutover

You get

  • rust/MAP.md, DECISIONS.md, GLOSSARY.md and HANDOFF.md that carry the work between sessions
  • Research notes per dependency in rust/research/
  • A Rust front door that hands unported work to the original
  • A pure Rust app after the lift, checked against the recording
  • rust/cutover.sh: a script that walks you through the steps only you can do
Say: “Rewrite this CLI in Rust with rust-anything, end to end, and prove it behaves the same.”

go (only the slow part)

Finds the one function that takes the time and moves only that to Rust

You give

  • A command that is too slow

You get

  • A TASK.md for the assistant
  • The function switched to Rust only when every case matches, gate passes and it is not slower
Say: “This search feels slow. Profile it with rust-anything and move the hot loop to Rust.”

See it in action

The skill defines what its answer looks like. Its own example:

❓ **Q1** - **<title>**: <question, with the choices>

➡️ <recommended answer>

From skills/rust-anything/whole-app.md.

When to reach for it

You wantUse
One slow command fasterrust-anything go -- <command>
A plan before anything changesrust-anything analyze <repo> -o plan.md
The whole app as a standalone Rust appAsk for an end-to-end rewrite; the skill follows whole-app.md
To try the Rust piece beside the original firstrust-anything shadow <crate>
To go back to the originalrust-anything disable <crate>
To check a broken setuprust-anything doctor
Try it. Install the CLI and run setup, restart your assistant, then on a copy of your project say "Plan a migration of src/parser/ to Rust with rust-anything". It should show a plan with the best first pieces and stop to wait for your approval.

Skills in erkamyaman/rust-anything

SkillIn plain wordsChanges files?What it does (author)
rust-anything Moves one piece of your app at a time to Rust and checks it against the originalYes Port TypeScript/JavaScript, Python, C, Go, Ruby or Java to Rust with the rust-anything CLI or MCP tools, from one hot function up to a whole app rewritten as a pure Rust app - profile, plan, bridge one unit at a time, record the original's behavior, port, diff, bench, shadow and gate; batch hot…
npx skills add erkamyaman/rust-anything --skill rust-anything

The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.

Good to know before you install

  • The skill is a guide for the assistant; the work is done by a separate rust-anything program you install first (cargo or npm). The plugin alone does not include it.
  • Recording runs your original code many times on generated inputs. Code that writes files, uses a database or calls the network does that once per case: the author says to use a copy of the project, a test database and no production keys.
  • rust-anything setup changes settings files in your home folder for every agent it finds (for example ~/.claude.json, ~/.codex/config.toml, ~/.cursor/mcp.json) and copies the skill into their skills folders. It saves a .rust-anything.bak copy first; setup --remove undoes it.
  • Switching a finished piece on in place edits your source files; the skill tells the assistant to ask you first, and disable puts the original back byte for byte.
  • It can only catch what the recording covers.

Before you start

Works in

  • Claude Code: plugin, or setup (MCP server + skill)
  • Codex: plugin, or setup (MCP server + skill)
  • Cursor: MCP server
  • Gemini CLI: MCP server
  • OpenCode: MCP server + skills folder
  • Any MCP client: MCP server (stdio)

You will need

  • rust-anything CLI: The skill and MCP server run it
  • Rust toolchain (cargo): Builds the ports; also the default way to install the CLI
  • Runtime of the source language: record, diff and bench run the original: Node 22.6+, Python 3.9+, Go 1.21+, Ruby 3+, JDK 17+, a C compiler for C
  • Node 24+ for profiling Node code: profile needs --cpu-prof in NODE_OPTIONS

Steps only you can do

  1. Restart the agent after rust-anything setup (README.md (Quick start))
    Then: The MCP tools and the skill are available
  2. Approve the plan and each next unit; answer the whole-app questions; decide the cutover (skills/rust-anything/SKILL.md, skills/rust-anything/whole-app.md)
    Then: The agent ports the approved unit
  3. Run rust/cutover.sh for deploys, DNS, secrets and switching production traffic (skills/rust-anything/whole-app.md (section 7))
    Then: The original stays in place as reference until you say otherwise

Mistakes to avoid

  • Install only the plugin and expect the tools to work
    Install the rust-anything CLI first (cargo or npm), then the plugin or rust-anything setup
    The plugin only points to the rust-anything command; it does not ship it
  • Run record or replay in the live project with production settings
    Use a copy of the project, a test database and no production credentials
    The original code runs once per case, with all its side effects
  • Edit the recording to make a mismatch go away
    Fix the port; for an intended difference, ask the user and add a line to known-diffs.jsonl
    The recording is the proof of behavior
  • Port a tiny function that is called once per item, for speed
    Port it with its callers, or batch it (--batch)
    One call into Rust costs more than the work, and JITs run it in nanoseconds
  • Plan a piece-by-piece PHP or C# port
    Use record, replay and the front door only, and tell the user unit ports are not supported yet
    bridge does not take PHP or C# units yet

Which one to pick

If you needPick
You want code moved to Rust and checked against the original's recorded behaviorThis pack
You want a general plan-test-review workflow for any coding task, not a language migrationobra/superpowers
You want the agent forced to write tests first on every changenizos/tdd-guard

Works well with

  • claude-code: Plugin and setup target Claude Code (MCP server and skill)
  • openai-codex: Codex plugin from the repo's marketplace, or setup
  • maturin: The author's packaging guide ships Python ports as maturin wheels

May I use it like this?

UseAnswerCondition
In a commercial app YesMIT: keep the license notice
Passing the files on YesMIT: keep the copyright and permission notice in copies
Work for clients YesGenerated ports in your repository are yours, per the README

What leaves your machine

  • Package requests (crate names and versions) when a port is built → crates.io through Cargo, and the package registries of your app's language, build, gate and other steps that compile a port or install what the original needs. Opt out: No opt-out while porting; this is how Rust builds fetch their dependencies
  • A download of the RustSec advisory database → RustSec (via cargo deny or cargo audit), gate, only when cargo deny or cargo audit is installed. Opt out: Do not install cargo deny / cargo audit

Install rust-anything

Official commands from the repository

cargo install rust-anything
rust-anything setup

setup registers the MCP server with Claude Code, Codex, Cursor, Gemini CLI and OpenCode and installs the skill where the agent reads skills. Restart the agent afterwards. Without Rust: npm install -g rust-anything, or a prebuilt binary from the GitHub releases.

Remove: rust-anything setup --remove && cargo uninstall rust-anything

Or with the open-source skills CLI: npx skills add erkamyaman/rust-anything. Skills are instructions your agent follows: read them before installing.

What it installs and runs on your machine

Read in the code at commit d964bdc, Nov 23, 2026

WhenWhat happens
Plugin installTwo markdown files (SKILL.md, whole-app.md) and an MCP entry that starts the local rust-anything mcp command. No hooks.
rust-anything setupEdits each found agent's settings file in your home folder and copies the skill into ~/.claude/skills, ~/.codex/skills or ~/.config/opencode/skills; saves <file>.rust-anything.bak first.
record, diff, gate, app record, app replayRuns your original code (or whole app) on many generated inputs; app record runs every case twice. Side effects of your code happen once per case.
bridge / buildWrites Rust projects under <repo>/rust/ and builds them with cargo; Cargo downloads crates.
enableAdds one marked block to your original TS/JS or Python files; disable removes it byte for byte.
go --agent claude / codexStarts another agent process headless with edits allowed (Claude: acceptEdits with cargo and rust-anything commands; Codex: exec --full-auto). The skill tells your assistant not to pass --agent.
NetworkThe tool sends none of your code or results anywhere and has no telemetry. Network use comes from Cargo, your package managers, and cargo deny / cargo audit in gate when installed.

The author's numbers, as reported

AgentGid did not run these tests

  • Prettier 3.6.2 on 2,360 JS/TS files from the command line: 128.6 s for the original, 6.9 s with the Rust port (Apple M4, two runs each, every output compared before timing). Source
  • json-server as one Rust binary: 3.5 MB memory at idle vs 74 MB; 514/514 recorded HTTP cases match. Source
  • Fuse.js search over 50,000 strings: 91.2 ms per query for the original, 2.8 ms with the Rust port. Source
  • Calling Rust once per small function is usually slower than a JIT; against C the gain is safety, not speed. Source

Settings

  • RUST_ANYTHING_MODE: shadow (default) returns the original's results and reports Rust mismatches; new switches to Rust; old turns Rust off
  • RUST_ANYTHING_UNIT_<NAME>: original runs the original for one unit

Quick answers

Is it free?
Yes, MIT license, and it needs no account.
Does it send my code anywhere?
The tool itself does not. Cargo and your package managers download packages, and your assistant's model provider sees what the assistant sends.
Does it translate my code automatically?
No. Your assistant or you write the Rust; the tool records, checks and measures.
Will the Rust version always be faster?
Not always. The author says one call into Rust for a small function is often slower; the tool tells you which piece is worth moving.
Who owns the code it generates?
You do, per the author.

Checked by AgentGid on Nov 23, 2026 against commit d964bdc of the pack's own files. Related: napi-rs/napi-rs, PyO3/pyo3, wasm-bindgen/wasm-bindgen. agent.md for AI agents · Report a mistake

More software engineering skill packs

All software engineering skills

# Install
1
mattpocock/skills CheckedRuns scripts

Gets a set of working habits for building software. It interviews you about a plan before it builds, turns the talk into a spec and small tickets, builds them test-first and reviews the result.

330K +32.5K 39
2
obra/superpowers CheckedRuns scripts

Follows one fixed way of working. Before it builds anything, it asks what you really want and writes a short design for you to approve. Then it writes a step-by-step plan, builds it with tests first, has the work checked and asks how you want to finish.

324K +18.8K 15
3

Gets four rules: think before coding, keep it simple, change only what you asked for, and set a clear goal it can check. It asks before guessing and writes less extra code. The rules come from the README's reading of a public post by Andrej Karpathy; the files do not say he made or reviewed them.

235K +14K 1
4

Stops overbuilding. It does what you asked in the simplest way that works, reuses what your project already has, and ends every answer by telling you what it left out.

197K +27.3K 6
5
Shubhamsaboo/awesome-llm-apps CheckedRuns scripts

This repo is mostly a big collection of AI apps and tutorials. Its agent_skills folder holds seven separate skills you install one at a time. They help your assistant explain why old code exists, check a change or a package list, or find your abandoned side projects. Others test a draft on simulated readers, untangle a voice ramble, or split a big job across several AI models.

145K +3,089 10
6
addyosmani/agent-skills CheckedRuns scripts

Works like a careful senior engineer. It writes down what to build before coding, splits the work into small steps, proves each step with a test and reviews the result before launch. Nine slash commands cover the stages, and 25 skills switch on when a task matches.

120K +11K 26