Anyone treating spec as the *only* source code?

2 points by etwigg ↗ HN
1. ask LLM to summarize a codebase into its implicit spec 2. ask LLM to generate codebase from the spec 3. starting now, version control the spec, treat the codebase as a compiled artifact

Has anybody tried building anything this way?

4 comments

[ 3.5 ms ] story [ 20.0 ms ] thread
(comment deleted)
What’s the point of a specification? I thought it was to agree on things. If you have a specification that your LLM made up, why would your boss or your teammates care about it?
I'm very skeptical that an LLM can derive any meaningful spec from a non-trivial codebase.

Specifications describe the behavior of the system, but most of all it defines wanted outcomes and edge cases. This is hard.

I'd like to see the results if anyone can make this work! It would make my job orders of magnitude simpler.