{% for child in group.children %}
{{ child.tool_name }}
{% endif %}
{% if child.tool_name in ('Task', 'Agent') %}
{% if child.subagent_type %}
{% set agent_type = child.subagent_type | lower %}
{% if 'researcher' in agent_type %}
{% set badge_class = 'researcher-agent' %}
{% elif 'haiku' in agent_type %}
{% set badge_class = 'haiku-agent' %}
{% elif 'opus' in agent_type %}
{% set badge_class = 'opus-agent' %}
{% elif 'test' in agent_type or 'debug' in agent_type %}
{% set badge_class = 'green-agent' %}
{% else %}
{% set badge_class = 'claude-agent' %}
{% endif %}
{{ child.subagent_type }}
{% endif %}
{% if child.model %}
{% set m = child.model %}
{% if m.startswith('claude-') %}{% set m = m[7:] %}{% endif %}
{% set parts = m.split('-') %}
{% if parts|length == 3 %}
{% set m = parts[0] + '-' + parts[1] + '.' + parts[2] %}
{% elif parts|length == 2 %}
{% set m = parts[0] + '-' + parts[1] %}
{% endif %}
{{ m }}
{% endif %}
{% endif %}
{% if child.children %}
({{ child.total_count }})
{% endif %}
{% if child.input_summary %}
{{ child.input_summary[:200] }}{% if child.input_summary|length > 200 %}…{% endif %}
{% elif child.output_summary %}
{{ child.output_summary[:200] }}{% if child.output_summary|length > 200 %}…{% endif %}
{% endif %}
{% if child.cost_tokens or child.execution_duration_seconds %}
{% if child.cost_tokens %}{{ child.cost_tokens }}t{% endif %}
{% if child.execution_duration_seconds %} {{ "%.1f"|format(child.execution_duration_seconds) }}s{% endif %}
{% endif %}