loop-finder

Installation
SKILL.md

Phase 1: Discover Sessions

Search for chat history files in these common locations, in priority order:

Agent Session Path
pi ~/.pi/agent/sessions/*.jsonl files
Codex ~/.codex/sessions/*.jsonl files
Claude Code ~/.claude/sessions/ or ~/.claude/projects/*.jsonl files
opencode ~/.opencode/ or ~/.config/opencode/ — session files
Hermes ~/.hermes/ — session files

If the user specifies an agent, search only that one.

Completion criterion: every known path for the targeted agent(s) has been checked. If no session files are found anywhere, ask the user: "I couldn't find session files at: [list paths tried]. Where does your AI assistant store chat history?"

Phase 2: Extract User Messages

Read every session file found. The JSONL format varies by agent — read the first few lines of each file to detect its structure before parsing. Typical formats:

Installs
1
First Seen
4 days ago
loop-finder — awesome-skills/loop-finder-skill