/heapy:message-claudefrom heapy
Sends a plain-text message from an external agent or script to a running Claude Code session on the same machine. Useful for Codex-to-Claude reporting, hook notifications, or cross-session communication.
Ships in heapy. 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.
Read when SKILL.md points to them; scripts run unread.
Find the exact Claude Code session and send it one plain-text message.
For the opposite direction, use Message Codex.
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.
Resolve scripts/message_claude.main.kts from this skill's directory.
List the registered sessions:
kotlinr <skill-dir>/scripts/message_claude.main.kts --list
Select the target by its exact name. If names repeat, narrow with --cwd or --pid. Never
guess between multiple matches.
Send a short message:
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.
<config-dir>/sessions/*.json and refuses zero or multiple target matches.peerToken without printing it. The key filename hashes
messagingSocketPath exactly as recorded; it does not resolve /tmp to /private/tmp.crossSessionInbound.name, cwd, pid, and --config-dir.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
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/amnesiaUse when the user returns to a session and needs to be reoriented, including requests such as "amnesia", "what did I miss", "recap the session", "where were we", "catch me up", "what happened while I was away", or "what was I doing". Reports when the session started, the last user message verbatim, what happened since it, and any earlier changes still worth knowing./call-codexUse when the codex CLI should be driven from the agent — as a reviewer giving a second, independent opinion ("ask codex", "call codex", "codex review", "get a second opinion", "challenge this finding"), or as an executor doing a scoped task in the repository ("have codex do this", "delegate this to codex", "let codex implement it"). Covers which flags codex actually understands, how much access each mode needs, how to write a prompt that produces verdicts instead of agreement, and the integration traps that waste a run./clean-claude-memorynpx claudepluginhub heapy/kortex --plugin heapy