research.openie.dev / rce
Download RCE
RCE (the Reality Code Engine) is a language in which a program is written once as a checked state machine and code in other languages is generated from it.
Its reference checker, rce, admits a program or names the rule it breaks, runs it, emits it as Rust, Python, JavaScript or Scala, and runs it as a service on the host runtime.
All of it is public source in openIE-dev/rce: the specification, the Lean proofs, the checker, the host runtime, rce db, the apps, the standard library and the integrated development environment (IDE).
The research behind it is in the RCE paper.
What this page states was read from openIE-dev/rce at commit 1762fb4b (20 November 2026).
Try it in the browser
The RCE playground runs the reference checker, compiled to WebAssembly, in your browser.
Type a program and see whether it is accepted, which rule it breaks, and the trace of each example. Nothing is installed and nothing is sent to a server.
Install with one command
On Linux, macOS or Windows (in a Git Bash or MSYS2 shell):
curl -fsSL https://raw.githubusercontent.com/openIE-dev/rce/main/scripts/install.sh | sh
The script downloads the archive for your platform from the release rce-latest, checks it against the release's SHA256SUMS (SHA-256 is the Secure Hash Algorithm with a 256-bit digest) and installs nothing if the hash differs.
It installs rce into ~/.local/bin (set RCE_INSTALL_DIR to choose another directory) and runs rce version, which prints the commit the binary was built from.
To pin one commit, pass its first 12 hexadecimal digits: sh install.sh 1762fb4bb65a.
Releases
Every commit of main that passes continuous integration (CI) is released, named by its commit and never by a typed version:
rce-<commit>, where<commit>is the first 12 hexadecimal digits of the commit; the 30 newest are kept, for pinning.rce-latest, which points at the newest of them.
Each release holds rce-<platform>.tar.gz for five platforms and one SHA256SUMS file. Each archive holds the binary and the license files. All releases: github.com/openIE-dev/rce/releases.
- rce-linux-x86_64.tar.gz
Linux on 64-bit Intel and AMD processors.
- rce-linux-aarch64.tar.gz
Linux on 64-bit Arm.
- rce-macos-aarch64.tar.gz
macOS on Apple silicon.
- rce-windows-x86_64.tar.gz
Windows on 64-bit Intel and AMD processors.
- rce-wasm32-wasip1.tar.gz
WebAssembly for the WebAssembly System Interface (WASI), for a WASI runtime such as Wasmtime; the archive holds rce.wasm.
To check an archive by hand, download it and SHA256SUMS into one folder, then:
sha256sum -c SHA256SUMS --ignore-missing # Linux
shasum -a 256 -c SHA256SUMS --ignore-missing # macOS
tar xzf rce-linux-x86_64.tar.gz && ./rce/rce version Container image
The same release builds a public container image, ghcr.io/openie-dev/rce, tagged latest and with the full commit hash for pinning. It runs rce as an unprivileged user, with the working directory /srv and the volume /data.
docker run --rm ghcr.io/openie-dev/rce:latest version Run a program in production
docs/DEPLOY.md runs an HTTP notes service as an RCE program on the host runtime: check it, serve it from the container or the installed binary, stop and restart it, back up and replay its log, and change the program.
The program's durable log is the only thing to keep: the state is always the replay of the log.
A log is bound to the program that wrote it (rule HC-27): beside the log the host keeps the program's module hash, and rce host run, serve and replay refuse a program whose hash differs, before the log is opened.
Build from source
The checker is spec/checker of openIE-dev/rce, built with the Rust toolchain pinned in spec/checker/rust-toolchain.toml:
git clone https://github.com/openIE-dev/rce
cd rce/spec/checker
cargo build --release --bin rce
./target/release/rce version
The repository's README lists the other checks: the specification check (rce-spec-check), the 837 Rust unit tests across 159 test files, the Lean 4 audit (5,537 theorem constants across 64 top-level RCE modules, theorems T1 to T63) and the conformance suite (2,221 of 2,236 tests passing with 0 failures at commit 1762fb4b).
The RCE IDE
The RCE IDE bundles the editor (rce-ide), the checker, a language server (rce-lsp) and a Model Context Protocol (MCP) server for coding agents (rce-mcp).
Its source is ide/ in openIE-dev/rce, built against the checker of the same commit:
cd rce/ide
cargo build --release -p rce-ide -p rce-mcp
The earlier IDE releases, v0.1.0 to v0.1.3, are on the releases page of openIE-dev/rce-ide, with their own SHA256SUMS. They predate the move of the IDE into openIE-dev/rce and are not rebuilt; for an IDE at a current commit, build it from ide/.
The repositories openIE-dev/rce-ide, rce-book, rce-stdlib, rce-examples, rce-conformance and tree-sitter-rce now point to directories of openIE-dev/rce.
License
The source in openIE-dev/rce is licensed under MIT OR Apache-2.0, at your option. Copyright (c) 2026 Open Interface Engineering, Inc (OpenIE).
Third-party notices for the IDE are in ide/release/THIRD-PARTY-LICENSES.txt.