{{ title }}
{{ source }} {{ date }} {% if cwd %}{{ cwd }}{% endif %} {% if git_branch %}{{ git_branch }}{% endif %} {{ user_count }}u/{{ assistant_count }}a msgs {% if tool_count %}{{ tool_count }} tools{% endif %}
{% for turn in turns %} {% if turn.role == "user" %}
USER {% if turn.timestamp %}{{ turn.timestamp }}{% endif %}
{{ turn.html }}
{% elif turn.role == "assistant" %}
ASSISTANT {% if turn.model %}{{ turn.model }}{% endif %} {% if turn.timestamp %}{{ turn.timestamp }}{% endif %}
{% for item in turn.blocks %} {% if item.type == "text" %}
{{ item.html }}
{% elif item.type == "tool_pair" %}
{{ item.tool_name }} {% if item.tool_args_short %}{{ item.tool_args_short }}{% endif %} {% if item.result_short and not item.tool_args_short %} {{ item.result_short }}{% endif %}
{% if item.tool_input_formatted %}
Input
{{ item.tool_input_formatted }}
{% endif %} {% if item.result_escaped %}
Output
{{ item.result_escaped }}
{% endif %}
{% elif item.type == "thinking" %}
thinking
{{ item.html }}
{% endif %} {% endfor %}
{% endif %} {% endfor %}