agent-message

GitHub

用于在智能体层级结构内向父级、同级或子级发送直接消息。通过本地守护进程实现身份验证的消息传递,支持唤醒空闲子代理并获取投递回执,适用于多智能体协作中的内部通信与任务分发。

packages/coding-agent/skills/agent-message/SKILL.md PrimeIntellect-ai/prime-agent

Trigger Scenarios

需要向父级、同级或子级智能体发送指令 唤醒处于空闲状态的子智能体 在多智能体架构中进行内部状态同步

Install

npx skills add PrimeIntellect-ai/prime-agent --skill agent-message -g -y
More Options

Non-standard path

npx skills add https://github.com/PrimeIntellect-ai/prime-agent/tree/main/packages/coding-agent/skills/agent-message -g -y

Use without installing

npx skills use PrimeIntellect-ai/prime-agent@agent-message

指定 Agent (Claude Code)

npx skills add PrimeIntellect-ai/prime-agent --skill agent-message -a claude-code -g -y

安装 repo 全部 skill

npx skills add PrimeIntellect-ai/prime-agent --all -g -y

预览 repo 内 skill

npx skills add PrimeIntellect-ai/prime-agent --list

SKILL.md

Frontmatter
{
    "name": "agent-message",
    "description": "Message an agent's parent, siblings, or direct children through the daemon. Discover reachable agents with agent_observe.list_agents, then send direct text without spoofing sender identity."
}

Agent Message

Send direct messages within the current agent's nuclear family through the local daemon: parent, siblings, and direct children only. Roots are siblings. The daemon derives your sender identity from the current session; do not try to include a from field.

Call directly from the kernel:

children = await rlm.list_subagents()
child = next((item for item in children if item.active_session_id), None)
if child is not None:
    receipt = await agent_message.send(
        "Please inspect the latest result.",
        receiver_role="child",
        receiver_name=child.session_name,
    )
    # Keep the child until this follow-up finishes so its result remains observable.

API

  • await agent_observe.list_agents() (agent-observe skill) is the roster: it lists the parent, siblings, and children this skill can reach, active or not, with the relationship and sessionName that send takes as receiver_role and receiver_name.
  • await agent_message.send(message, receiver_role="parent" | "sibling" | "child", receiver_name=None) — sends one direct text message to one family member. Sending to an inactive or idle completed subagent wakes it and starts an ordinary follow-up turn in that same session and context. The child remains available only until its parent session closes. The daemon resolves receiver_role within the current agent family; receiver_name is required for siblings and children and omitted for the unique parent. send("all", message) broadcasts only to the family roster and returns {receipts: [...]} in roster order; successful entries are ordinary receipts and failed entries contain the target id and a short error. One failed delivery does not reject successful deliveries. Messages always use steering delivery so a busy target sees them during its active run. Returns a receipt with a deliveryStatus field: "delivered" means the message reached an idle target's context; "queued" means a steering message was accepted and will deliver when the target's current work allows (send does not block waiting for that). Delivered receipts carry deliveredAt, queued receipts carry queuedAt.

Safety

  • Do not delete a child immediately after send: delivered follow-ups may still be running and queued receipts have not run yet. Wait until observation shows the child is idle and its context is no longer needed before calling await rlm.delete_subagent(child).
  • Reach is limited to parent, siblings, and direct children; relay through an intermediate child instead of messaging grandchildren or cousins directly.
  • Sender identity is daemon-derived and cannot be spoofed from Python.
  • The daemon enforces message size, rate, and pending-queue limits before accepting delivery.

Version History

  • 1eee293 Current 2026-09-11 13:27

    将原有的 agent_message.list_agents 合并至 agent_observe.list_agents 作为统一的名册接口,修复了只读范围问题,优化了快照构建顺序及预览数据的限制。

  • bc0fa76 2026-08-27 09:01

Same Skill Collection

packages/coding-agent/skills/agent-observe/SKILL.md
packages/coding-agent/skills/attach-image/SKILL.md
packages/coding-agent/skills/compact/SKILL.md
packages/coding-agent/skills/edit/SKILL.md
packages/coding-agent/skills/goal/SKILL.md
packages/coding-agent/skills/linear/SKILL.md
packages/coding-agent/skills/mcp/SKILL.md
packages/coding-agent/skills/notion/SKILL.md
packages/coding-agent/skills/prime-intellect/SKILL.md
packages/coding-agent/skills/refine/SKILL.md
packages/coding-agent/skills/rlm-heartbeat/SKILL.md
packages/coding-agent/skills/skill-creator/SKILL.md
packages/coding-agent/skills/websearch/SKILL.md
packages/coding-agent/examples/extensions/dynamic-resources/SKILL.md

Metadata

Files
0
Version
c91e6e9
Hash
5547aa6b
Indexed
2026-08-27 09:01

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-24 22:17
浙ICP备14020137号-1