Search the documentation
15 pages for /rename.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…`customTitle` | `string \| undefined` | User-set session title (via `/rename`) | | `firstPrompt` | `string \| undefined` | First meaningful user prompt in the se…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…d their later restarts. Claude Code also keeps a name you set with [`/rename`](/docs/en/commands) or `Ctrl+R` across that restart, so you can still run [`claude --resume <name>`](/docs/en/sessions#na…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…it. </Warning> ### Resume conversations <Tip> Name sessions with `/rename` and treat them like branches: each workstream gets its own persistent context. </Tip> Claude Code saves conversations lo…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ire Zed `keymap.json` instead of merging in its keybinding * Fixed `/rename` silently confirming when the session registry could not be updated; it now says other sessions may still show the old nam…
Use Claude Code on the web
Claude Code CLI · in the page
claude-code-on-the-web
…in cloud sessions: * **`/model`, `/effort`, `/fast`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argu…
CLI reference
Claude Code CLI · in the page
cli-reference
…t of it](/docs/en/sessions#name-your-sessions) instead. <br /><br />[`/rename`](/docs/en/commands) changes the name mid-session and also shows it on the prompt bar…
Commands
Claude Code CLI · in the page
commands
…| | `/rename [name]` | Rename the current session and show…
Manage costs effectively
Claude Code CLI · in the page
costs
…d work. Stale context wastes tokens on every subsequent message. Use `/rename` before clearing so you can easily find the session later, then `/resume` to return to it. * **Add custom compaction instr…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…e unless you typed that name at this terminal, with `--name` or with `/rename` and the name, since you launched or last resumed the session. When the output lists anything, it ends with a note saying…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…available in `-p` mode. `/model`, `/effort`, `/fast`, `/color`, and `/rename` accept the value as an argument, for example `/model sonnet`, and `/mcp` with no argument prints a text summary of server…
Hooks reference
Claude Code CLI · in the page
hooks
…ent session title if one is already set, for example via `--name` or `/rename`. A hook that emits `sessionTitle` can check `session_title` first to avoid overwriting a title the user set explicitly |…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…, `--remote-control`, or `/remote-control` 2. The title you set with `/rename` 3. The last meaningful message in existing conversation history 4. An auto-generated name like `myhost-graceful-unicorn`,…
Manage sessions
Claude Code CLI · in the page
sessions
…| | During a session | `/rename auth-refactor`. The name also appears on the prompt bar…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…altitlefromrename) | Stop [`/rename`](/docs/en/sessions#name-your-sessions) and `--name` from changing the terminal tab title…
Customize your status line
Claude Code CLI · in the page
statusline
…| Session name. Uses the custom name set with the `--name` flag or `/rename` when one exists, otherwise the AI-generated session title. The [default display name](/docs/en/sessions#name-your-session…