Install

rf ships as a single crate on crates.io. It builds to one static binary with no runtime dependencies.

cargo install rf

This puts rf on your PATH (usually ~/.cargo/bin/rf). Confirm the build:

rf --version
0.1.2

Status: early development. The command surface and JSON envelope work today, but expect breaking changes before 1.0. Pin a version in scripts that must not move under you.

Optional external oracles

rf content and the in-process stages of rf find need nothing beyond the binary. Two find sources are external tools that rf runs as subprocesses, because neither has a Rust binding:

  • git — powers the git_deleted stage (matches scrubbed from the working tree but present in history).
  • ast-grep — powers the ast_structural stage (matches that have no fixed literal form).

Without git, find still runs, skips history, and adds the GIT_ABSENT warning. ast-grep is used only when you pass --structural; without it that call exits 3 with DEPENDENCY_MISSING. See How find works.

Verify the environment

rf doctor reports the linked engine, the two external tools, and whether .gitignore is active for a path. It exits 6 when git or ast-grep is absent; rf can still run content and why:

rf doctor .

Uninstall

cargo uninstall rf