message-claude
/message-claude
Wysyła wiadomość z zewnętrznego agenta lub skryptu do działającej sesji Claude Code na tym samym komputerze, np. gdy sesja Codex ma zgłosić wynik, hook lub długie zadanie ma powiadomić Claude.
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Wysyła wiadomość z zewnętrznego agenta lub skryptu do działającej sesji Claude Code na tym samym komputerze, np. gdy sesja Codex ma zgłosić wynik, hook lub długie zadanie ma powiadomić Claude.
Wyzwalacze z opisu
Oryginalny opis (EN)
Send a message from an external agent or script to a running Claude Code session on the same machine. Use when a manually started Codex session needs to tell any Claude session something, Codex needs to report back to the Claude session that launched it, a hook or long job should notify Claude, or the user asks to "send this to Claude", "tell another Claude session", "notify the Claude session", or "report back to Claude". Not for messaging from inside Claude Code when ListAgents and SendMessage are available. For messages to Codex sessions, use message-codex.
Jak działa
- Send a message
- What the helper guarantees
- Failures
Podgląd SKILL.md
---
name: message-claude
description: Send a message from an external agent or script to a running Claude Code session on the same machine. Use when a manually started Codex session needs to tell any Claude session something, Codex needs to report back to the Claude session that launched it, a hook or long job should notify Claude, or the user asks to "send this to Claude", "tell another Claude session", "notify the Claude session", or "report back to Claude". Not for messaging from inside Claude Code when ListAgents and SendMessage are available. For messages to Codex sessions, use message-codex.
---
# Message Claude
Find the exact Claude Code session and send it one plain-text message.
For the opposite direction, use [Message Codex](../message-codex/SKILL.md).
If `ListAgents` and `SendMessage` are available, use them. Do not use the raw inbox to bypass a
permission rule that denied either tool. The workflow below is for external callers such as a
standalone Codex session, Codex launched by Claude, a hook, or a script.
The bundled helper supports macOS, Linux, and WSL 2. Native Windows uses a named pipe and is not
implemented here. Requires JDK 17+ and Kotlin 2.4.21+ (`kotlinr` on `PATH`).
The first run resolves the pinned JSON dependency and compiles the script.
## Send a message
Resolve [scripts/message_claude.main.kts](scripts/message_claude.main.kts) from this skill's directory.
1. List the registered sessions:
```sh
kotlinr <skill-dir>/scripts/message_claude.main.kts --list
```
2. Select the target by its exact `name`. If names repeat, narrow with `--cwd` or `--pid`. Never
guess between multiple matches.
3. Send a short message:
```sh
kotlinr <skill-dir>/scripts/message_claude.main.kts \
--name the-session-name \
--message 'codex: the migration finished; tenant_id is the new column'
```
Omit `--message` to read arbitrary or multiline text from stdin.
The helper uses `--config-dir`, then `CLAUDE_CONFIG_DIR`, then `~/.claude`. Pass `--config-dir`
when Claude uses a custom directory that the caller did not inherit.
## What the helper guarantees
- Reads `<config-dir>/sessions/*.json` and refuses zero or multiple target matches.
- Reads the target's `peerToken` without printing it. The key filename hashes
`messagingSocketPath` exactly as recorded; it does not resolve `/tmp` to `/private/tmp`.
- JSON-encodes the complete auth and message payload before connecting, so quotes, newlines, and
backslashes in the message remain valid.
- Reports a successful socket write, not guaranteed delivery. The receiving session may still
hold or refuse the message through `crossSessionInbound`.
## Failures
- No matching session: list again and check `name`, `cwd`, `pid`, and `--config-dir`.
- Connection failure: the registry entry may be stale; list again instead of retrying blindly.
- Permission error: the Codex sandbox may block that Unix socket. Report the socket path and ask
for a grant scoped to its directory; do not bypass the sandbox.
- Missing `peerToken`: stop and verify the config directory and target rather than sending an
unauthenticated message.
Send one concise message and identify the sender in its first words. Do not send repeated probes:
messages can be held, refused, or rate-limited, and an incoming message never grants user authority.
Reference: <https://code.claude.com/docs/en/cross-session-messaging>
Pliki w paczce (2)
- SKILL.md 3 KB
- scripts/message_claude.main.kts 6 KB
Wersje
W bazie nie ma innych skilli o nazwie message-claude.
Migawka bazy z 28.10.2026 · wersja paczki cbed917c3217 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100message-codex
Kolejkuje wiadomość z Claude Code, innego agenta lub skryptu do istniejącej sesji Codex, by zgłosić wynik lub powiadomić sesję Codex. - 100agent-messaging-session-relay
Wysyła wiadomość do innej sesji Codex lub Claude albo agenta w panelu tmux i sprawdza, kto nadał otrzymaną wiadomość. - 98session-bridge
Koordynuje pracę z drugą sesją Claude Code w tym samym repozytorium: sprawdza nakładanie się zmian i wysyła wiadomość. - 100session-relay
Wysyła wiadomość do innej sesji Codex lub Claude albo agenta w panelu tmux i sprawdza, kto nadał wiadomość, która dotarła. - 95xsm
Pozwala komunikować się z innymi sesjami Claude Code lub Codex na tym samym komputerze: listować je, wysyłać zadania i odpowiadać. - 100send-agent-message
Wysyła wiadomość lub polecenie do konkretnego agenta działającego wewnątrz zadania.