How to Find and Resume Your Codex CLI Conversation History
By CodeAgentSwarm · Updated October 31, 2026
What is Codex CLI conversation history
To return to a conversation, open the session picker:
codex resumeIf the conversation is missing, try codex resume --all to remove the current-directory filter. Also check that you are using the same CODEX_HOME configuration.
To search conversations across agents from one window, see the Codex GUI. To continue several tasks at once, follow the parallel Codex sessions guide.
Native Codex CLI history and resume
| Command | Use |
|---|---|
| codex resume | Open the session picker. |
| codex resume --last | Continue the most recent session. |
| codex resume --all | Include sessions from other directories. |
| codex resume SESSION_ID | Resume a session by ID or session name. |
| codex fork | Copy a saved session into a new conversation and keep the original transcript. |
Options checked with codex resume --help and codex fork --help in Codex CLI 0.159.0 on October 31, 2026. Check your installed version’s help if its behavior differs.
Transcripts live in $CODEX_HOME/sessions, which defaults to ~/.codex/sessions. See OpenAI’s documented paths. Keep a private backup of important conversations before changing or cleaning up those files.
When a shared history across agents helps
The native Codex picker already lets you resume sessions from other projects with --all. If you also use Claude Code or other agents, CodeAgentSwarm brings available conversations into a view with content search and project and agent filters.
Searchable Codex history across agents with CodeAgentSwarm
CodeAgentSwarm runs your Codex CLI agents in a desktop workspace and records every conversation automatically: what you wrote, what Codex did, which project you were in, and when it happened. That record becomes a searchable history that works across every project and, crucially, across every agent. The same view holds your Codex, Claude Code, and Antigravity CLI conversations together.
Full-text search across every Codex conversation
Type what you remember - a module name, a bug, a technology - and CodeAgentSwarm searches inside the content of all your conversations, not just titles. Results show the conversation title, the project, the date, and the matching messages, so you can confirm it is the right Codex session before you open it.
Filter by project
Conversations are organized by project, each with its own color, so a long history stays readable. When you work across several repositories at once you can filter to a single project and see only the Codex sessions that belong to it, instead of one giant flat list.
Works across agents, not just Codex
Because CodeAgentSwarm lets you pick the agent per terminal, your history is not siloed by tool. Search "auth refactor" and you see the Codex session where you started it and the Claude Code session where you finished it, side by side. For the broader picture of running mixed agents, see the AI CLI agent swarm overview, and for Codex specifically the Codex agent swarm guide.
Resume from any terminal
Found the conversation you need? Open it and CodeAgentSwarm brings it back with its previous context, in any terminal, regardless of which project it started in. You do not navigate to a directory and remember a session id by hand. You search, select, and keep working.
How to open your Codex history from any terminal
No matter which Codex terminal you are in, the history is one click away:
- In any terminal, click the "History" button.
- A modal opens with your recent conversations across projects and agents.
- From there you can search the content, filter by project, and open any conversation.

How to resume a past Codex conversation
When you open a project in CodeAgentSwarm you can choose resume mode instead of starting a blank conversation. In resume mode you see all your recent conversations for that project and pick exactly which Codex session to continue.
From that view you can:
- See all your previous conversations organized by date
- Search the content to find a specific session, not just scroll
- Choose exactly which Codex conversation to continue
- Or start a fresh conversation if that is what you want

If you searched first, selecting a conversation shows the messages where your search terms appear, so you confirm it is the right one before opening it. Once you choose it, CodeAgentSwarm reopens it with the prior context so Codex remembers what you decided and what you built, and you continue as if no time had passed.
Why Codex conversation history changes how you work
Treating your Codex history as a searchable memory, rather than a pile of old sessions, has a direct effect on day-to-day work:
- Stop re-explaining modules. If you spent fifteen minutes giving Codex context on your auth layer, resume that session instead of explaining it again from zero.
- Keep decisions consistent. Architecture choices pile up across sessions. Resuming the right one keeps you from contradicting a decision you made days ago.
- Save tokens and time. Re-explaining context burns both. Continuing a session that already has the context is cheaper and faster.
- Handle many projects calmly. When you can search and resume any Codex conversation from any project, switching repositories stops being a context-switching tax.
- Never lose a fix. That clever solution from late last night is in your history. Search for it, resume it, reuse it.
History pays off even more when you run several Codex agents at once. If that is your setup, the guide on running multiple Codex sessions covers how to keep a swarm organized.
Native Codex resume vs CodeAgentSwarm history
Codex CLI lets you pick a session, continue the last one or include other projects. CodeAgentSwarm adds a shared view of conversations from several agents. You can use the native picker for a specific session and the app to organize work across projects.
FAQ
Does Codex CLI save conversation history?
Yes. You can continue a saved conversation with codex resume. Keep a private backup if you need to protect history from deletion or configuration changes.
How do I resume a previous Codex session?
Run codex resume to pick it, codex resume --last to continue the most recent, or codex resume SESSION_ID if you know its identifier.
Where is Codex CLI history stored?
Transcripts are stored in $CODEX_HOME/sessions, which defaults to ~/.codex/sessions. If you changed CODEX_HOME, check that location.
Can I search across all my Codex conversations?
CodeAgentSwarm lets you search the content of available conversations and filter by project and agent. To choose a session in Codex CLI, use codex resume.
Does Codex history work across different projects?
Yes. Run codex resume --all to include sessions from other directories. CodeAgentSwarm also provides project filters in its shared history across agents.
Can I see my Codex and Claude Code history together?
Yes, in CodeAgentSwarm. Because you pick the agent per terminal, history is not siloed by tool. The same searchable view holds your Codex, Claude Code and Antigravity CLI conversations, so you can trace and resume work no matter which agent did it.