Skip to content

Instantly share code, notes, and snippets.

View mohitmun's full-sized avatar
💭
yak shaving

Mohit Munjani mohitmun

💭
yak shaving
View GitHub Profile
@mohitmun
mohitmun / session_parser.py
Last active March 2, 2026 14:10
Claude Code session parser - parse, list, blame, and summarize Claude JSONL session files
#!/usr/bin/env python3
# Session Parser for Claude Code
# Parse Claude session JSONL files to review past conversations
#
# Usage:
# python session_parser.py list [-p project] [-n limit] — list recent sessions
# python session_parser.py summary <session_id> — quick summary (user msgs + tool counts)
# python session_parser.py parse <session_id> — full conversation view
# python session_parser.py parse <session_id> -m tools — list all tool calls
# python session_parser.py parse <session_id> -t — include tool calls in conversation
#!/usr/bin/env bash
# install.sh — set up the Claude Code bookmark feature.
#
# What it installs:
# ~/.claude/scripts/bm/save.sh called by the /bookmark slash command
# ~/.claude/scripts/bm/count.sh used by the shell prompt
# ~/.claude/commands/bookmark.md the /bookmark slash command
# ~/.claude/bookmarks.json storage file (created if missing)
# a managed block in ~/.zshrc defines the `bm` function and adds
# "(N bookmarks)" to RPROMPT