Back to skills
extension
Category: Development & EngineeringNo API key required

cc-get-session-id

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

personAuthor: jakexiaohubgithub

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.