Longer term, use agents to read the code and write a new requirements document from scratch.
Iterate on that doc for a long time. Then build the new system.