{"data":{"slug":"discovered-dc1f12fb75d162bb5ded93eda3d54eb0f8272c41a9fec114","title":"Transcript History","summary":"Search and read past Claude Code conversations from either machine, including deleted ones, and list recently worked projects.","url":"https:\/\/skillshunter.net\/skills\/discovered-dc1f12fb75d162bb5ded93eda3d54eb0f8272c41a9fec114","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-dc1f12fb75d162bb5ded93eda3d54eb0f8272c41a9fec114","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-dc1f12fb75d162bb5ded93eda3d54eb0f8272c41a9fec114.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-dc1f12fb75d162bb5ded93eda3d54eb0f8272c41a9fec114\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Use `python3` on macOS and `python` on Windows. Ensure the transcripts checkout is beside the dotfiles repo on this machine. The script merges the vault with the live store and confirms each session's project by its recorded working directory.","instructions":"---\nname: transcript-history\ndescription: >-\n  Search and read past Claude Code conversations from either machine, deleted ones included, and list\n  recently worked projects.\n  TRIGGER when: the user refers to an earlier session (\"what did we decide about X\", \"the script we\n  fixed last month\", \"the usual config\"); the reasoning behind a past change is not in the repo, memory\n  or git; CLAUDE.md's search-before-asking rule applies; or which projects were worked in recently.\n  DO NOT TRIGGER when: the answer is in this conversation, the repo, memory or git log, or the history\n  wanted is Perplexity's.\nallowed-tools: Bash(readlink -f ~\/.claude\/skills), Bash(test -f:*), Bash(python:*), Bash(python3:*), Read\n---\n\n# Transcript history\n\nThe archive and its query script live in the private `transcripts` repo, checked out beside this\ndotfiles repo on each machine. This skill only finds that checkout and runs its script; the script's\nown docstring is the reference for what it reads and why.\n\n## Context\n\n- Skills directory: !`readlink -f ~\/.claude\/skills`\n\n## Process\n\n1. **Locate the script.** **Skills directory** ends in `\/claude\/skills` inside the dotfiles repo.\n   Drop those two components to get the dotfiles repo root; the script is\n   `transcripts\/bin\/history.py` in the directory that contains that root. Run `test -f <path>`.\n   If it fails, stop and tell the user the transcripts checkout is not beside the dotfiles repo on\n   this machine. Do not search the disk for another copy, and do not fall back to grepping\n   `~\/.claude\/projects`, which loses every session retention has deleted.\n\n2. **Pick the interpreter.** Use `python3` on macOS and `python` on Windows.\n\n3. **List the project's sessions first**, unless the user named a session:\n\n   ```bash\n   python <path> [--project <project>] [--machine local] sessions\n   ```\n\n   The project defaults to the current repo's GitHub origin (`owner\/name`), or its directory name\n   when it has no origin. Pass `--project` for a different one, as a folder name or `owner\/name`; a\n   folder name resolves to its repository, so two folders cloned from one repo give one history.\n   Put it before the subcommand as shown: it and `--machine` belong to the script itself, so placed\n   after `sessions`, `search` or `show` they fail as unrecognized arguments. The header names the\n   repository, and every line starts with the machine it came from.\n\n4. **Search for the topic.** Every term must appear in a turn, case-insensitively:\n\n   ```bash\n   python <path> [--project <project>] [--machine local] search <term> [<term> ...] [--limit N]\n   ```\n\n   Prefer distinctive nouns (a file name, a flag, an error string) over phrases. If a term finds\n   nothing, retry it with a synonym before concluding the topic was never discussed.\n\n5. **Read the session** whose hits look relevant. A unique id prefix is enough:\n\n   ```bash\n   python <path> [--project <project>] [--machine local] show <session-id-prefix> [--tools]\n   ```\n\n   Add `--tools` to see which tools each reply used. Results are omitted either way. A long\n   session prints a lot, so pipe it through `sed -n` to read it in ranges.\n\n6. **To list projects by last interaction instead**, skip steps 3 to 5 and run:\n\n   ```bash\n   python <path> [--machine local] recent [--days N]\n   ```\n\n   It lists every project the user typed a prompt in during the last N days (default 1, fractions\n   allowed), newest first, one machine's block after the other's; the script's docstring defines\n   which prompts count as typed. A row's prompt is the newest one in the window with words in it,\n   so it is blank when every prompt there was a bare slash command such as `\/yolo`; the row is\n   still a real interaction. A project is named by its repository (`owner\/name`) when one\n   resolves, and otherwise by its folder name, or `?` for a record with no folder, so a bare name\n   says nothing about whether the folder was ever a repository. `--project` is ignored here.\n\n7. **Report what the history says**, citing the date, and the session-id prefix for anything found\n   with `sessions`, `search` or `show` (`recent` prints none). Any timestamp you quote is already\n   in local time.\n\n## Reading the output\n\n- Each command queries both machines by default. Pass `--machine local`, before the subcommand, to skip the other one.\n- **A machine line reading `NOT COVERED` means that machine was not searched.** Say so whenever\n  you report a negative result, because a topic missing from the machine you could reach may still\n  exist on the other. Exit status 2 means the same thing. The other machine also reads as\n  `NOT COVERED` when its `transcripts` clone is older than this one's and rejects the options\n  forwarded to it, so when it was reachable, name a stale clone as the likely cause.\n- The two machines are the same user's, so one project's sessions can be split between them.\n  Treat the combined list as one history.\n\n## Out of scope\n\n- Do NOT write to, move or delete anything in the archive: it holds the only copy of some sessions.\n- Do NOT read the archive's raw files directly. The script already merges the vault with the live\n  store and confirms each session's project by its recorded working directory.\n- Do NOT quote credentials or secrets you come across in a transcript.\n","use_cases":["Finding past decisions or configurations discussed in earlier sessions","Locating the reasoning behind a past change not present in the repo or git log","Listing recently worked projects for reference"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/AnotherSava\/claude-code-common\/blob\/1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93\/claude\/skills\/transcript-history\/SKILL.md","source_commit":"1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93","license":null,"version":null,"listing_approved_at":"2026-12-01","created_at":"2026-11-30T08:08:44.000000Z","updated_at":"2026-12-01T12:48:20.000000Z","seo_title":"Search Past Claude Code Conversations","seo_description":"Search and read past Claude Code conversations from either machine, including deleted ones, and list recently worked projects.","seo_keywords":["transcript history","search past conversations","claude code history","retrieve deleted sessions","recently worked projects"]}}