You could use cline/zoo code or similar coding tools to generate project documentation. They will be faulty at some points but (at least in my case (using zoo code & qwen3.6) it works most of the time good enough. It will however take time and you'll still need to fact check any agent.
Or you just trash it and start from scratch. With some restrictions, very detailed descriptions and tiny iterations these llms can generate usable code. But that requires knowledge of the systems your app/program will use.