{% extends parent %} {% block title %}Stats - Introspect{% endblock %} {% block content %}

Stats & Insights

{% if earliest_session %}

Data since {{ (earliest_session|string)[:10] }}

{% endif %}
{{ total_sessions }}
Total Sessions
{{ total_turns }}
Total Turns
{{ total_user_messages }}
User Messages
{{ total_tool_calls }}
Total Tool Calls
{{ total_failed }}
Failed Tool Calls
{{ avg_duration }}
Avg Duration
{{ avg_tool_calls }}
Avg Tools/Session
{% if token_usage %}
{{ "{:,}".format(token_usage.input or 0) }}
Total Input Tokens
{{ "{:,}".format(token_usage.output or 0) }}
Total Output Tokens
{{ token_usage.cost or '—' }}
Estimated Cost (all-time)
{% if avg_cost %}
{{ avg_cost }}
Avg Cost / Session
{% endif %} {% endif %} {% if cache_tokens and (cache_tokens[0] or cache_tokens[1]) %}
{{ "{:,}".format(cache_tokens[0] or 0) }}
Cache Write Tokens
{{ "{:,}".format(cache_tokens[1] or 0) }}
Cache Read Tokens
{% endif %}
{% if model_breakdown %}

Per-Model Breakdown

{% for m in model_breakdown %} {% endfor %}
Model Sessions Avg Duration Avg Tool Calls
{{ m[0] }} {{ m[1] }} {{ '%d:%02d'|format((m[2] or 0) // 60, (m[2] or 0) % 60) }} {{ '%.1f'|format(m[3] or 0) }}
{% endif %}

Session Duration Distribution

{% for bucket in duration_buckets %} {% endfor %}
Duration Bucket Count
{{ bucket[0] }} {{ bucket[1] }}

Turns Per Session Distribution

{% for bucket in turns_buckets %} {% endfor %}
Turns Bucket Count
{{ bucket[0] }} {{ bucket[1] }}

Tool Usage Breakdown

{% for tool in tool_breakdown %} {% endfor %}
Tool Name Count % of Total Success Rate
{{ tool[0] }} {{ tool[1] }} {{ "%.1f"|format(tool[3]) }}% {{ "%.1f"|format(tool[2]) }}%
{% if mcp_servers %}

MCP Servers

{% for s in mcp_servers %} {% endfor %}
Server Total Calls Commands Used
{{ s[0] }} {{ s[1] }} {{ s[2] }}

MCP Command Breakdown

{% for tool in mcp_breakdown %} {% endfor %}
Command Count % of Total Success Rate
{{ tool[0] }} {{ tool[1] }} {{ "%.1f"|format(tool[3]) }}% {{ "%.1f"|format(tool[2]) }}%
{% endif %} {% if bash_breakdown %}

Bash Commands — By First Word

{% if bash_chained %}

{{ bash_chained[0] }} of {{ bash_chained[1] }} bash calls ({{ "%.1f"|format(100.0 * bash_chained[0] / bash_chained[1]) if bash_chained[1] else 0 }}%) contain && chaining

{% endif %} {% for cmd in bash_breakdown %} {% endfor %}
Command Count
{{ cmd[0] }} {{ cmd[1] }}
{% endif %} {% if bash_two_words %}

Bash Commands — By First Two Words

{% for cmd in bash_two_words %} {% endfor %}
Command Count
{{ cmd[0] }} {{ cmd[1] }}
{% endif %}

Longest Sessions (Top 15)

{% for s in longest_sessions %} {% endfor %}
Session ID Started At Duration Turns User Msgs Tool Calls Failed Model
{{ (s[0]|string)[:12] }}... {{ (s[1]|string)[:19] }} {{ s[2] }} {{ s[6] }} {{ s[4] }} {{ s[7] }} {{ s[8] }} {{ s[3] or '' }}

Most Tool Calls (Top 15 Sessions)

{% for s in most_tools_sessions %} {% endfor %}
Session ID Tool Calls Failed Started At Duration Turns User Msgs Model
{{ (s[0]|string)[:12] }}... {{ s[1] }} {{ s[2] }} {{ (s[3]|string)[:19] }} {{ s[4] }} {{ s[8] }} {{ s[6] }} {{ s[5] or '' }}

Sessions Per Day

{% for day in sessions_per_day %} {% endfor %}
Date Sessions
{{ day[0] }} {{ day[1] }}
{% endblock %}