Logget banner
henricook henricook

Logget

Development community

Description

--- description: Copy the current Claude Code session .jsonl file to the project directory --- Please copy the current session's .jsonl file to the current working directory using the following bash command: ```bash PROJECT_DIR=$(pwd | sed "s|/|-|g" | sed "s|^|-|") LATEST=$(ls -t ~/.claude/projects/${PROJECT_DIR}/*.jsonl 2>/dev/null | head -1) if [ -n "$LATEST" ]; then FILENAME=$(basename "$LATEST") cp "$LATEST" "./$FILENAME" echo "✅ Session log copied to: ./$FILENAME" echo "" echo

Installation

Installs to ~/.claude/commands/henricook-agentshare-logget.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/henricook/agentshare/HEAD/.claude/commands/logget.md -o ~/.claude/commands/henricook-agentshare-logget.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository