Cc Get Session Id

Get the current Claude Code session ID. Use when you need to reference or display the session ID.

diegosouzapw Updated 54 repo stars

File contents

Get Session ID

Run this to get the current session ID:

CWD_HASH=$(echo -n "$PWD" | md5 | cut -c1-8)
cat "/tmp/claude-session-id-${CWD_HASH}" 2>/dev/null || cat /tmp/claude-session-id

The session ID is a UUID like d201921f-1916-4ad3-bca8-74f8d54e9da1.

diegosouzapw/awesome-omni-skill/tree/main/skills/design/cc-get-session-id-majiayu000 commit 0029a99a93

Frequently asked questions

npx skillmds@latest add diegosouzapw/cc-get-session-id