behave - Showcase Project
Listed November 15, 2026
About behave
Record how a CLI behaves, then prove a rewrite behaves the same
I built behave because I wanted a cheap way to check whether a rewrite of a command line tool (for example a Rust or Go port) really does the same thing as the original. behave probes a CLI as a black box: it reads the help text, generates cases for flags, stdin, files and edge cases, and records stdout, stderr and the exit code. You can then replay the same cases against the rewrite and get a precise list of differences. I have used it on the Rust rewrites of GNU coreutils, findutils, sed and procps. So far that has led to 43 upstream bug reports and 50 fix PRs, 34 of them merged. It is a single Go binary, MIT licensed, and also has an MCP mode if you want to drive it from an editor.