Rustify
Rebuild software as maintainable Rust from its binary.
Rustify gives AI agents a workflow to reconstruct software from a binary in idiomatic Rust.
It recovers product specifications, UX, architecture, evidence, and tests alongside the implementation.
Rustify depends on REA for reverse engineering.
The goal is software that you can inspect, build, and maintain without the original source.
Installation
The setup below uses Node.js 24.x (24.22.1 or later), npm, Python 3.12 or later with PyYAML, and Rust with Cargo.
The Rustify helpers read and write YAML with PyYAML.
You install it with python3 -m pip install pyyaml.
1. Set up REA
REA supplies binary analysis and runtime evidence through rustify-probe.
npx rea-agents setup
You select the agents that will use REA.
You review the proposed configuration and approve the changes.
Setup registers the MCP server and installs REA's matching workflow instructions.
You restart the agents named in the completion message.
Native decompilation uses Hopper, Ghidra, or IDA.
Setup can connect an existing Hopper or Ghidra installation.
It can also install Hopper when you select that option.
Other target types can use REA's built-in inspection tools.
The REA setup reference provides additional provider settings and troubleshooting steps.
2. Install Rustify
You install Rustify as a Claude Code plugin or with the Skills CLI.
Claude Code plugin. You run these commands in Claude Code:
/plugin marketplace add SebastianElvis/rustify
/plugin install rustify@rustify
The plugin installs all eight Rustify skills for your user account.
Skills CLI. You run this command from your project folder:
npx skills add SebastianElvis/rustify --skill '*'
The Skills CLI installs all eight Rustify skills and prompts you to select your agents.
The installation applies to the current project.
The -g option makes the bundle available across your projects:
npx skills add SebastianElvis/rustify --skill '*' -g
Rustify follows the Agent Skills format.
Compatible agents include Claude Code, Codex, Cursor, and OpenCode.
Local and cloud agents use the same skill files.
Their environment must provide REA, the target binary, its resources, and a compatible runtime.
Desktop investigation also needs a GUI session.
3. Check the setup
This command checks the installed REA workflow:
npx rea-agents doctor --skill --json
Native analysis also needs a working provider.
This example checks Hopper:
npx rea-agents doctor --provider hopper --json
You can replace hopper with ghidra or ida for your configured provider.
Your agent must have access to REA through MCP or the CLI.
Usage
You invoke the main rustify skill with the binary path and the output folder:
/rustify /path/to/program ./reconstructed-program
You can add resources, documentation, and constraints in natural language:
/rustify /path/to/program ./reconstructed-program
The resources are in /path/to/resources. The manual is at https://example.com/manual.
Agents without slash commands accept the same request in a prompt.
The Claude Code plugin uses /rustify:rustify in place of /rustify.
Rustify always reconstructs the full product.
A missing feature stays an open gap until the agent completes it.
The agent saves checkpoints and reopens affected phases when inputs change.
Output
The target project root is a ready open-source Rust repository.
The gitignored .rustify/ directory holds the private records:
| Folder | Contents |
|---|
| Project root | The open-source Rust repository as a Cargo workspace: crates, tests, rustdoc, README, license, CI, design, decision records, migration guide, and compatibility document. |
.rustify/recovered/ | The traceability ledger, product and UX specifications, architecture, diagrams, data models, evidence, declarative tests, and a parity backlog. |
.rustify/verification/ | Executed check results, original-to-Rust comparisons, fuzz reports, the parity gate result, and logs. |
The ledger .rustify/recovered/model.yaml links each EARS requirement to evidence, tests, components, Rust modules, slices, and gaps.
The agent produces diagrams and data models when the evidence supports them.
The project format defines the output formats.
The standards guide defines the writing rules, the terminology, and the requirement and architecture forms.
Workflow
