AI Briefing
KO

Show GN: Preserving Claude Code and Codex Sessions While Reducing Storage Usage

·2026.08.11 08:47

Key point

SessionTrim reduces storage space by removing tool outputs and system-only data from Claude Code and Codex sessions.

Details

SessionTrim is a tool that reduces disk usage by removing tool execution results and system-only data from old Claude Code and Codex session files. It preserves human-readable records and token usage information.

The main targets for cleanup are as follows:

  • Tool results such as command execution outputs
  • Machine-only data included in sessions
  • Large items not necessary for record preservation

Using the --apply option rewrites session files directly in their original location. Since there is no separate backup or undo feature, session files must be saved separately before applying.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.