From dfb53ad7ed51b5b0a4ecda8ba662358b1291b38c Mon Sep 17 00:00:00 2001 From: Brummel Date: Tue, 30 Jun 2026 14:16:44 +0200 Subject: [PATCH] docs(postmortem): note the worktree slug caveat for the default log dir The default project log dir is derived from cwd, so a session run inside a git worktree resolves to a different slug than the primary clone. Document that, and point at --project-dir / --file to grade a worktree run. closes #18 --- postmortem/SKILL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/postmortem/SKILL.md b/postmortem/SKILL.md index aeb88e7..c5dee3d 100644 --- a/postmortem/SKILL.md +++ b/postmortem/SKILL.md @@ -80,6 +80,14 @@ dir — i.e. the session you are in (it will be flagged `active`, meaning totals are partial). To grade a finished run, pass its `--session `. +The default log dir is derived from cwd (the path with `/` replaced +by `-`), so a session run inside a git worktree resolves to a +*different* slug than the primary clone, and after exiting a worktree +the default again follows the current cwd. To grade a worktree run +from the primary clone, pass `--project-dir +~/.claude/projects/` (or `--file ` to bypass slug +derivation entirely). + The script emits one JSON object on stdout. That JSON — not the raw log — is your evidence base.