agent-observe

GitHub

提供只读的Agent家族观测能力,包括列出父/子/兄弟节点状态、获取单个Agent详情及最近消息预览。用于发现可达Agent和检查会话状态,不涉及任何修改操作。

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

Trigger Scenarios

需要查看Agent层级结构 查询特定Agent的运行状态 读取Agent最近的对话历史

Install

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

Use without installing

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.

Version History

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

Same Skill Collection

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

Metadata

Files
0
Version
74591cd
Hash
29ed84d2
Indexed
2026-10-18 17:10

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-10 09:06
浙ICP备14020137号-1