behave
An open-source CLI that records how a command-line tool behaves and diffs a Rust or Go rewrite against it. Free under the MIT licence.

Project links
Visit productRequest correctionProject Note
A closer look at behave
behave records how a command-line tool behaves, then replays those cases against another implementation. It was built to check Rust or Go rewrites against the original tool. It reads --help and the man page, generates cases (flags, flag pairs, odd stdin, missing files, bad values), records stdout, stderr and exit codes, and diffs a second binary against that recording. Running it on uutils coreutils against GNU coreutils led to 44 bug reports and 51 fix PRs upstream, 34 of them merged. Open source (MIT), single Go binary, also runs as an MCP server.
When the rewrite almost matches
Porting a command-line tool to Rust or Go is the fun part. The hard part is knowing whether an odd flag still exits with the same code, prints the same error and treats empty input the same way. Most of those edge cases never reach anyone's test suite until a user trips over one.
behave is an open-source tool by Emir Mrkaljević built for exactly that gap. In the README, the maker explains: "I built it for CLI compatibility testing: checking a Rust or Go port against the original, or catching a refactor that changed visible behaviour."
Record once, then diff
It treats the original tool as a black box. Point it at a binary and it reads the help text and the man page, then generates cases from the flags and their values, plus awkward inputs like strange stdin or a missing file. Each case's stdout, stderr and exit code go into a folder of YAML files you can read and commit. Then behave diff replays the whole set against the second binary and tells you which flags differ, case by case.
Every case runs in a fresh temporary directory with a fixed locale and time zone, and anything that changes between runs is marked flaky and skipped rather than reported as a failure. An optional MCP server lets an editor drive the same record-and-diff loop, there's JUnit output for CI, and the repo ships ready-made recordings for GNU coreutils, findutils, procps-ng and jq.
The track record is the best pitch here. According to the README, running it against the Rust rewrites of GNU coreutils, findutils, sed and procps has led to 44 upstream bug reports and 51 fix pull requests, 34 of them merged as of November 15, 2026.
Before you point it at something
behave is free under the MIT licence and installs through Homebrew on macOS and Linux, a release binary or go install. There's no account and nothing gets sent anywhere: it only runs the binaries you point it at, on your own machine. It's frank about the risks, too. Don't probe tools that change things outside their working directory, like package managers or anything that deletes files, without skipping those flags and using a sandbox. A recording is also only as good as the version you recorded from, since GNU coreutils 9.12 and 9.7 already disagree on some tail headers.
It's labelled early, at v0.1. A banner at the top of the project page promotes the maker's paid project, SkinToScan, as a way to support the work, while behave itself costs nothing. If you're porting or refactoring a CLI and want proof it still behaves, this is a sharp, specific tool. If you need to test a GUI app or a web API, it isn't built for that.

For reference
Project facts
The published details and source context, together in one place.
- Stage
- Live but early
- Pricing
- Free
Project note details
Dates and editorial links
Published
November 27, 2026
Updated
November 27, 2026
Last checked
Nov 30, 2026
Last checked is the most recent date behave's own public pages were visited for this note. Seen something that has changed since? Tell us and we'll fix it.
Note history
Publication and substantive update dates for this public note.
- Nov 27, 2026
- Project note published.
- Nov 27, 2026
- Project note updated.
Want to come back to behave?
Save it to this browser. Your Saved list marks projects whose note or updates changed since you last looked.
Keep exploring
More like behave
- TestMyBuildDeveloper Tools · For people who build apps and need their first real users and honest feedback.
- Blackcoin CoreDeveloper Tools · An MIT-licensed Blackcoin node and wallet implementation with desktop and command-line tools for local chain operation.
- Agent-Ready Repo AuditorDeveloper Tools · Checks public GitHub repositories for agent instructions, issue intake, and verification commands, then turns the findings into a report.
- Mydentify AI Watermark and Claude CheckerAI & Skills · Mydentify scans pasted text for hidden Unicode and limited style markers, then explains why those clues cannot prove who wrote it.
- VeraMileUtilities & Calculators · VeraMile tracks fuel, mileage, and vehicle expenses, then turns those records into MPG and true cost-per-mile figures.
- LoopCheck CLIDeveloper Tools · A $3 command-line tool that scans a folder of WAV files and reports peak, RMS, DC offset, silence and loop-point jumps per channel, so a sound handoff doesn't ship with a surprise.
- Stripe for JoomShopping by InteroperiaDeveloper Tools · Adds Stripe checkout to JoomShopping stores, with a status view for paid, pending, stale and unknown payments.
- UnrasterDeveloper Tools · Turn images and PDF pages into editable PowerPoint slides and SVG, with real text boxes and shapes.
For the makerAdd the badge to your site
If you made behave, you can post about this note with a ready-to-edit announcement, or show it on your own site with an optional badge that links back here. Neither changes the note's text or placement. This note's link to the project is marked as user-submitted until the project's site links back, for example with the badge, and is a full backlink while it does.
Want to see which Google searches show this note? Project Radar Pro ($29 a year) lists them with their clicks, and lets a verified maker confirm status, pricing and platforms in a labeled block and post one update a month. It never changes the note's text or placement. See what Pro includes
Building something useful?
Submit your project for free. If selected, it gets a Project Note that explains what it does and links to your work.
Submit a project


