Task Delegation Traces

Parent-child event relationships showing delegation hierarchy

{% if hierarchical_events %}
{% for trace in hierarchical_events %}
TASK {{ trace.parent_event_id }} {{ trace.subagent_type or "general-purpose" }} {{ trace.status.upper() }} {{ trace.started_at }}
{% if trace.child_events or trace.child_spikes %}
├─ Subagent Activity {{ trace.child_events|length + (trace.child_spikes|length if trace.child_spikes else 0) }} events
{% for child_event in trace.child_events %}
│ ├─ {{ child_event.event_type }} {{ child_event.event_id }} {{ child_event.timestamp }} {{ child_event.status }}
{% endfor %} {% for spike_id in trace.child_spikes %}
│ ├─ spike {{ spike_id }}
{% endfor %}
{% else %}
└─ No child events
{% endif %}
{% endfor %}
{% else %}

No task delegation traces found.

Task delegation traces appear here when you use Task() to delegate work to subagents.

{% endif %}