{% set active_page = "history" %} {% extends "base.html" %} {% block title %}History{% endblock %} {% block content %}
History
{{ sessions|length }} coding session{{ "s" if sessions|length != 1 else "" }} recorded
{% if sessions %}
Coding Sessions

Session | Started | Duration | Instances | Tool Calls | Tokens Saved | Efficiency
--- | --- | --- | --- | --- | --- | ---
{% for cs in sessions %}
{{ cs.id[:20] }} | {{ cs.started_at[:16]|replace("T", " ") }} | {{ cs.duration }} | {{ cs.instances_spawned }} | {{ "{:,}".format(cs.total_tool_calls) }} | {{ "{:,}".format(cs.total_tokens_avoided) }} | {% if cs.reduction_pct > 0 %} {{ cs.reduction_pct }}% {% else %} - {% endif %}
{% endfor %}

{% if daily_stats %}
Daily Activity

Date | Repository | Sessions | Tool Calls | Symbols | Sections | Tokens Saved
--- | --- | --- | --- | --- | --- | ---
{% for row in daily_stats %}
{{ row.date }} | {{ row.repo }} | {{ row.sessions }} | {{ "{:,}".format(row.tool_calls) }} | {{ "{:,}".format(row.symbols_retrieved) }} | {{ "{:,}".format(row.sections_retrieved) }} | {{ "{:,}".format(row.tokens_avoided) }}
{% endfor %}

{% endif %} {% if totals %}
{{ "{:,}".format(totals.tool_calls) }}
Total Tool Calls
{{ "{:,}".format(totals.tokens_avoided) }}
Total Tokens Saved
{{ "{:,}".format(totals.symbols) }}
Symbols Retrieved
{{ totals.sessions }}
Sessions
{% endif %}
{% else %}
◆
No session history yet
History is recorded automatically as you use sylvan tools
{% endif %} {% endblock %}