I ask Codex (I am not using Anthropic anymore) to always generate a plan file first, unless explicitly told otherwise.
I also tell it to write deviations and rename plans accordingly once done.
That way I keep the codebases I have to or enjoy to work on in my head and don't become too dependant on any provider or on stochastic parrots in general.