Free launch days are booked ahead. A paid launch can go live tomorrow for $3.90.

Launch sooner

behave

Record how a CLI behaves, then check a rewrite against it

Developer ToolsOpen sourceOpen source · verified#testing#open-source#cli

Launched Nov 26, 2026 · finished #8 of the day

What is behave?

behave runs a command line tool as a black box. It reads --help and the man page, generates cases (flags, flag pairs, odd stdin, missing files, bad values), records stdout, stderr and the exit code, and replays them against another implementation, for example a Rust or Go port. Every difference shows up as a failing case. I used it to compare GNU coreutils with the uutils Rust rewrite: 44 bug reports and 51 fix PRs so far, 34 merged. Open source (MIT), written in Go, also runs as an MCP server.

behave features

  • Generates test cases from --help and the man page
  • Records stdout, stderr and exit code
  • Replays cases against another implementation and reports differences

Who uses behave and for what

  • Maintainers checking a Rust or Go port against the original CLI
  • Developers comparing GNU coreutils with the uutils rewrite

behave FAQ

Is it free?

Yes, behave is open source under the MIT license.

What language is it written in?

Go.

Can it run as an MCP server?

Yes, behave also runs as an MCP server.

Comments (2)

  • OriginForge Studio Nov 26, 2026

    Replaying generated cases against the uutils rewrite and getting 44 bug reports out of it is a convincing proof of the idea. How do you handle commands whose output legitimately varies, such as timestamps or locale differences, so they do not show up as false failures?

  • ProductPerch makerMaker Nov 27, 2026

    OriginForge Studio, Thanks! Three layers. First, every case runs in a fresh temp dir with a fixed environment (LC_ALL=C.UTF-8, TZ=UTC, NO_COLOR=1, HOME set to the temp dir) and input files get fixed mtimes, so most variation never happens. Second, each case is recorded 3 times, and anything that still changes between runs (sort --random-sort, for example) is marked flaky and skipped instead of producing false failures. Third, normalizers strip known noise before comparing: timestamps, durations, PIDs, hex addresses, ANSI codes, the work dir path and the program name in error messages, and you can add your own regex rules in behave.yaml. For whole groups that are expected to differ, like --version and --help text, you tag them and skip with --skip-tag.

More Developer Tools launches

All Developer Tools tools

Launch packs

Buy paid launches