From claude-commands
Sparsely samples Claude and Codex conversation histories to infer worktree focus and restore session context without loading full transcripts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:conversation-history-sparseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Infer what the current directory/worktree/branch has been doing by sampling only high-signal history from:
Infer what the current directory/worktree/branch has been doing by sampling only high-signal history from:
~/.claude/projects~/.codex/sessionsUse this skill when you need orientation, forensic context, or session continuity without loading full transcripts.
cat full history files.git branch --show-current
git log --oneline -n 8
gh pr view --json number,title,headRefName,baseRefName,state,url
find ~/.claude/projects -maxdepth 1 -type d | rg "worktree[-_]$(basename "$PWD")|$(basename "$PWD")"
find ~/.claude/projects -type f -name '*.jsonl' -print0 | \
xargs -0 rg -n --max-count 20 --fixed-strings "\"cwd\":\"$PWD\"" 2>/dev/null
Use a small parser to print:
Do not print full JSONL lines.
python3 - <<'PY'
from pathlib import Path
import os
cwd = os.getcwd()
files = []
for p in Path.home().glob(".codex/sessions/*/*/*/rollout-*.jsonl"):
try:
with open(p, "r", encoding="utf-8") as f:
if cwd in f.readline():
files.append(p)
except Exception:
pass
for p in sorted(files, key=lambda x: x.stat().st_mtime, reverse=True)[:3]:
print(p)
PY
Then sample only recent user messages from the newest file.
Return:
Branch/PR:
- ...
Claude history (sparse):
- ...
Codex history (sparse):
- ...
Inference:
- ...
~/.claude/projects or ~/.codex/sessions.npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsAnalyzes Claude Code session history JSONL files to extract insights, summaries, and patterns from conversations. Processes current project or all sessions with bash, jq, and subagents.
Manages Claude Code conversation history with DAG-based summaries, full-text search, and session handoff for context continuity.
Searches past Claude Code session logs to recall decisions, patterns, or unresolved work. Useful when users reference prior conversations, say 'do you remember', or need historical context.