I wrote a library that compiles Zod-based specs into executable functions at runtime using language models. Compilers are run on the main thread, so they can introspect live data and use that to debug the functions they write. Their code is written to a separate file, but I also made a VS Code extension that lets you easily find/edit it.
Show HN: Compiling specs into functions at runtime using language models | Heykuki News