Agent skill

cc-get-session-id

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

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/cc-session-get-id

SKILL.md

Get Session ID

Run this to get the current session ID:

bash
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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results