Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ZhangZhuoSJTUv1.0.0MITIn 1 marketplace
Learn how decompilers work by stepping through a 19-stage RV32I pipeline from raw ELF bytes to readable C, with an AI tutor that quizzes you. It is a teaching tool, not a production decompiler, and it claims each stage can be studied on its own.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Learn decompilation by building one from scratch.
19 stages. Every step inspectable. From raw RISC-V bytes to readable C.
RV32I: the simplest real ISA, so the focus stays on decompilation, not instruction encoding.
[!TIP] This project is inspired by the amazing open-source efforts behind angr, radare2, and Ghidra. Thanks for all the open-source work that makes projects like this possible.
[!NOTE] This is a teaching tool, not a production decompiler. The pipeline is deliberately factored into many small, isolated stages so that each concept can be studied independently. A real-world decompiler (Ghidra, IDA, angr, Binary Ninja) would fuse, reorder, or iterate these passes for performance and precision. We trade that efficiency for clarity: if you can follow each stage here, you will understand what the production tools are doing under the hood.
We ship tiny-dec as a Claude Code plugin. An AI tutor assesses your level, walks you through each pipeline stage, quizzes you, and lets you experiment with real binaries, all inside your terminal.

A bird's-eye view of all 19 stages. Explore interactively at tiny-dec.zzhang.xyz.
Install Claude Code, then:
# 1. Add the marketplace
/plugin marketplace add ZhangZhuoSJTU/tiny-dec
# 2. Install the plugin
/plugin install tiny-dec@tiny-dec
# 3. Reload to activate
/reload-plugins
Type /tiny-dec:teach-decompilation to start.
# System dependencies (Ubuntu/Debian)
$ sudo apt-get install -y clang lld llvm binutils build-essential python3 python3-pip
# Python dependencies
$ pip install poetry
$ poetry install
# Build RV32I fixture binaries for tests
$ ./scripts/build_fixtures.sh
# Full decompilation to C (default)
$ poetry run tiny-dec decompile ./binary.elf
# Target a specific function
$ poetry run tiny-dec decompile ./binary.elf --func parse_record
# Stop at any intermediate stage and look inside
$ poetry run tiny-dec decompile ./binary.elf --stage ssa --func main
# Inspect binary metadata
$ poetry run tiny-dec info ./binary.elf
Every stage is a window into the pipeline:
loader → decode → pcode → disasm → ir → simplify → dataflow → ssa
→ calls → stack → memory → scalar_types → aggregate_types → variables
→ range → interproc → structuring → c_lowering → c
$ poetry run pytest # all 500 tests
$ poetry run ruff check . # lint
$ poetry run mypy tiny_dec # type check
Raw RISC-V instructions go in. Readable C comes out:
| Assembly (RV32I) | Decompiled Output |
|---|---|
|
|
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub zhangzhuosjtu/tiny-dec --plugin tiny-decPlugins from other owners that cover similar ground