I actually really like this idea. It kind of raises some questions about why programs are split into files in the way that they are? E.g. why are the blocks ad hoc and not semantically related to the language?
Vaguely reminds me of an edit format idea I had spring 2024 to have the edit format be the complete rewriting of functions e.g. all the model could do was write functions and if it already exists it's replaced otherwise it's created.
But it really restricted the style of programs you could write so was sort of a dead end.