/hotline:hotline-caller-idfrom hotline
Returns the current Claude Code session ID for resuming conversations. Useful when asked 'what is your session ID?' or for debugging session identity.
Ships in hotline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Discover your own session ID. On current Claude Code (>= 2.1.132) this resolves natively in a single call; older clients fall back to Hotline's legacy fingerprint-and-grep discovery.
Resolve plugin paths first:
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
eval "$(bash "$PLUGIN_ROOT/scripts/paths.sh")"
This sets HOTLINE_SCRIPTS (and others). Use $HOTLINE_SCRIPTS in all script references below.
One Bash call resolves identity on every current harness:
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
eval "$(bash "$PLUGIN_ROOT/scripts/paths.sh")" && \
bash "$HOTLINE_SCRIPTS/session-init.sh"
The script checks, in order: an explicit HOTLINE_CALLER_SESSION_ID override, Claude Code's native CLAUDE_CODE_SESSION_ID (exported into every Bash subprocess since 2.1.132), Codex's CODEX_THREAD_ID, and only then the legacy fingerprint path.
Parse the JSON output:
{"status": "cached", "session_id": "...", "caller_kind": "native"} — done. This is the normal outcome on current Claude Code (caller_kind may also be override or codex; a legacy fingerprint cache hit omits the field entirely). Skip to Report.{"status": "planted", "fingerprint": "..."} — legacy client fallback (pre-2.1.132 Claude, or a stripped environment). Save the fingerprint and proceed to Legacy Step 2 in a separate tool call.{"status": "error", "message": "..."} — report the error to the user. Discovery failed.Only needed when the previous call returned planted. This MUST be a separate Bash tool call — the fingerprint is written into the transcript when the first tool call returns, so it won't exist yet if both steps run in one shell.
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
eval "$(bash "$PLUGIN_ROOT/scripts/paths.sh")" && \
bash "$HOTLINE_SCRIPTS/session-init.sh" discover "<fingerprint>"
Replace <fingerprint> with the planted value.
Parse the JSON output:
{"status": "discovered", "session_id": "..."} — got it. Proceed to Report.{"status": "error", "message": "..."} — report the error. Discovery failed.Tell the user their session ID:
Your session ID is:
<session_id>You can resume this conversation with:
claude --resume <session_id>
$CLAUDE_CODE_SESSION_ID is right there in your environment. It resolves the override and Codex rungs too, falls through to the legacy path when the native value is missing, and validates what it finds — echoing the variable yourself gets none of that, and passes a malformed value straight through.planted and discover go in two separate Bash tool calls. The fingerprint only reaches the transcript when the first call returns, so a single combined invocation searches for something that isn't written yet.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin hotline9 skills in this plugin
/hotline-add-contactRegister this workspace in dirmap so hotline-dial can reach it./hotline-call-statusRead the hotline call registry — which caller session dialed which callee session, on what transport and host handle. 'who called whom', 'list hotline calls', 'what callees are registered'./hotline-dialCall another Claude Code or Codex workspace — quick calls, work orders, conference calls, follow-ups, and Codex thread adoption. 'Call/dial/message/delegate to <workspace or project>'. Also dials a workspace on ANOTHER machine over SSH (--remote <ssh-target>, herdr on that box).