session-title
/session-title
Refresh the current Claude Code session's title (shown in /resume picker and terminal tab). Trigger on "rename session", "refresh session title", "update tab title", "set session title to ...".
- Author
- kdeldycke ↗
- Repository
- dotfiles ↗
- Licence
- BSD-2-Clause
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
BSD-2-Clause, otwarta.
What it does and when to use it
Refresh the current Claude Code session's title (shown in /resume picker and terminal tab). Trigger on "rename session", "refresh session title", "update tab title", "set session title to ...".
Triggers from the description
Original author description
Refresh the current Claude Code session's title (shown in /resume picker and terminal tab). Trigger on "rename session", "refresh session title", "update tab title", "set session title to ...".
How it works
SKILL.md has no level-two headings · 25 lines, 262 words
SKILL.md preview
--- name: session-title description: Refresh the current Claude Code session's title (shown in /resume picker and terminal tab). Trigger on "rename session", "refresh session title", "update tab title", "set session title to ...". compatibility: 'Designed for Claude Code. Recommended model: Sonnet.' --- When the user asks to refresh or rename the current session's title: 1. **Compose the summary myself, from conversation context.** I already have the full conversation in context: pick a 3-7 word title (max 50 chars) that captures the current topic. Do not call any external generator: that would spawn a Haiku inference (slow), and a fresh summary I'd pass to it tends to drift away from what I already know. Use sentence case. Capitalize the first word and proper nouns only. 2. **Determine the session_id and transcript path.** - `session_id` is in the env var `CLAUDE_SESSION_ID` if set, otherwise: take the basename (without `.jsonl`) of the most recently modified `*.jsonl` file directly under `~/.claude/projects/<sanitized-cwd>/` where `<sanitized-cwd>` is the current working directory with `/` replaced by `-`. - The transcript path is `~/.claude/projects/<sanitized-cwd>/<session_id>.jsonl`. 3. **Apply via the helper.** The helper auto-prepends the timestamp prefix (`MM-DD@HH:MM`) extracted from the first `custom-title` line in the transcript, so I should pass only the summary part: ```bash /Users/kde/code/dotfiles/dotfiles/.claude/hooks/session-title.py set "$session_id" "$transcript" "Refactor API client error handling" ``` The helper sanitizes (strips control chars, rejects path-shaped values, caps at 80 chars), writes the sidecar at `~/.claude/session-titles/<session_id>`, and writes OSC 0 to update the terminal tab immediately. The `UserPromptSubmit` hook applies the sidecar title at the next prompt through Claude Code's supported rename path (the same write `/rename` uses), which persists it in the transcript and re-applies it on every later start/resume: the new title lands one prompt after this step. 4. **Confirm in one short sentence**, e.g.: `Session title updated to: 04-29@10:14 Refactor API client error handling`
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · kdeldycke/dotfiles | 92 | BSD-2-Clause |
| brezzashen/orca-toolkit | 100 | MIT |
Database snapshot: 13.11.2026 · package version 8fe8520790ac (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100terminal-title
Automatically updates terminal window title to reflect the current high-level task. Use at the start of every Claude Code session when the user provides their first prompt, and whenever the user switches to a distinctly new high-level task. Helps developers manage multiple… - 100catchup
Use when the user says "/catchup", "catch up", "what did I do in the other session", "read my last session", "continue from the app", "continue from terminal", or wants this Claude to read the full conversation history from another Claude Code surface (terminal <-> desktop Code tab) - 93terminal-title
Automatically updates the terminal window title to reflect the current high-level task. Use at the start of every Claude Code or Codex session when the user provides their first prompt, and whenever the user switches to a distinctly new high-level task. Helps developers manage… - 96rc-tab
Open a Rex tab in a repo running a new Claude Code session with Remote Control on, and give the user its claude.ai link. Use when the user, usually on their phone, asks to start or open Claude in some repo, or for a session in a repo they can drive remotely. - 100peon-ping-rename
Rename the current Claude session for peon-ping notifications and terminal tab title. Use when user wants to give this session a custom name like "/peon-ping-rename Auth Refactor". Call with no argument to reset to auto-detect. - 100resume-claude-session
Use when the user asks Codex to continue, resume, or take over work from a Claude Code session by session name or session id (UUID or UUID prefix). Examples include "continue the claude session called feature-x" or "/resume-claude-session a3b5c9f2". Do not use for ordinary Codex…