commit e94d79c6bee96cb085236f1d0e49e0fd7da2d0c8
parent e8ebbf617a2eb527b0a22d8407b094adb15c6610
Author: Andrew Laack <andrew@laack.co>
Date: Fri, 10 Apr 2026 15:10:36 -0500
Merge pull request #191 from imbue-ai/andrew/claude-session-id-substitution
Use CLAUDE_SESSION_ID skill substitution for Claude Code session lookup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/skills/vet/SKILL.md b/skills/vet/SKILL.md
@@ -78,7 +78,7 @@ You should only search for sessions from your coding harness. If a user requests
- IMPORTANT: Verify the conversation you found matches the current conversation and that it is not another conversation with the same search string.
3. Pass the matched file path as `--session-file`.
-**Claude Code:** Session files are stored in `~/.claude/projects/<encoded-path>/`. The encoded path replaces `/` with `-` (e.g. `/home/user/myproject` becomes `-home-user-myproject`). To find the correct session file:
+**Claude Code:** Your current session UUID is `${CLAUDE_SESSION_ID}`. Session files are stored in `~/.claude/projects/<encoded-path>/` as `<session-uuid>.jsonl`. Find the session file matching your UUID and verify it belongs to this conversation. If the UUID above was not replaced with an actual value (e.g. older Claude Code versions), fall back to a manual search:
1. Find the most unique sentence / question / string in the current conversation.
2. Run: `grep -rl "UNIQUE_MESSAGE" ~/.claude/projects/` to find the matching session file.
- IMPORTANT: Verify the conversation you found matches the current conversation and that it is not another conversation with the same search string.