jonasblixt/ufsm ? reverse-engineered prompt

Reverse engineered prompt

Build me a small desktop tool for drawing hierarchical state machines and generating C code from them.

I want a graphical editor where I can create states, nested states, transitions, and basic conditions, then export or generate code I can use in an embedded project. Keep the workflow simple, like designing the machine visually, then clicking a generate button to produce the source files. It should also have a clean way to open, save, and load designs again later.

Please make it feel like a practical developer tool, not a big fancy app. If you need to, look up the current docs online or check existing state machine tools for inspiration. I’d like the app to run on Linux and be easy to build locally, with a clear split between the editor and the code generator.