find-past-session
Find or recall a past Claude or Codex session. Use when the user refers to an earlier session ("the session from yesterday", "what did we do about X", "find the session where…") or names an Emacs buff
SKILL.mdclaude/skills/find-past-session/SKILL.md
GitHubFind a past session
- Run
"$HOME/My Drive/dotfiles/claude/bin/agent-log-find" --since YYYY-MM-DD TERMS…first. It searches the rendered Claude and Codex logs (~/.claude/rendered/<project>/<date>_<slug>.md, with summaries) in under a second. - Add
--bodyto search full logs. Add--rawonly for sessions too recent to be rendered. - Never start by grepping raw JSONL transcripts.
- When Pablo names an Emacs buffer such as
*agent-log-search*, read it withemacsclient -eand follow the session links in it.