Skip to content

Add chat export support using existing Codex logs #5781

Closed as duplicate
Closed as duplicate

Description

@kgruiz

What feature would you like to see?

Codex CLI already saves full chat logs in ~/.codex, but they’re stored as verbose JSON with a lot of internal data.
This proposal is to make those chats exportable in a readable format (Markdown or plain text) that includes only user and model messages.


Why is this useful?

  • Lets users export a finished chat and continue it in another session, keeping context across resets.
  • Complements issue Session chaining #5348 (Session Chaining) — not the preferred long-term solution, but a practical interim step that supports the manual workaround discussed in its comments.
  • Uses existing saved data, requiring only a simple export layer.
  • Improves usability and reproducibility for long-running projects.

Additional information

This would be a low-risk enhancement that only exposes readable exports of logs Codex already stores locally.

Activity

  1. added
    enhancement
    on Oct 26, 2025
  2. github-actions commented on Oct 26, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. etraut-openai commented on Oct 26, 2025

    @etraut-openai
    Contributor

    Thanks for the suggestion. I think this may be a duplicate of #4232. If so, let's close this one and consolidate any details into the previous one.

  4. etraut-openai commented on Nov 11, 2025

    @etraut-openai
    Contributor

    Closing in favor of #2880

  5. timothydillan commented on Apr 7, 2026

    @timothydillan

    For anyone landing here, I built harness-recall (https://github.com/timothydillan/harness-recall), which tackles this across multiple tools in one CLI. It reads sessions from Codex, Claude Code, and Cursor, indexes them, and exports to Markdown, HTML, or JSON (your choice).

    A few things beyond what's been shared in this thread:

    • Cross-tool: one index across Codex + Claude Code + Cursor sessions
    • hrc search "query" for full-text search across all sessions
    • hrc browse for an interactive TUI

    Install using: pip install harness-recall

    Hope it helps!

  6. ezyyeah commented on May 30, 2026

    @ezyyeah

    Hey, I have built a tool for exporting entire codex session logs / conversations, with options: https://github.com/ezyyeah/codex-export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions