It’s already easy to generate such things without LLMs. Gleam, another BEAM language, is intentionally very simple and can tend towards the verbose however because of strict typing the lsp has code actions that’ll generate most of that verbose code for you in a way that’s provably correct, instant, and doesn’t require a network connection. Maybe a gleam specific agent could utilize those code actions?