extract-session-content

Extract user messages, assistant text, and tool-use calls from Claude Code transcripts into encrypted .jsonl.age files.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/oletizi/audiocontrol.org --skill extract-session-content
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-session-content
Source: https://github.com/oletizi/audiocontrol.org/tree/main/.claude/skills/extract-session-content
Command: npx skills add https://github.com/oletizi/audiocontrol.org --skill extract-session-content

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ingest Claude Code session transcripts, extract the core content (user messages, assistant text, and tool-use calls), and encrypt each session with age for safe storage.

Core Features & Use Cases

  • Ingest transcripts from the monorepo's local transcripts at ~/.claude/projects and extract user and assistant messages, thinking blocks, and tool-use calls while discarding bulky results.
  • Output one encrypted .jsonl.age file per session into data/sessions/content/ for safe archival.
  • Use case: A maintainer wants a private, searchable archive of session content without exposing tool outputs.

Quick Start

Run the extraction tool to ingest all sessions from ~/.claude/projects and output encrypted per-session .jsonl.age files under data/sessions/content/.

Frequently Asked Questions about extract-session-content

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

FAQPage Schema
How do I encrypt Claude Code session transcripts for secure archival?

To encrypt Claude Code session transcripts, you can extract user messages, assistant text, and tool-use calls from local session files and output each session as an encrypted .jsonl.age file using age encryption.

What is the best way to archive Claude Code sessions without storing bulky tool outputs?

Archiving Claude Code sessions while excluding bulky tool results involves ingesting local transcripts, extracting core content like user and assistant messages, and saving the filtered data as encrypted .jsonl.age files.

Can I extract only user and assistant messages from Claude Code session transcripts?

Yes, you can extract only user and assistant messages from Claude Code session transcripts by processing the local files to discard bulky tool results while retaining text and tool-use calls.

Do I need age encryption to store extracted Claude Code session content locally?

Age encryption is used to securely store extracted Claude Code session content locally, outputting encrypted .jsonl.age files into a designated data directory to protect sensitive data during archival.

Where does the extracted Claude Code session content get stored after encryption?

The extracted and encrypted Claude Code session content is stored as individual .jsonl.age files within the data/sessions/content/ directory structure of your monorepo.

What Claude Code session data is preserved during the transcript extraction process?

The transcript extraction process preserves core content including user messages, assistant text, thinking blocks, and tool-use calls, while specifically excluding bulky tool results from the output.