{{ exchange.subagent_type }}

Sub-Agent Exchange Detail

{{ exchange.description or "No description" }}

Time

{{ exchange.timestamp[:10] }} {{ exchange.timestamp[11:19] }}

Duration

{{ exchange.duration_seconds }}s

Total Tokens

{{ exchange.total_tokens|format_compact }}

Tool Calls

{{ exchange.total_tool_use_count }}

Cost

${{ "%.4f"|format(exchange.cost) }}

Sub-Agent Tokens

{% set max_tokens = [exchange.subagent_usage.input_tokens, exchange.subagent_usage.output_tokens, exchange.subagent_usage.cache_read_tokens, exchange.subagent_usage.cache_creation_tokens]|max %}
Input {{ exchange.subagent_usage.input_tokens|format_compact }}
Output {{ exchange.subagent_usage.output_tokens|format_compact }}
Cache Read {{ exchange.subagent_usage.cache_read_tokens|format_compact }}
Cache Write {{ exchange.subagent_usage.cache_creation_tokens|format_compact }}
Total Sub-Agent Tokens {{ (exchange.subagent_usage.input_tokens + exchange.subagent_usage.output_tokens + exchange.subagent_usage.cache_read_tokens + exchange.subagent_usage.cache_creation_tokens)|format_compact }}

Parent Message Tokens

{% set parent_max = [exchange.parent_usage.input_tokens, exchange.parent_usage.output_tokens, exchange.parent_usage.cache_read_tokens, exchange.parent_usage.cache_creation_tokens]|max %}
Input {{ exchange.parent_usage.input_tokens|format_compact }}
Output {{ exchange.parent_usage.output_tokens|format_compact }}
Cache Read {{ exchange.parent_usage.cache_read_tokens|format_compact }}
Cache Write {{ exchange.parent_usage.cache_creation_tokens|format_compact }}
Total Parent Tokens {{ (exchange.parent_usage.input_tokens + exchange.parent_usage.output_tokens + exchange.parent_usage.cache_read_tokens + exchange.parent_usage.cache_creation_tokens)|format_compact }}
Input
Output
Cache Read
Cache Write

Prompt Sent to Sub-Agent

{{ exchange.prompt|length }} characters
{{ exchange.prompt }}

Result Returned

{{ exchange.status }} {{ exchange.result_text|length }} characters
{{ exchange.result_text or "No result text available" }}
Agent ID: {{ exchange.agent_id }} Session: {{ exchange.session_id }} Project: {{ exchange.project_name }}