/session-mention:session-mentionfrom session-mention
Diagnoses and fixes cross-session messaging issues in Claude Code, including @mention failures, naming problems, and session management commands.
Ships in session-mention. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
공통 규칙 (이 스킬의 모든 단계에 적용)
Claude Code can message another live session on the same machine: type @ in your
prompt, pick the target from the typeahead, and your message is delivered there. The
whole difficulty is one thing: the target has to have a name you can address, and
that name has to be unique. Everything below is the failure modes and the fixes.
All facts here are checked against the official docs (code.claude.com/docs/en/cross-session-messaging). A few field observations that the docs do not state are marked [관찰] so you know they are not guaranteed behavior.
You address a session by the name you gave it, set either at launch or live:
claude -n mail # launch a session named "mail" (--name)
/rename mail # rename the CURRENT session (run inside the session)
An unnamed session still gets a default display name like my-app-3f
(<folder>-<suffix>). That default is a label, not a resume handle (passing it to
--resume / /resume won't find the session). So for reliable addressing, give
sessions real names.
@ doesn't send / doesn't find the session
/rename <name> inside it, or relaunch with -n <name>. List names with claude agents.The name has a space and won't match
@"release notes", or pick from the typeahead so the quotes are added. Simplest: name sessions without spaces (release-notes).@name goes to the WRONG session (a stale one), no error
/rename into a name another live session already holds, the existing session keeps the name and yours is renamed to a two-word-suffix variant (e.g. auth-refactor-graceful-unicorn). So @name still resolves to that older session, which may be one you forgot. → Address the variant instead, or claude stop <id> the old holder first, then take the name. When unsure which is which, use the short id shown in claude agents rather than the name.Resuming a conversation, but the resumed session isn't reachable by its name
-r <id> does not close the original. If you resume with -r <id> -n <name> while the original (which holds <name>) is still alive, the dedup rule renames your resumed one to a variant. → Stop the original first, or address the variant, or fork instead (below).I only want to rename it / branch it
/rename <name> (same unique-name rule applies). To keep the old one and make an independently-named copy, use --fork-session on resume: it creates a new session (fresh name allowed) while the original stays untouched.Opening an old/large session warns before resuming
| Command | What it does |
|---|---|
claude -n <name> | launch a named session (the precondition for @) |
@<name> | message that session (@"two words" if the name has a space) |
/rename <name> | rename the current live session (unique-name rule applies) |
claude agents | list live sessions (needs a terminal) |
claude agents --json | same list for scripts (no terminal needed) |
claude agents --json --all | also include completed background sessions |
claude --bg | start in the background and return (your next prompt is the task) |
claude attach <id> | pull a background session into this terminal |
claude logs <id> | see what a session did |
claude stop <id> (kill) | end a session (frees its name) |
claude -r <id> | resume a past conversation |
claude -r <id> --fork-session | resume into a new copy, original kept |
claude agents needs a TTY; in scripts use --json. Example, name + status of each:
claude agents --json | python3 -c "import json,sys;[print(a.get('name')) for a in json.load(sys.stdin)]"
@ working-n at launch, /rename live). No name, no @.release-notes, not release notes.@name hits the other one. Free the name (claude stop <id>) before reusing it.@-mention syntax needs Claude Code v2.1.232+.claude --version and update if @ is missing.A session receiving a message applies its inbound control (accept / hold / refuse) and its permission-mode default, so a delivered message is not necessarily acted on immediately. If a handoff seems ignored, check the receiving session's inbound setting. [관찰] the receiving session tends to re-read the handoff against its own current task, so sending work to a session busy with something else can derail it, pick the right target.
@ autocomplete even when addressable; typing the full name can still work.claude agents rows may show live status (busy / idle / blocked / done); done typically needs --all.[f655ff]) can appear per row to disambiguate same-named sessions.Cross-session messaging isn't a feature you learn, it's a name you keep: name the
session, no spaces, and make sure nothing else already holds that name. When it
misroutes it does so silently, so verify the target with claude agents, not the tab title.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cross-session, session-management, claude-agents, mention-fix
npx claudepluginhub hanmariyang/giting-skills --plugin session-mentionOther plugins' skills for the same job