Agent skill

Codex Session Manager

by sugarforever in sugarforever/01coder-agent-skills

Lists, filters and exports local Codex session transcripts to organized Markdown with a digest, timeline and tool-call details, in full or pick-one mode.

MITAuto-check passedAgent Workflows

Install Codex Session Manager

skills CLI
$ npx skills add sugarforever/01coder-agent-skills --skill codex-session-manager -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sugarforever/01coder-agent-skills codex-session-manager --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sugarforever/01coder-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codex-session-manager .claude/skills/codex-session-manager && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codex-session-manager
GitHub stars
136
Token cost
~1.2k tokens
SKILL.md length
559 words
Files
3 (incl. scripts)
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Lists, filters and exports local Codex session transcripts to organized Markdown with a digest, timeline and tool-call details, in full or pick-one mode.

  • Works in 4 steps: Run a candidate list command. Use… → If the user gave a date, session id… → Present the numbered candidate rows to… → …
  • Converting hard-to-read Codex JSONL logs into Markdown
  • SKILL.md covers Overview, Quick Start, Specific Mode Candidate Flow and Output Layout, plus 2 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Codex keeps each session as a JSONL file under `~/.codex/sessions/` by date, with archived sessions in `~/.codex/archived_sessions/`. This skill ships a Python script, `manage_codex_sessions.py`, that lists candidate sessions or converts them into Markdown transcripts containing a digest, a timeline, the message text and linked tool-call details. The default output folder is `~/.codex/session-markdown`, and the agent tells you before exporting there.

Two modes cover most requests. Full mode exports every matching session and suits backups and broad conversions. Specific mode prints a numbered candidate table first, 20 entries by default, so you can pick one session to export. Filters narrow the set by project text, session id fragment, start date or count, archived sessions can be included, and tool payloads can be embedded inline instead of in sidecar files. When your wording leaves the mode unclear, the agent asks before exporting.

When your agent uses it

  • Converting hard-to-read Codex JSONL logs into Markdown
  • Backing up or archiving all local Codex sessions
  • Finding one recent Codex session and exporting only that one
  • Summarizing the tool-call history of a past Codex session

Example prompts

  • “List my 20 most recent Codex sessions so I can pick one to export.”
  • “Export all Codex sessions for the billing-api project to Markdown, archived ones included.”
  • “Summarize which tools the Codex session about the login bug called.”

Requirements

  • Python 3
  • Local Codex session data under ~/.codex

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Run a candidate list command. Use --limit 20 by default unless the user asks for a different count.
  2. If the user gave a date, session id fragment, or archive hint, pass it through the same filters
  3. Present the numbered candidate rows to the user. The candidate table includes modified time, date/project key, short session id, cwd, and…
  4. After the user chooses a number, rerun with the exact same filters and --pick N.

What it can do on your machine

Read from SKILL.md and the folder at commit e51fb6e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codex Session Manager loads about 1.2k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 559 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from sugarforever/01coder-agent-skills at commit e51fb6e, republished under its MIT licence (© sugarforever). 559 words, ~1,242 tokens.

Download SKILL.mdSave it as .claude/skills/codex-session-manager/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
codex-session-manager
description
Manage local Codex session transcripts, including listing candidate sessions, exporting full or selected sessions to organized Markdown, inspecting archived sessions, and summarizing tool-call history. Use when the user asks to scan, parse, archive, inspect, recover, summarize, manage, or convert Codex sessions, `~/.codex/sessions` data, `~/.codex/archived_sessions` data, `.jsonl` transcripts, tool-call history, or hard-to-read Codex conversation logs.

Codex Session Manager

Overview

Codex stores session transcripts as JSONL files under ~/.codex/sessions/YYYY/MM/DD/*.jsonl. Archived sessions may also exist under ~/.codex/archived_sessions/*.jsonl. Use the bundled manager to list candidates or export sessions into Markdown transcripts with a digest, timeline, message text, and linked tool-call details.

Default output folder: ~/.codex/session-markdown. Tell the user before exporting there, and mention any custom output folder they requested.

Quick Start

Let the user's wording choose the mode when it is clear; otherwise ask them to choose before exporting:

  • Full mode: export all matching sessions. Use this for archive, backup, broad search, or "convert all sessions" requests.
  • Specific mode: list candidate sessions first, ask the user to pick one, then export only that session.

Run from any directory:

bash
python3 /path/to/codex-session-manager/scripts/manage_codex_sessions.py

Useful options:

  • --mode full: export all matching sessions. This is the default.
  • --mode specific --list-candidates: print a numbered candidate table and do not export.
  • --mode specific --pick N: export the Nth candidate from the same filtered candidate list.
  • --include-archived: also scan ~/.codex/archived_sessions.
  • --project <text>: only export date/project keys containing this text.
  • --session <text>: only export sessions whose id or filename contains this text.
  • --since YYYY-MM-DD: only export sessions modified on or after this date.
  • --limit N: export the N most recently modified matching sessions.
  • --include-tool-details-inline: embed full tool payloads in the main session Markdown instead of sidecar files.

Specific Mode Candidate Flow

Use this flow when the user wants one Codex session, is unsure which session they need, or asks to inspect recent sessions before converting.

  1. Run a candidate list command. Use --limit 20 by default unless the user asks for a different count.
bash
python3 /path/to/codex-session-manager/scripts/manage_codex_sessions.py \
  --mode specific \
  --list-candidates \
  --limit 20
  1. If the user gave a date, session id fragment, or archive hint, pass it through the same filters:
bash
python3 /path/to/codex-session-manager/scripts/manage_codex_sessions.py \
  --mode specific \
  --list-candidates \
  --since 2026-06-01 \
  --include-archived \
  --limit 20
  1. Present the numbered candidate rows to the user. The candidate table includes modified time, date/project key, short session id, cwd, and first user prompt excerpt.
  2. After the user chooses a number, rerun with the exact same filters and --pick N.

If the user already gives an exact session id or unique fragment, use --mode specific --session <id-or-fragment> --list-candidates first when there is any ambiguity. Export with --pick 1 only when the candidate list has exactly one match.

Show full SKILL.md (196 more words)Show less

Output Layout

The exporter writes:

text
~/.codex/session-markdown/
├── index.md
└── <date-or-archive-key>/
    ├── index.md
    ├── <session-id>.md
    └── tool-details/
        └── <session-id>.tools.md

Each session Markdown includes:

  • Digest: source path, key, session id, cwd, timestamps, event/message/tool counts, and first user prompt excerpt.
  • Linked tool details file when tool calls or results exist.
  • Timeline: session metadata, user/assistant/developer messages, reasoning summaries, tool calls, and tool outputs.
  • Short tool summaries inline, with full JSON payloads in the sidecar file by default.

Workflow

  1. Confirm the source folder. Default to ~/.codex/sessions; add --include-archived when the user asks about archived sessions.
  2. Ask the user to choose full mode or specific mode if they did not already make the choice.
  3. Confirm or announce the output folder. Default to ~/.codex/session-markdown.
  4. For full mode, run the manager script with any needed filters.
  5. For specific mode, list candidates, get the user's chosen number, then export with --pick.
  6. Report the number of sessions exported, output index path, and any parse warnings.

Notes

  • Treat transcript data as private. It can contain prompts, file contents, command output, secrets accidentally pasted into chat, and tool results.
  • Do not delete or modify original .jsonl files.
  • Prefer sidecar tool details for large sessions. Inline tool payloads can make Markdown hard to search and load.

© sugarforever, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in skills/codex-session-manager of sugarforever/01coder-agent-skills.

  • SKILL.md
  • agents/openai.yaml
  • scripts/manage_codex_sessions.py

Open the folder on GitHubat commit e51fb6e

Compare with similar skills

Codex Session Manager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codex Session Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex Session Manager this skillsugarforever/01coder-agent-skills136—~1.2kAutomated safety check: PassMIT
MineruNebutra/MinerU-Skill122—~1.4kAutomated safety check: PassMIT
Markdown ConverterTeam-Commonly/commonly1.4k—~557Automated safety check: PassApache-2.0
Markdropshoryasethia/markdrop211—~1.4kAutomated safety check: NotesGPL-3.0
Document ConverterBlackBeltTechnology/pi-agent-dashboard316—~999Automated safety check: PassMIT
MineruNebutra/MinerU-Skill122—~504Automated safety check: PassMIT

Similar skills

  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~1.4k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Markdown Converter

    Team-Commonly/commonly

    Convert binary documents (PDF, DOCX, XLSX, PPTX, HTML, EPUB, images) to clean LLM-friendly Markdown using Microsoft's markitdown Python tool.

    1.4k GitHub stars~557 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Markdrop

    shoryasethia/markdrop

    Professional AI skill and usage instructions for the Markdrop package, a Python tool for converting PDFs to Markdown/HTML with AI-powered image/table descriptions.

    211 GitHub stars~1.4k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check: notes
  • Document Converter

    BlackBeltTechnology/pi-agent-dashboard

    Convert documents bidirectionally via the pi-doc-engine facade: ingest PDF/DOCX/PPTX/XLSX to provenance-stamped Markdown (with OCR), and produce templated DOCX/PDF from Markdown with diagrams, TOC…

    316 GitHub stars~999 tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~504 tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Converts an EPUB card book into an Obsidian folder with one Markdown file per card, keyword cards, navigation links and an optional shareable zip.

    259 GitHub stars~1k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from sugarforever/01coder-agent-skills

All 21 skills in this repo
  • Typography Cover Designer

    sugarforever/01coder-agent-skills

    Designs typography-driven video covers and thumbnails in HTML/CSS and screenshots them with Chrome DevTools at 16:9, 16:10, 9:16 and 3:4.

    136 GitHub stars~3.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Mining Session Skills

    sugarforever/01coder-agent-skills

    Reviews one finished Claude Code session from its exported markdown and decides whether a skill is worth creating, updating or reusing for similar work.

    136 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Subtitle Correction

    sugarforever/01coder-agent-skills

    Fixes speech-recognition mistakes in .srt subtitle files, in Chinese or English, using terms you supply and leaving every timestamp untouched.

    136 GitHub stars~2.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Claude Session Exporter

    sugarforever/01coder-agent-skills

    Lists Claude Code session transcripts and exports them to organized Markdown with a digest, a clean conversation and linked tool-call details.

    136 GitHub stars~1.7k tokensUpdated 3 mo ago
    Auto-check passed
  • Diagram to Image Converter

    sugarforever/01coder-agent-skills

    Converts Mermaid diagrams and markdown tables into PNG images through a hosted rendering API, for platforms without rich formatting.

    136 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Audio and SRT to Narrated Video

    sugarforever/01coder-agent-skills

    Builds a narration-synced MP4 from a voiceover audio file and its SRT subtitles using HyperFrames, with scenes timed to the subtitle cues; instructions are in Chinese.

    136 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about Codex Session Manager

What does Codex Session Manager do?

Lists, filters and exports local Codex session transcripts to organized Markdown with a digest, timeline and tool-call details, in full or pick-one mode. codex/archived_sessions/`.py`, that lists candidate sessions or converts them into Markdown transcripts containing a digest, a timeline, the message text and linked tool-call details.

When should I use Codex Session Manager?

Codex Session Manager fits situations like: converting hard-to-read Codex JSONL logs into Markdown; backing up or archiving all local Codex sessions; finding one recent Codex session and exporting only that one; summarizing the tool-call history of a past Codex session.

How do I install Codex Session Manager in Claude Code?

Run `npx skills add sugarforever/01coder-agent-skills --skill codex-session-manager -a claude-code`. Or copy the skill folder (skills/codex-session-manager in sugarforever/01coder-agent-skills) into .claude/skills/codex-session-manager in your project. Claude Code loads it when a task matches its description.

How do I install Codex Session Manager in Codex?

Run `npx skills add sugarforever/01coder-agent-skills --skill codex-session-manager -a codex`. Or copy the skill folder (skills/codex-session-manager in sugarforever/01coder-agent-skills) into .agents/skills/codex-session-manager in your project. Codex loads it when a task matches its description.

Can I use Codex Session Manager in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sugarforever/01coder-agent-skills --skill codex-session-manager -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-session-manager, .gemini/skills/codex-session-manager, .github/skills/codex-session-manager and .opencode/skills/codex-session-manager in your project.

What does Codex Session Manager need to run?

Going by SKILL.md and its folder, Codex Session Manager needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; Local Codex session data under ~/.codex.

Does Codex Session Manager access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codex Session Manager safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Codex Session Manager use?

Codex Session Manager is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codex Session Manager use?

About 1.2k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codex Session Manager?

Skills that share tags, products or a category with Codex Session Manager: Mineru (Nebutra/MinerU-Skill, 122 stars), Markdown Converter (Team-Commonly/commonly, 1.4k stars), Markdrop (shoryasethia/markdrop, 211 stars) and Document Converter (BlackBeltTechnology/pi-agent-dashboard, 316 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex Session Manager?

sugarforever (a GitHub user) maintains it in sugarforever/01coder-agent-skills, which has 136 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on June 19, 2026.

Source: sugarforever/01coder-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.