Add a rewind workflow for context and code timeline management
What variant of Codex are you using?
CLI
What feature would you like to see?
Problem
Codex is missing a first-class rewind workflow for managing both conversation context and code changes over time. Claude Code's rewind covers this need well, and the gap in Codex affects my daily workflow.
The core issue is not just undoing code. I need to curate the working timeline of an agent session: remove tangents, failed attempts, stale assumptions, and context bloat while continuing from a useful known-good point.
Current behavior
In Codex, once a thread accumulates noisy context or drifts into a tangent, there is no practical way to prune that context while preserving the useful parts of the session. I can use git to recover some code state, but git does not solve the conversation/context state problem.
That means the agent may continue carrying stale assumptions, unnecessary detours, and prior failed approaches even after the code has been manually cleaned up.
Expected behavior
Codex should support a rewind-like workflow that lets me:
- Return to a previous point in the session timeline.
- Discard later conversation turns from the active context.
- Optionally revert code changes made after that point.
- Continue working from the cleaner context and code state.
- Preserve enough history to inspect or recover discarded work if needed.
Why this matters
Context curation is a major part of keeping agent work productive. Without rewind, long-running sessions become harder to steer because the model carries too much irrelevant or actively misleading context.
This has daily impact for workflows where I am iterating with the agent, exploring approaches, rejecting paths, and trying to keep the final working state focused.
Suggested shape
A useful implementation could support:
- Rewind conversation only.
- Rewind code only.
- Rewind both conversation and code to the same checkpoint.
- Fork from an earlier point while keeping the original session available.
- Show a clear timeline of checkpoints, tool actions, and code diffs before applying the rewind.
User value
This would make Codex much better for sustained engineering work, where success depends not only on editing files but on actively managing the agent's working memory and direction over time.
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗