{{ session.title or session.id }}

source {{ session.source }} {% if session.started_at %} date {{ session.started_at[:10] }} {% endif %} {% if session.model %} model {{ session.model }} {% endif %} {% if session.project_dir %} project {{ session.project_dir }} {% endif %} {% if session.git_branch %} branch {{ session.git_branch }} {% endif %} {% if session.agent_name %} agent {{ session.agent_name }}{% if session.agent_role %} ({{ session.agent_role }}){% endif %} {% endif %}

{% for turn in session.turns %}
{{ turn.role | upper }} {% if turn.timestamp %} {{ turn.timestamp[11:16] }} {% endif %}
{% if turn.content %}
{{ turn.content | render_markdown }}
{% endif %} {% if turn.reasoning %}
Thinking
{{ turn.reasoning | render_markdown }}
{% endif %} {% if turn.tool_calls %}
{% for tc in turn.tool_calls %}
{{ tc.name }} {{ tc.arguments[:120] if tc.arguments else '' }}
{% if tc.arguments %}
{{ tc.arguments }}
{% endif %} {% if tc.output %}
{{ tc.output }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}