Send Message
Send a direct message to another agent's terminal session. The message is written to the target agent's PTY using the two-step message mode for reliable delivery.
Parameters
| Flag | JSON Field | Required | Description |
|------|-----------|----------|-------------|
| --to / -t | to | Yes | Target agent's PTY session name |
| --message / -m | message | Yes | Message text (or pipe via stdin) |
| --message-file | — | No | Read message from a file path |
| --urgent | — | No | A hold or plan change for an agent that is busy: it is handed to the agent at its next tool call instead of after its turn. Honoured only when you are the agent's team lead, the agent that delegated one of its open WorkItems, or the orchestrator; from anyone else the flag is ignored and the message queues as usual. Shown once; the idle delivery then says it was already shown. Use it for "stop" or "change course", not for ordinary updates. |
Examples — CLI Flags (preferred)
# Simple message
bash execute.sh --to qa-1 --message "PR #42 is ready for review"
# Multi-line message via stdin (avoids shell escaping)
echo "PR #42 is ready for review. It's passing all tests." | bash execute.sh --to qa-1
# Message from file
bash execute.sh --to qa-1 --message-file /tmp/task-details.txt
# Hold a busy worker you delegated to
bash execute.sh --to qa-1 --urgent --message "Hold: do not render, the brief changed"
Examples — Legacy JSON (backward compatible)
bash execute.sh '{"to":"qa-1","message":"PR #42 is ready for review."}'
Output
JSON confirmation of message delivery.
The skill never waits for a busy recipient. If the recipient cannot take the
message now (a Claude Code agent in the middle of a turn, an agent still
starting, a session that is down), the output has "queued": true,
"delivered": false, its position in the recipient's queue when known
(1 = next) and a note. The message is delivered automatically when the
recipient is idle: do not resend it or wait for it — carry on. With "spendCapped": true the
recipient has hit its daily token cap: the message waits and is delivered
automatically when the cap resets at midnight or the owner boosts it. Do not
resend a queued message.
What the recipient sees
Your message arrives with one header line naming you and how to answer:
[MESSAGE from Atlas (Think Tank) — a colleague, not the owner. Answer with send-message --to think-tank-atlas-b4e166f6; do not post it in an owner thread.]
Thanks. Two things. …
When you receive such a message, answer it with `send-message --to <that
session> (a bare reply` also goes back to that agent). Never answer it in
the owner's thread with reply-channel "@Name …": the owner would read a
conversation that is not for them, and the harness refuses that post.
Paused teams
The owner can pause a team temporarily (specs/2026-10-04-team-pause.md). A
paused team is hidden from agents and takes no work: handing it work, or
messaging, starting or assigning a ticket to one of its members, fails with
code: "team_paused" and a message saying what to do instead — usually
gh issue create -R <repo> --title "…" --body "…" (the team's issue repo),
otherwise tell the orc. Do that; do not retry or route around the pause.