[-] emirmrkaljevic@programming.dev 1 points 22 minutes ago

Yes, I used AI coding tools a lot while building it, both for the Go code and for working through the uutils differences. The part I care about is that everything is checkable: the specs are plain files recorded from the real GNU binaries, every reported difference is a command plus expected and actual output you can rerun yourself, and the upstream fixes went through normal review by the uutils maintainers before they were merged.

19

Most of my printer parts only exist as STL, and every time I wanted a hole 2 mm bigger or a plate a bit thicker I ended up remodeling the whole thing by hand. So I wrote mesh2cad. It finds the planes, cylinders and cones in the mesh and writes a STEP file plus a CadQuery or OpenSCAD script (or a FreeCAD macro) with the dimensions as named parameters at the top, so you change one number and rebuild.

It works on plates, brackets, boxes with holes, bolt circles, slots, bosses, countersunk holes, that kind of thing. It does not do organic or sculpted shapes or scans. It checks the rebuilt solid against the original mesh and reports the deviation, and if the fit is bad it refuses to write the script instead of making something up.

Free, MIT, Python, pip install mesh2cad. Code and before/after pictures: https://github.com/emirmrkaljevic/mesh2cad

Hackaday wrote a short piece on it last week: https://hackaday.com/2026/11/19/mesh2cad-automates-re-modelling/

If you have a part where it falls over I'd like to see it.

18

A lot of small hardware (AIO cooler screens, RGB hubs, stream decks, case LCDs) only ships a Windows app, and the usual route to Linux support is someone staring at Wireshark for an evening. I built usb-rea to do the step after Wireshark.

You capture with usbmon on Linux or USBPcap on Windows, label what you clicked in the vendor app (brightness 0, 50, 100, fan 30%, and so on), and it infers the command layout: constant headers, which byte follows which setting, counters, checksums like CRC16, lookup tables and image streams. It then writes a Markdown report where every claim points to Wireshark frame numbers, plus a standalone pyusb driver.

On public captures of the NZXT Kraken X it recovers the fan command byte for byte as liquidctl sends it, and the generated driver produces identical packets for values it never saw. It is alpha, MIT, pip install usb-rea, and usb-rea demo --device fan runs without any hardware.

If you have a device that only works on Windows, I am happy to run a capture through it and post the result.

1

I made a small tool for a problem I kept hitting when looking at rewrites of classic command line tools (uutils coreutils, gojq, ripgrep style replacements): how do you know the new binary really behaves like the old one?

behave runs the original tool as a black box with a lot of generated inputs and flags, records stdout, stderr, exit code and file changes into plain spec files, and then replays those specs against the rewrite. Every difference shows up as a small diff.

Running it on uutils coreutils against GNU coreutils turned up 44 differences so far, which led to 51 upstream pull requests, 34 of them merged.

It is a single Go binary (MIT), installable with go install or Homebrew. It also ships example specs for a few dozen GNU tools and jq. I would like to hear where it breaks for your tools, or which CLI you would want covered next.

emirmrkaljevic

0 post score
0 comment score
joined 5 hours ago