tobihagemann/turbo-recall-reasoning
Recall the reasoning behind a past change from Codex session history when available, falling back to commit diff and surrounding code. 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
Recover the reasoning behind a change. Prefer Codex session history when it can be found; otherwise derive the explanation from git history and current code.
Accept any of:
<path>:<line>)If only a file is given, use git blame to resolve the commit that last touched the line.
Resolve the target commit:
git rev-parse <sha>
git blame -L <line>,<line> -- <path>
Collect the commit subject, changed files, and relevant diff:
git show --stat --oneline <sha>
git show -- <path>
If Codex session files are available, search them for the commit SHA, touched file paths, branch name, and distinctive user request text:
Write the patterns to a file with apply_patch, one per line, then match them literally:
rg -F -f <pattern-file> ~/.codex/sessions
-F is required, not just safer: an unescaped $ inside request text is a regex anchor and silently drops the match.
Read only the smallest relevant transcript excerpts. Prefer sessions close to the commit time and sessions that mention both the file and the task.
If no matching session is found, continue with the fallback path.
If session reasoning was found:
If no session reasoning was found:
When session reasoning was found:
**Commit:** <short-sha> — <subject>
**Session:** <session reference>
<one or two paragraphs of reasoning>
When no session reasoning was found:
**Commit:** <short-sha> — <subject>
**Session:** none found
<fallback explanation derived from git history and current code>
Then call update_plan to mark this step completed and continue with the next step of the active workflow.
Take tobihagemann/turbo-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.