agent-observe

GitHub

用于只读观察智能体的家庭结构(父、兄弟、子)及近期消息预览,帮助发现可达智能体并检查会话状态,不涉及任何会话修改操作。

skills/agent-observe/SKILL.md PrimeIntellect-ai/prime-agent

触发场景

需要查看当前智能体的直接子节点或兄弟节点列表 希望获取特定智能体的近期消息摘要以了解上下文

安装

npx skills add PrimeIntellect-ai/prime-agent --skill agent-observe -g -y
更多选项

不安装直接使用

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

指定 Agent (Claude Code)

npx skills add PrimeIntellect-ai/prime-agent --skill agent-observe -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-observe",
    "description": "Read-only roster and observation of an agent's parent, siblings, and direct children. Use to discover reachable agents and to inspect family status and bounded recent-message previews without mutating sessions."
}

Agent Observe

Observe the current agent's nuclear family through the local daemon: parent, siblings, direct children, and self. list_agents is the one family roster and covers every member agent_message.send can reach. get_agent also returns an inactive child's roster row. recent_messages also reads a member no worker holds (a passivated or finished child) from its session file, read-only, without waking it. They cannot read a root sibling that has no live session in this worker. This skill is read-only: it can list family sessions, inspect one session, and fetch bounded recent message previews. It cannot prompt, steer, clear, kill, rename, or otherwise mutate another session.

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:
    worker = await agent_observe.get_agent(child.session_name)
    recent = await agent_observe.recent_messages(child.session_name, limit=6)
    # Deletion is a parent-owned RLM operation, not an observe mutation:
    await rlm.delete_subagent(child)

API

  • await agent_observe.list_agents() returns current (the calling agent's own row) and agents (the family: parent, siblings, and direct children, active or not; the caller is excluded from agents). Each row carries sessionId, optional sessionName, relationship (parent/sibling/child), status (running/idle for live sessions, inactive without one), the live activity (tool/model/compacting/ busy/user/idle), isSessionActive, the counts known for it (messageCount, queuedCount, attachedClients), cwd when the roster row carries it, the parent edges (parentActiveSessionId, parentSessionId) and rlmChildId for subagents, and firstMessage (capped at 240 chars) for an inactive child. A member with no live session has no activeSessionId and no live detail; address it with agent_message.send using its relationship plus its sessionName, or its sessionId when the member has no name. For direct children, await rlm.list_subagents() also exposes parent-owned lifecycle handles.
  • await agent_observe.get_agent(target) returns agent, where agent contains one agent summary (the same shape as the roster rows, including a passive child's row). target is resolved like other live-session selectors: active id, session id or name, or an unambiguous id suffix.
  • await agent_observe.recent_messages(target, limit=8, max_chars=800) returns agent (the target's summary), messages (up to limit recent bounded previews), the clamped limit and maxChars, and truncated (true when older messages exist beyond the returned window). limit must be 1-50, and max_chars must be 80-2000. Each preview's index is the message's position in the full transcript.

Safety

  • This skill is read-only and exposes no mutation commands.
  • Targets outside the nuclear family are rejected; transcript reads follow the same family rule as messaging.
  • Message access is bounded by count and per-message character limit.
  • Prefer status and recent previews for orchestration. Ask the user before using observed context to steer or message another session.

版本历史

  • c6d4da9 当前 2026-11-02 10:21
  • 7cbffa7 2026-10-18 17:10

同 Skill 集合

packages/coding-agent/skills/agent-message/SKILL.md
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
skills/agent-message/SKILL.md
skills/attach-image/SKILL.md
skills/compact/SKILL.md
skills/edit/SKILL.md
skills/goal/SKILL.md
skills/mcp/SKILL.md
skills/prime-intellect/SKILL.md
skills/refine/SKILL.md
skills/rlm-heartbeat/SKILL.md
skills/skill-creator/SKILL.md
skills/websearch/SKILL.md
packages/coding-agent/examples/extensions/dynamic-resources/SKILL.md

元信息

文件数
0
版本
c6d4da9
Hash
29ed84d2
收录时间
2026-10-18 17:10

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 07:46
浙ICP备14020137号-1