sessionlog:compact
Installation
SKILL.md
Session Compact
Export the current session and produce a compressed task continuity summary that captures all essential knowledge required to resume the task without re-reading the full session log.
Steps
1. Identify current session
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
current_session=$(ls -t "$project_dir"/*.jsonl 2>/dev/null | head -1)
session_id=$(basename "$current_session" .jsonl)
echo "Session: $session_id"
echo "Source: $current_session"
2. Export the session transcript
Use the export script to produce the human-readable TXT:
Related skills