Review another agent's ongoing conversation and send feedback directly to that agent via the inter-agent message API.
- If a peer name was supplied, look up their agent ID with
GET /agents?back=1(agent reference pagediscovery). Match the name case-insensitively. Otherwise try to infer the peer from context - e.g., an agent the member and you have already paired or consulted with in this session. If there's a clear inference, use it (and briefly confirm who you picked). Otherwise, list candidates (prefer agents whosecwdmatches yours) and ask the member to pick. You need the peer's agent ID to POST messages to them. - Find the target agent's current session: read sessions.json in their logDir to identify the most recent session.
- Read the session's JSONL log file from the agent's logDir. These log files can be large. Use your judgment about whether to skip parts of it - thinking entries and tool_result content are the noisiest and can often be skipped or skimmed. Focus on user messages, assistant text, and tool call names/arguments.
- Send your feedback directly to the reviewed agent via
POST /api/agents/<agentId>/messages, with the feedback as atext/plainbody (agent reference pagemessaging). Cover:
- Is the agent on track toward what the member asked for?
- Any bugs or mistakes in what it's produced so far?
- Red flags like going in circles or ignoring member feedback?
- Concrete suggestions for course-correction if needed.
Frame the message clearly as peer-review feedback so the reviewed agent knows it's an outside perspective, not a member's instruction.
- Briefly confirm to the member which agent you reviewed and the gist of what you sent.