[FEATURE] allow skills to programmatically rename sessions

Open 💬 10 comments Opened Feb 11, 2026 by thianpeng

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:

  1. Expose /rename as a tool that Claude can invoke during a conversation
  2. Add a session management tool with actions like rename, that skills can reference
  3. 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_

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗