tobihagemann/recall-reasoning
Recall the reasoning behind a past change by locating the Claude Code transcript that produced it. Use when the user asks to \"recall reasoning\", \"find reasoning\", \"look up reasoning\", \"recall implementation reasoning\", \"find the rationale\", \"why did I do X\", \"recall from transcripts\", or \"find the transcript for this commit\".
npx skills add https://github.com/tobihagemann/turbo --skill recall-reasoning
Locate the Claude Code transcript that produced a given change and extract the implementer's reasoning. Useful for answering reviewer questions, writing post-hoc explanations, or recovering forgotten context.
Accept any of:
<path>:<line>)If only a file is given, git blame resolves the commit that last touched the line.
Call scripts/find_transcript.py with either --commit <sha> or --file <path>[:<line>]. Pass --cwd /path/to/repo when searching a different repo than the current working directory.
python3 <skill-dir>/scripts/find_transcript.py --file <path>:<line>
python3 <skill-dir>/scripts/find_transcript.py --commit <sha>
The script:
git rev-parse or git blame~/.claude/projects/<encoded-cwd>/ (slashes and dots become dashes)--window-days of the commit (default 14)The JSON output has status, commit, project_dir, and candidates with session_id, score, match_reasons, and excerpts.
Status values:
ok — candidates returnedno-commit — couldn't resolve a commitno-transcripts — no Claude Code transcript dir for this repono-match — transcripts exist but none match the touched files in the windowIf status is ok:
jsonl_path directly for more context.Synthesize a concise summary tied to the question being answered:
If status is anything other than ok, report that no reasoning was found and fall back to reading the commit diff and surrounding code. Say so explicitly so it's clear whether the answer still holds up.
Return the reasoning in this shape:
**Commit:** <short-sha> — <subject>
**Transcript:** <session-id> (score <N>)
<one or two paragraphs of reasoning, quoting the implementer where useful>
If no transcript was found:
**Commit:** <short-sha> — <subject>
**Transcript:** none found (<status>)
<fallback explanation derived from reading the commit and current code>
Then use the TaskList tool and proceed to any remaining task.
.jsonl if the excerpts are insufficient. These files are large.<command-message> or skill-loading stubs. The script filters these out, but stay alert if reading a transcript directly.Take tobihagemann/recall-reasoning from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.