fn brief_message(leader: &str, worker: &str, slug: &str, brief: &str) -> StringExpand description
The worker’s first message: who it is, who it reports to, then the leader’s brief. It names the tool exactly: a worker that went looking for “SendMessage” found Claude Code’s own cross-session tool, whose message reaches the leader unverified and isn’t counted as a report.
It also says whose name goes on what the worker publishes. A worker’s own
name is in its environment, but the only name in the text it is handed is
its leader’s, and a file it reads may show another agent’s name as an
example (agentmux#5209: a worker started under another agent’s workspace
titled its PR with that agent’s name, and the review notices went there).
gh-agent rewrites a wrong signature at the PR; this keeps the worker from
writing it, in commits and comments too. worker is the worker’s name as
srv made it; slug is its address, its AGENTMUX_AGENT_ID.