{% extends "base.html" %} {% block title %}Shared memory - Memorizz{% endblock %} {% block head %}{% endblock %} {% block content %} {% from '_ui.html' import page_header, empty_state %} {#- One row per memory ID: who runs in it. A memory is shared when more than one agent or harness does. -#} {% macro memory_row(memory) %}
{{ memory.memory_id }} {% if memory.shared %}Shared by {{ memory.used_by }}{% else %}Private{% endif %}

{{ memory.records }} record{{ '' if memory.records == 1 else 's' }} {{ memory.turns }} turn{{ '' if memory.turns == 1 else 's' }} {% if memory.last_at %}{{ memory.last_at[:16]|replace('T', ' ') }}{% endif %}

{% endmacro %}
{% call page_header('Shared memory', 'Which agents, harnesses and connected apps use each memory. A memory is shared when more than one of them reads and writes the same memory ID.') %} Stored records {% endcall %} {% if not memories %} {{ empty_state('No memory is in use yet', 'Run an agent in the playground, or give two agents the same memory ID, and it appears here.', '/playground', 'Open the playground') }} {% else %}

Shared {{ shared|length }}

{% if shared %}
{% for memory in shared %}{{ memory_row(memory) }}{% endfor %}
{% else %}

No memory is shared yet. Give two agents the same memory ID (memory_ids in the SDK, Memory IDs on the agent form) and they read and write one memory.

{% endif %}
{% if private %}

Used by one {{ private|length }}

{% for memory in private %}{{ memory_row(memory) }}{% endfor %}
{% endif %}

Name may change the memory's records. Name reads them. harness · runs is a coding harness that ran in the memory. app · saves is a connected app, such as Muse, Grok Bot or a dot, that saved here.

{% endif %}
{% endblock %}