AGENT SKILL

agent-observe

Read-only observation of active Prime Agent sessions through the local daemon. Use to list agents, inspect session status, and read bounded recent-message previews without mutating other sessions.

License 许可
MIT
最近更新
2026-08-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
agent-observe
description
Read-only observation of active Prime Agent sessions through the local daemon. Use to list agents, inspect session status, and read bounded recent-message previews without mutating other sessions.

02 资源文件 2

03 SKILL.md 正文

Agent Observe

Observe active Prime Agent sessions through the local daemon. This skill is read-only: it can list 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 and agents. Each agent includes active session id, session id, optional name, runtime kind, cwd, status, streaming state, message count, pending count, and a latest message preview. This includes live subagents and successful completed subagents retained by an open parent. For the current parent session's direct children, prefer await rlm.list_subagents() over filtering this global list. Every RLM child gets a readable unique session_name, or the orchestrator can choose one with rlm("task", name="api-reviewer"); use that name directly as an observation target.
  • await agent_observe.get_agent(target) returns agent, where agent contains one agent summary. target is resolved like other live-session selectors: active id, session id/name, or unambiguous suffix.
  • await agent_observe.recent_messages(target, limit=8, max_chars=800) returns up to limit recent bounded message previews for the target session. limit must be 1-50, and max_chars must be 80-2000.

Safety

  • This skill is read-only and exposes no mutation commands.
  • 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.

04 同仓库更多 Skills