[Feature Request] Programmatic session rename API for agents
Bug Description
Feature request: programmatic session rename
Allow agents running inside a Claude Code session to rename the current
session — e.g. via a new claude session rename <title> subcommand, a
Bash-callable CLI, or an exposed API.
Use case: skills that run at the end of a session (like a pre-close
cleanup) want to set a descriptive title so the session is findable via
/resume later. Today the agent has to ask the user to paste
/rename <title> manually, which breaks autonomous workflows.
Today /rename is strictly user-typed — no Bash/file-edit/API path
exists. Adding a programmatic equivalent would unblock skills that want
to auto-title sessions based on what actually happened in them.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.104
- Feedback ID: 7d1f132d-270f-4e23-b5da-19938e96dc55
Errors
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗