sessionlog:info
Installation
SKILL.md
Session Log Info
Identify the current Claude Code session and report its log file location.
Steps
- Determine the project session directory. Run:
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
echo "Project session directory: $project_dir"
- Find the current session (most recently modified JSONL file):
current_session=$(ls -t "$project_dir"/*.jsonl 2>/dev/null | head -1)
session_id=$(basename "$current_session" .jsonl)
echo "Session ID: $session_id"
Related skills