From claude-commands
Triages sparse conversation history from ~/.claude/projects and ~/.codex/sessions for current repo/worktree with git branch/PR context and strict budgets for orientation and continuity.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin jleechanorg-claude-commandsThis skill uses the workspace's default tool permissions.
Infer what the current directory/worktree/branch has been doing by sampling only high-signal history from:
Searches coding agent session history to answer questions about past work, previous attempts, investigations, recent activity, or prior sessions—even if not explicitly named.
Analyzes 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.
Searches Claude Code conversation history in Scribe DB (SQLite FTS5) or JSONL files to recall past discussions, decisions, code snippets, and context from prior sessions.
Share bugs, ideas, or general feedback.
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.