How big is this codebase? gpto-preview and claude sonnet are both fairly capable. Claude has longer context windows and is a little less lazy. aider.chat is working on an architect / coder model right now that's verrrry effective. Essentially - paste your whole codebase into 4o-preview, ask it to rearchitect to spec, and output a design document and list of tasks suitable for a senior dev. Dump that plus your tarball into claude as two separate pastes, and be like "Do task 1".