{% extends "base.html" %} {% from '_ui.html' import page_header, empty_state %} {% from '_run_health.html' import range_picker, runs_chart, attention_panel, recent_runs with context %} {% block title %}Overview - Memorizz{% endblock %} {% block content %} {% set window_labels = {'24h': 'Last 24 hours', '7d': 'Last 7 days', '30d': 'Last 30 days', '90d': 'Last 90 days'} %} {% set window_label = window_labels.get(window) or fmt_range(span) %} {% set keep = {'load': 1} if loaded else {} %} {% if compare_to != 'previous' %}{% set _ = keep.update({'compare': compare_to}) %}{% endif %} {% call page_header('Overview', 'Runs, failures, run time, tokens and spend across every agent on this platform.', 'Home') %} {{ range_picker('/dashboard', window, windows, span, keep) }} Observability Create agent {% endcall %}
{{ provider_type|title }} provider connected {{ window_label }} Updated {{ generated_at.strftime('%H:%M') }} UTC {% if coverage.truncated and coverage.oldest and coverage.oldest > span.start %}Runs before {{ coverage.oldest.strftime('%b %d %H:%M') }} UTC aren't loaded{% elif coverage.truncated %}Newest {{ coverage.records }} trace records{% endif %} {% if overview and compare_choices|length > 1 %}
{% for key, value in range_params(span).items() %}{% endfor %} {% if loaded %}{% endif %}
{% elif overview and compared %}Compared with {{ compare_label }}{% endif %} Refresh
{% if schema_note %}

{{ schema_note }}

{% endif %} {% if embedding_check and embedding_check.status == 'mismatch' %} {% elif embedding_check and embedding_check.status == 'adopted' %}

{{ embedding_check.message }}

{% endif %} {% if provider_type == 'notion' %}

Notion counts cover this local repair journal, not a verified workspace total. Run memorizz notion sync to discover external changes; memory reads still check Notion.

{% endif %} {#- First steps, until every one is done or the list is dismissed. The page script ticks the trace step and hides the list; nothing is stored. -#} {% if getting_started and not ui_conn.read_only and getting_started|selectattr('done')|list|length < getting_started|length - 1 and not (overview and overview.totals.runs >= 20) %} {% set done_count = getting_started|selectattr('done')|list|length %} {% endif %} {% if deferred %} {% call empty_state('Run health is loaded on request', 'This provider reads traces through a remote API, so the overview does not scan it on every visit.') %} Load run health {% endcall %} {% elif trace_error %} {{ empty_state('Run health is unavailable', trace_error) }} {% elif overview %} {% set t = overview.totals %} {% set series = overview.series %} {#- A figure's change from the same length of time before the window. -#} {% macro delta(key) -%} {%- set d = deltas.get(key) -%} {%- if d %}{% if d.arrow %}{{ 'Up' if d.arrow == '▲' else 'Down' }} {% endif %}{{ d.text }}{% endif -%} {%- endmacro %} {#- A thin bar under a name: that row's part of the window's total. -#} {#- Calls per chart period as a small line; nothing when there is no series. -#} {% macro trend_line(values, label) -%} {%- if values and values|sum -%}{%- endif -%} {%- endmacro %} {% macro share_bar(percent, of) -%} {%- set shown = [percent, 100]|min -%} {{ '%.0f'|format(shown) }}% of {{ of }} {%- endmacro %}
Runs {{ '{:,}'.format(t.runs) }} {{ delta('runs') }}{{ t.succeeded }} succeeded · {{ t.failed }} failed{% if t.in_progress %} · {{ t.in_progress }} running{% endif %} Success rate {% if t.success_rate is none %} — No finished runs {% else %} {{ '%.1f'|format(t.success_rate) }}% {{ delta('success_rate') }}{{ t.runs_with_tool_failures }} run{{ '' if t.runs_with_tool_failures == 1 else 's' }} with tool failures {% endif %} Run time p95 {{ fmt_duration(t.p95_ms) }} {{ delta('p95_ms') }}Median {{ fmt_duration(t.p50_ms) }} Model calls {{ '{:,}'.format(t.model_calls) }} {{ delta('model_calls') }}{% if t.runs %}{{ '%.1f'|format(t.model_calls / t.runs) }} per run{% else %}No runs{% endif %}{% if t.model_errors %} · {{ t.model_errors }} errors{% endif %} Tokens {{ fmt_compact(t.input_tokens + t.output_tokens) }} {{ delta('tokens') }}{% if t.cache_read_percent is not none %}{{ '%.0f'|format(t.cache_read_percent) }}% of input read from prompt cache{% else %}No token usage recorded{% endif %} Spend {{ fmt_usd(t.cost_usd) }} {{ delta('cost_usd') }}{% if t.cost_per_run is not none %}{{ fmt_usd(t.cost_per_run) }} per run{% else %}No priced calls{% endif %}{% if t.unpriced_calls %} · {{ t.unpriced_calls }} unpriced{% endif %}
{{ runs_chart(overview, window, window_label|lower, zoom='/dashboard?' ~ ('load=1&' if loaded else ''), change=deltas.get('runs'), compare_label=compare_label) }} {{ attention_panel(overview.attention) }}
{{ recent_runs(overview.recent, agent_names) }}
{% if overview.agents %} {#- Each row's share of spend, or of runs when nothing was priced. -#} {% set agent_by_spend = t.cost_usd|float > 0 %} {% set agent_total = (t.cost_usd|float) if agent_by_spend else t.runs %} {% for row in overview.agents[:6] %} {% set share = (100 * ((row.cost_usd|float) if agent_by_spend else row.runs) / agent_total) if agent_total else 0 %} {% endfor %}
AgentRunsFailedp95Spend
{{ agent_names.get(row.agent_id, row.agent_id[:12] or 'Unknown') }}{{ share_bar(share, 'spend' if agent_by_spend else 'runs') }} {{ row.runs }} {% if row.failed %}{{ row.failed }}{% else %}0{% endif %} {{ fmt_duration(row.p95_ms) }} {{ fmt_usd(row.cost_usd) }}
{% else %}

No agent activity in this window.

{% endif %}

Tools

{{ t.tool_calls }} calls
{% if overview.tools %} {% for row in overview.tools[:6] %} {% endfor %}
ToolCallsFailed
{{ row.name }}{{ share_bar((100 * row.calls / t.tool_calls) if t.tool_calls else 0, 'tool calls') }}{{ trend_line(trends.tools.get(row.name), 'Calls to ' ~ row.name ~ ' over this window') }} {{ row.calls }} {% if row.failures %}{{ '%.0f'|format(row.failure_rate) }}%{% else %}0%{% endif %}
{% else %}

No tool calls in this window.

{% endif %}

Models

Usage
{% set models = usage.models if usage else [] %} {% if models %} {% set model_by_spend = t.cost_usd|float > 0 %} {% set model_total = (t.cost_usd|float) if model_by_spend else t.model_calls %} {% for row in models[:6] %} {% set share = (100 * ((row.cost_usd|float) if model_by_spend else row.calls) / model_total) if model_total else 0 %} {% endfor %}
ModelCallsFrom cacheSpend
{{ row.label.split(' / ')[-1] }}{{ share_bar(share, 'spend' if model_by_spend else 'model calls') }}{{ trend_line(trends.models.get(row.label.split(' / ')[-1]), 'Calls to this model over this window') }} {{ row.calls }} {% if row.input_tokens %}{{ '%.0f'|format(100 * row.cached_tokens / row.input_tokens) }}%{% else %}—{% endif %} {{ fmt_usd(row.cost_usd) }}
{% else %}

No model calls in this window.

{% endif %}
{% endif %} {% if coding_agents %}

Coding-agent sessions

Agent harnesses
{% for row in coding_agents %} {% endfor %}
Codex and Claude Code sessions the MemoRizz plugin recorded in this window, counted apart from agent runs above
AgentSessionsTurnsTokens inTokens outSpendLast session
{{ row.label }} {{ row.sessions }} {{ row.turns }} {{ fmt_compact(row.input_tokens) }} {{ fmt_compact(row.output_tokens) }} {% if row.priced %}{{ fmt_usd(row.cost_usd) }}{% if row.priced < row.sessions %} + unpriced{% endif %}{% else %}—{% endif %} {{ relative_time(row.last_at, generated_at) if row.last_at else '—' }}

Recorded by the MemoRizz plugin from each agent's own session log, and counted apart from the agent runs above. Open a session on Agent harnesses for its steps.

{% endif %} {% if recent_activity %}

Recent activity

All activity
{% endif %}
{% if automations.deferred %}

Loaded with run health. Open automations

{% elif not automations.available %}

Automations are unavailable for this provider.

{% elif automations.upcoming %} {% for job in automations.upcoming %} {% endfor %}
AutomationNext runLast result
{{ job.name }} {{ relative_time(job.next_run_at, generated_at) }} {% if not job.last_status %}Not run yet{% elif job.last_status|lower in ['succeeded', 'success', 'completed'] %}{{ job.last_status|capitalize }}{% elif job.last_status|lower in ['failed', 'error', 'timed_out', 'timeout'] %}{{ job.last_status|replace('_', ' ')|capitalize }}{% else %}{{ job.last_status|replace('_', ' ')|capitalize }}{% endif %}
{% else %}

No active automations. Schedule one to run an agent on a timer.

{% endif %}

Platform

{{ provider_type|title }} provider
{% for key, value in connection_info.items() %}
{{ key|replace('_', ' ')|capitalize }}
{{ value }}
{% endfor %}
{% set inventory = [ ('/agents', stats.get('agents', 0), 'Agents'), ('/memory/toolbox', stats.get('toolbox', 0), 'Tools'), ('/memory/personas', stats.get('personas', 0), 'Personas'), ('/automations', stats.get('automations', 0), 'Automations'), ('/memory/conversations', stats.get('conversation_memory', 0), 'Conversation messages'), ('/memory/workflows', stats.get('workflow_memory', 0), 'Workflow trajectories'), ('/memory/entity', stats.get('entity_memory', 0), 'Entities'), ('/memory/summaries', stats.get('summaries', 0), 'Summaries'), ('/memory/skills', stats.get('skillbox', 0), 'Learned skills'), ('/memory/cache', stats.get('semantic_cache', 0), 'Semantic cache entries'), ] %}
{#- Customize: which sections show and in what order, kept in this browser. -#} {% endblock %}