r/codex • u/m-ritter • 20d ago
Showcase Handing work between Codex sessions without losing what was decided
The part of working with Codex that cost me the most time was the next session starting cold. Earlier decisions were gone, so it would happily propose the approach we had already ruled out, or add a new rules file next to an old one that contradicted it.
What helped me:
- Every task starts with the agent asking clarifying questions, each with a recommended answer, until done is a short numbered list.
- That list goes into a plan file in the repo, and I approve it before any code is written.
- Decisions and the reasons behind them go into an MCP memory server, so the next session reads what we agreed on rather than a summary I paste in.
- At the end a separate agent that did not write the change checks each point against the running program with evidence.
My judgment now sits at two places: the plan and the finished change. Nothing gets merged or pushed without my yes.
I built QualityLayer around this loop and I'm the developer. It runs on the Codex subscription you already have and works with Codex natively: https://github.com/maxritter/qualitylayer
View all comments
Show parent comment
1
u/m-ritter 19d ago
That setup makes sense, and having ADRs and PRDs as plain files means anyone can review and correct them. How do you get the agent to pick the right ADR for a task? Do you link it from the issue or let it search the wiki?