{% from "components/card.html" import stat_card %}
{{ stat_card( label="Total Exchanges", value=(summary.total_exchanges|default(0)|int)|string, icon='' ) }} {{ stat_card( label="Total Tokens", value=(summary.total_tokens|default(0)|format_compact), icon='' ) }} {{ stat_card( label="Total Cost", value="$" + (summary.total_cost|default(0.0)|float|round(2)|string), icon='' ) }} {{ stat_card( label="Avg Tokens/Exchange", value=(summary.avg_tokens_per_exchange|default(0)|format_compact), icon='' ) }} {{ stat_card( label="Unique Types", value=(summary.unique_types|default(0)|int)|string, icon='' ) }}
{% if summary.type_breakdown %}

Sub-Agent Types

{% for type_info in summary.type_breakdown %}
{{ type_info.type }}
{{ type_info.count }}
{{ type_info.total_tokens|format_compact }} tokens
${{ type_info.total_cost }}
{% endfor %}
{% endif %} {% if chart_data.datasets %}

Sub-Agent Exchanges Timeline

Click a point to see details

{% endif %}
{% if exchanges.exchanges %}

Recent Sub-Agent Exchanges

Click a row to see detailed token breakdown

{% for exchange in exchanges.exchanges %} {% endfor %}
Time Type Description Tokens Tools Duration Cost
{{ exchange.date }}
{{ exchange.time }}
{{ exchange.subagent_type }} {{ exchange.description or exchange.prompt_preview[:50] }} {{ exchange.total_tokens|format_compact }} {{ exchange.total_tool_use_count }} {{ exchange.duration_seconds }}s ${{ "%.4f"|format(exchange.cost) }}
{% else %}

No sub-agent exchanges found

Use the Task tool in Claude Code to see sub-agent analytics

{% endif %}