Expand description
Project memory: what the agent learns about one project, kept as plain Markdown files in a directory of that project’s own, apart from the owner’s personal memory.
<root>/<project-id>/memory/
MEMORY.md index, rebuilt after every write
fact-<key>.md
procedure-<key>.md
pitfall-<key>.md
reference-<key>.mdEach note is one file with a small front matter (name, description,
type, category, source, updated) and a body. Notes are keyed by
the project’s id, so renaming the project or moving its folder keeps
them. A note the owner adds or edits by hand is read like any other; a
file without valid front matter is listed by its file name and never
deleted. The same key in the same project replaces that note and nothing
else: there is no fuzzy matching and nothing crosses projects.
The files are plain text on disk: callers must never route personal or identity memory here. Values of registered secrets are redacted before a note is written.
Structs§
- Note
Entry - A note as the index lists it.
- Note
Write - One note to write.
- Project
Notes - Every project’s memory, under one root directory.
- Project
Notes Recall - One project’s notes as a
Recallbackend: itsProjectNotes::sectionas the note, for a memory system that renders no block of its own to put the section in (wrap it inMemoryInjection).
Enums§
- Memory
Scope - Where one memory goes on a turn that works in a project.
- Note
Error - Why a note was not written.
- Note
Kind - What a note holds.
- Note
Source - Who wrote a note.
- Write
Outcome - What a write did.
Constants§
- INDEX_
FILE - The index file in each project’s memory directory.
- MAX_
INDEX_ CHARS - The index shown to the model is at most this many characters.
- MAX_
NOTE_ BYTES - A note’s body is at most this many bytes.
- NOTE_
FACT_ SOURCE - The
sourceof acrate::records::Factthat stands for a project note in an extractor’s ALREADY STORED list (notes_as_shown_facts).
Traits§
- Session
Projects - Which project a conversation is placed in. Recall uses it to keep one project’s conversation history (its episodes) to that project’s turns, and out of other projects’ and personal recall.
Functions§
- category_
is_ personal_ only - Categories about the owner and the people around them. They are never project notes, whatever scope is asked for: notes are plain text on disk, and who someone is does not belong to a project.
- is_
note_ fact - Whether
factstands for a project note (notes_as_shown_facts). - kind_
for_ category - The note kind a memory category names (
procedure,pitfall,reference), else a fact. - note_
key - A key as it appears in a file name: lowercase ASCII letters and digits,
other runs as one
_;Nonewithout a letter or digit. - notes_
as_ shown_ facts - The project’s notes as stored facts an extractor is shown, so a restatement of a note is marked instead of stored again and a correction names the note it corrects. Each has a negative id, never a store row’s.
- route
- Where a memory of
categorygoes. Without a project, always personal. In a project, personal-only categories stay personal; otherwise therequestedscope wins, and without one apreferenceis personal and anything else belongs to the project.