export_codex

Export Codex chat sessions to timestamped log files using Python.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/jayli/mc-lite --skill export-codex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: export_codex
Source: https://github.com/jayli/mc-lite/tree/main/.claude/skills/export_codex
Command: npx skills add https://github.com/jayli/mc-lite --skill export-codex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need to archive ongoing Codex chat sessions by exporting dialogue data into organized log files.

Core Features & Use Cases

  • Session Exporting: Save current Codex chat sessions into date-stamped text files for record-keeping or analysis.
  • Automatic Versioning: Increment log filenames daily to prevent overwriting existing logs.
  • Use Case: When you want to preserve a complex troubleshooting session, run this Skill to generate a complete text record to review later.

Quick Start

Use the export_codex skill to save your current Codex session after clearing the chat history.

Frequently Asked Questions about export_codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Codex chat sessions to a log file?

To export Codex chat sessions, this automation reads dialogue data from ~/.codex/sessions and writes timestamped text logs into .codex/logs for future reference and analysis.

Does the Codex session exporter automatically version log files?

Yes, the Codex session exporter applies automatic versioning by incrementing log filenames daily. This date-stamping prevents overwriting existing logs when saving multiple chat sessions.

How do I save a Codex troubleshooting session before clearing the chat history?

You can save a Codex troubleshooting session by running this script to generate a complete text record of the dialogue. This preserves complex iterative sessions before clearing chat history.

Can I use Python automation to archive Codex CLI dialogue history?

Yes, this Skill uses Python automation to archive Codex CLI dialogue history. It requires reading session files from the local environment and writing them into organized log files.

What is the best way to document iterative Codex dialogue sessions for review?

The best way to document iterative Codex dialogue sessions is exporting them into date-stamped text files. This creates an organized record for later review, documentation, or analysis.

Do I need any dependencies to run the Codex session export script?

No additional dependencies are required to run the Codex session export script. It operates independently using Python to read from ~/.codex/sessions and write to .codex/logs.