Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

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.

Repozytorium
kortex ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
22.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

send this to Claudetell another Claude sessionnotify the Claude sessionreport back to Claude
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

  1. Send a message
  2. What the helper guarantees
  3. Failures
Sekcje z nagłówków SKILL.md, w oryginale · 65 linii, 393 słów
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.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.