{% extends "base.html" %} {% block title %}{{ memory.memory_id }} · Shared memory - Memorizz{% endblock %} {% block head %}{% endblock %} {% block content %} {% from '_ui.html' import page_header %} {% macro agent_card(agent) %} {{ agent.name }} {% if agent.role %}{{ agent.role }}{% endif %} {% if agent.access == 'writes' %}Writes records{% elif agent.access == 'reads' %}Reads records{% else %}Conversation only{% endif %} {% if agent.coordinates %}Coordinates {{ agent.coordinates|join(', ') }}{% endif %} {{ agent.turns }} turn{{ '' if agent.turns == 1 else 's' }}{% if agent.model %} · {{ agent.model }}{% endif %} {% endmacro %}
{% call page_header(memory.memory_id, None, back=('/memory/shared', '← Shared memory'), title_id='sm-memory-id') %} {% if memory.harness_runs %}Harness runs in this memory{% endif %} Entity memory {% endcall %}

{% if memory.shared %}Shared by {{ memory.agents|length }} agent{{ '' if memory.agents|length == 1 else 's' }}{% if memory.harness_runs %}, {{ memory.harnesses|length }} harness{{ '' if memory.harnesses|length == 1 else 'es' }}{% endif %}{% if memory.apps %}, {{ memory.apps|length }} connected app{{ '' if memory.apps|length == 1 else 's' }}{% endif %}.{% else %}Used by one agent, so nothing here is shared.{% endif %} Every turn that runs with this memory ID reads and writes the same records.

{#- Who shares it: the agents that may change its records on the left, the memory in the middle, the agents that read it on the right. -#}

Write its records {{ memory.writers|length }}

{% for agent in memory.writers %}{{ agent_card(agent) }}{% else %}

No agent may change this memory's records.

{% endfor %}
Memory ID {{ memory.memory_id }}
Records
{{ memory.records|length }}
Turns
{{ memory.turn_count }}
Handbooks
{{ memory.handbooks|length }}
Tasks
{{ memory.boards|length }}
{% if memory.harness_runs %}
Harness runs
{{ memory.harness_runs }}
{% endif %}
{% if memory.harnesses or memory.apps %}
    {% for harness, count in memory.harnesses.items() %}
  • {{ harness }} · {{ count }}
  • {% endfor %}{% for app, count in memory.apps.items() %}
  • {{ app }} · {{ count }}
  • {% endfor %}
{% endif %}

Read them {{ memory.readers|length }}

{% for agent in memory.readers %}{{ agent_card(agent) }}{% else %}

Every agent here may write.

{% endfor %}

What the memory holds {{ memory.records|length }}

Records in entity memory: the current value of each decision, whatever older messages say.

{% for record in memory.records %}

{{ record.name }}

{% if record.changed_by %}last changed by {{ record.changed_by }}{% endif %}{% if record.changed_at %} {{ record.changed_at[:16]|replace('T', ' ') }}{% endif %}
{% for attribute in record.attributes %}
{{ attribute.name }}
{{ attribute.value }}
{% endfor %}
{% else %}

No records yet. An agent with entity memory writes one when it is told a fact to keep.

{% endfor %} {% if memory.handbooks %}

Handbooks its agents carry {{ memory.handbooks|length }}

    {% for handbook in memory.handbooks %}
  • {{ handbook.name }}{{ handbook.chunks }} chunk{{ '' if handbook.chunks == 1 else 's' }} · {% if handbook.everyone %}every agent here{% else %}{{ handbook.agents|join(', ') }}{% endif %}
  • {% endfor %}
{% endif %}

Who wrote what

{% if memory.authors %} {% for row in memory.authors %} {% endfor %}
Agent or harnessTurnsRecords madeRecords changed
{% if row.harness %}{{ row.agent }}{% else %}{{ row.agent }}{% endif %}{{ row.turns }}{{ row.records_created or '—' }}{{ row.records_updated or '—' }}
{% else %}

{% if memory.history_kept %}No agent of this store has written here.{% else %}No change history is kept for this memory. Turn it on with MemoryHistory(provider, record_changes=True); the console keeps it for turns run here.{% endif %}

{% endif %}

Newest turns {{ memory.turn_count }}

    {% for turn in memory.turns %}
  1. {% if turn.role == 'user' %}to {% endif %}{{ turn.agent }} {{ turn.text }} {{ turn.thread_id }}
  2. {% else %}
  3. No turns yet.
  4. {% endfor %}
{% if memory.boards %}

Tasks coordinated here {{ memory.boards|length }}

A coordinator splits one request across its delegates and keeps the plan and each result on a coordination board.

{% for board in memory.boards %}
{{ board.coordinator }} {{ board.outcome or board.status }} {{ board.started_at[:16]|replace('T', ' ') }}

{{ board.request }}

    {% for task in board.tasks %}
  1. {{ task.agent }}

    {{ task.description }}

    {% if task.result %}

    {{ task.result }}

    {% endif %}
    {{ task.status }}{% if task.seconds is not none %} · {{ task.seconds }}s{% endif %}
  2. {% endfor %}
{% endfor %}
{% endif %}
{% endblock %}