id

Report Claude Code session identity from environment and cache.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/EndUser123/cc-skills-utils --skill id-enduser123
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: id
Source: https://github.com/EndUser123/cc-skills-utils/tree/main/skills/id
Command: npx skills add https://github.com/EndUser123/cc-skills-utils --skill id-enduser123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reports authoritative Claude Code session identity for the current terminal, including session_id, transcript_path, and terminal_id, with no heuristics or guessing.

Core Features & Use Cases

  • Authoritative reporting: reads identity data from the per-terminal cache and environment to produce a reliable session identity.
  • Validation & formatting: ensures required fields are present and formats output as a structured report.
  • Session history (optional): shows recent identity-related entries from a local registry for context when available.

Quick Start

Run /id to fetch the current terminal's session identity.

Frequently Asked Questions about id

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the current Claude Code session ID in my terminal?▼

To get the Claude Code session ID, you can run a command that reads the per-terminal cache and environment variables. This exposes the authoritative session_id, transcript_path, and terminal_id for your current console without heuristics.

Can I retrieve the transcript path for my active Claude Code session?▼

Yes, you can retrieve the transcript path by reading the per-terminal identity cache. The system validates required fields and formats a structured report containing the transcript_path alongside the session_id and terminal_id.

What is an authoritative Claude Code session identity report?▼

An authoritative session identity report is a structured output containing validated session_id, transcript_path, and terminal_id fields. It reads directly from environment variables and cache rather than guessing, optionally including session history for context.

Does retrieving Claude Code session identity require specific terminal configurations?▼

Retrieving session identity applies in terminals where WT_SESSION-based per-tab identity cache is maintained and where an identity.json artifact exists for the current console. It relies on these specific environmental configurations to validate required fields.

Why does my Claude Code session identity show missing fields?▼

Missing fields in your session identity occur when the required identity.json artifact or WT_SESSION-based per-tab cache is absent. The system validates these required fields from the cache and environment, meaning incomplete terminal configurations prevent accurate reporting.