Builtin Library
README.md
Memory
The Memory panel shows what the agents working in this world remember, so the person can read it, correct it and take back what they do not want followed. The World tab lists the world's memories, newest first: each with its name, description, who wrote it (the agent, its harness and the person it works for) and when. Selecting one opens its description and text to edit, with Save, Discard edits and Remove (a second click confirms).
Recent changes lists every write, edit, removal and undo, newest first, each with Undo, which puts the memory back as it stood before that change. The search box narrows the list to the memories whose name, description or text mention a word, with the matching lines.
A save made while an agent wrote a newer version, or an undo of a change the
memory has moved on from, shows both versions side by side and lets the
person keep one. The panel opens from the Agents menu and from the DotBot
panel's Memory button; reveal(name) opens it with a memory selected and
search(text) narrows it. Its tab is the world's memories, the scope the
editor's own code reaches; the person's personal memories answer their
agents' tool calls.
The panel is the module @builtin::editor.edui.memoryPanel, which the engine's
code runs on an instance of its own (--!realm engine): it draws on its own
screen with its own instances of the edui app and widgets, and the dock shows
that screen. Code a world ships that changes the edui framework it requires
changes nothing the panel draws with, and the record edui.shell.panel("memory")
is frozen. What the panel shows is read with the module's view().