-n
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Also written --name. Every list on this page counts all of these spellings together.
Set a display name for the session, shown in /resume and the terminal title. You can resume a named session with claude --resume <name>. In an interactive session, if another live session on this machine already uses the name, Claude Code applies a variant of it instead. <br /><br />/rename changes the name mid-session and also shows it on the prompt bar
Anthropic's own wording. Read off CLI reference, captured 2026-09-26.
In the changelogs
10Releases whose published page names -n.
-
v2.1.299
Option values that start with a dash are now kept attached to their option
When Claude Code passes options on, a value starting with a dash is joined with
=, and-nis written out as--namefound in this entry's text, named in this entry
-
v2.1.290
Teammates now inherit the lead session's proactivity level
Teammates started by a lead session now receive
--proactivitywith the lead's level when one is setfound in this entry's text
-
v2.1.283
Help for
claude daemonlists commands to manage Remote Control serversclaude daemonhelp can now listremote-control list,addandremove, and worker status reports the folder being servedfound in this entry's text
-
v2.1.246
Background workers are launched with a name
Background workers are spawned with a --name argument identifying them.
named in this entry, found in this entry's text
-
v2.1.232
Background session names can be marked as chosen to avoid a collision
Background session names auto-changed to dodge collisions now survive respawn like ones you chose.
named in this entry, found in this entry's text
-
v2.1.224
Server-supplied CLI arguments are validated on self-hosted runners
Self-hosted runners now reject malformed or blocklisted CLI arguments handed down by the server.
found in this entry's text
-
v2.1.223
Cloud sessions started with a title rename themselves instead of auto-titling
Cloud sessions you start with --name keep that name instead of being overwritten by a generated title.
named in this entry, found in this entry's text
-
v2.1.221
Background session names starting with "-" survive respawn
Background sessions renamed to something starting with a dash now restart correctly.
named in this entry, found in this entry's text
-
v2.1.221
Session titles are normalised and blank titles rejected
Session titles are trimmed and cleaned, and blank ones are simply ignored instead of set.
named in this entry, found in this entry's text
-
v2.1.66
Remote Control Simplified
found in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.