Skip to content

Instantly share code, notes, and snippets.

@realgenekim
Created September 5, 2025 18:35
Show Gist options
  • Select an option

  • Save realgenekim/d3a25b68c7f2c79eda6fce15805f07d6 to your computer and use it in GitHub Desktop.

Select an option

Save realgenekim/d3a25b68c7f2c79eda6fce15805f07d6 to your computer and use it in GitHub Desktop.
Instructions to retrieve Claude Code data

⏺ The instructions for retrieving Claude Code prompts are in /Users/genekim/src.local/mdparse/docs/claude-code-logs.md. Key locations:

Primary data storage:

  • ~/.claude/projects/ - Project-specific sessions as JSONL files
  • ~/.claude.json - Session index and configuration

To find your prompts:

List your Claude projects

ls -la ~/.claude/projects/

Find sessions for this project (URL-encoded path)

ls -la ~/.claude/projects/-Users-genekim-src-local-mdparse/

Each .jsonl file contains complete conversation history

Parse prompts with Python: import json with open('session-file.jsonl', 'r') as f: for line in f: data = json.loads(line) if data.get('type') == 'user': print(data['content']) # Your prompts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment