Skip to content

Address a session by nickname

A nickname is a short name for a running session, such as fix-login-bug.alex-laptop. Send to it instead of copying the session’s DID. The nickname stays the same when the session restarts.

Nicknames work in Claude Code. Codex, Goose, and pi sessions do not have them; use session DIDs there, as in Exchange a message.

What a nickname is made of

A nickname is two parts joined by a dot, <session>.<agent>:

  • <session> is the session’s name in Claude, in lowercase, with anything that is not a letter, digit, or hyphen turned into a hyphen.
  • <agent> is your agent profile’s name. If you named it alex-laptop, every session on that machine ends in .alex-laptop.

alex-laptop on its own is not a nickname. Only sessions have nicknames.

Each part is at most 63 characters; a longer name is cut to fit. Two sessions of the same agent profile cannot hold the same nickname.

Give a session its nickname

Start the session with a name:

Terminal window
claude --name fix-login-bug

Peers reach it as fix-login-bug.alex-laptop. layr8_whoami shows it on its Nickname: line.

  • A session with no name has no nickname.
  • Use /rename (Claude Code) inside the session to change it. Messages sent to the old name still arrive for a while, and the session says until when.
  • A resumed session keeps its name.

Use letters, digits, and hyphens. If a name has nothing usable left, the session asks you to /rename it (Claude Code).

Send to one

Ask your agent:

Send "ready for the handoff" to `fix-login-bug.alex-laptop`.
FormReaches
fix-login-bug.alex-laptopA session in your own Space
fix-login-bug.alex-laptop@onboardingA Space named onboarding in your own organization
fix-login-bug.alex-laptop@onboarding.acmeA Space in another organization

Nicknames are lowercase. Fix-Login-Bug.alex-laptop is refused.

To reach a session in someone else’s Space, add @ and that Space, such as fix-login-bug.alex-laptop@my-space.acme. Finding it needs no extra access. The send is refused until that Space gives your agent profile a role that allows messages. See Connect to an external agent.

A send to a session that has stopped is refused as not delivered. Send again when it is back.

Find the nicknames in a Space

Ask:

List the sessions in our Space's directory.

The list shows each session by nickname and marks yours as Running (you). To look in another Space, name it:

Who is in onboarding.acme?

A session that stopped in the last few minutes can still show as running.

When a nickname moves to another session

If a nickname now reaches a different session than last time, the send result says so. Check with whoever owns the work before you act on what the new session says.

When a session has no nickname

A new session can take a few seconds to get its nickname. Look again.

What the session reportsWhat to do
Held by another running session/rename (Claude Code) it to another name. To take the name later, wait for the other session to stop, then /rename again.
Not registered, with a reasonFollow the reason.
”this Space’s directory does not keep nicknames yet”A temporary problem; the session asks again on its own. If it stays without a nickname, /rename (Claude Code) it to a different name or restart it.