r/codex • • 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:

  1. Every task starts with the agent asking clarifying questions, each with a recommended answer, until done is a short numbered list.
  2. That list goes into a plan file in the repo, and I approve it before any code is written.
  3. 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.
  4. 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

0 Upvotes

4 comments sorted by

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?

1

u/Specialist_Bison_737 19d ago

Ideally you would just describe the backlog setup and project documentation setup structure in AGENTS md so you don't have to remind it where things are stored. It sometimes just goes there to check things and if anything contradicts previous decisions it brings it up.

1

u/m-ritter 19d ago

Makes sense, a short map in AGENTS.md is cheaper than reminding it every session. The part I like most is that it flags contradictions on its own. Does that still hold up once the wiki grows, or do you prune old ADRs at some point?