Claude Code stores transcripts under projects/ where slug is the absolute cwd with path separators replaced by dashes.
(cwd: str)
| 57 | |
| 58 | |
| 59 | def project_slug(cwd: str) -> str: |
| 60 | """Claude Code stores transcripts under projects/<slug> where slug is the |
| 61 | absolute cwd with path separators replaced by dashes.""" |
| 62 | return cwd.replace("/", "-") |
| 63 | |
| 64 | |
| 65 | def find_transcript(config_dir: Path, cwd: str, session_id: str | None) -> Path | None: |