[FEATURE] allow skills to programmatically rename sessions
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Skills can instruct Claude to perform actions using tools (read/write files, run bash commands), but they cannot interact with Claude Code's own session management. Specifically, there's no way for a skill to rename the current session.
Proposed Solution
Provide a mechanism for skills (or Claude in general) to programmatically rename the current session. Some options:
- Expose
/renameas a tool that Claude can invoke during a conversation - Add a session management tool with actions like rename, that skills can reference
- Allow bash access to session metadata via an env var or file path that can be written to
Any of these would let skills automate session naming as part of their workflow.
Alternative Solutions
The skill outputs a suggested /rename command for the user to copy-paste manually.
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
I have a custom /save-issue skill that saves conversation content to a dated markdown file (e.g., 2026-02-11-01-claude-code-session-rename-feature-request.md). It would be natural for the skill to also rename the session to match the saved filename, so my session list stays organized.
Additional Context
_No response_
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗