Skip to main content

Module index

Module index 

Source
Expand description

Personal Memory as an index: one line per file, so the agent knows what it has and opens a file when it applies (docs/specs/SPEC_MEMORY_DELIVERY_INDEX_NOT_FULL_TEXT_2026_11_17.md §3.2, §3.3).

Every file appears once, in the index or, when marked deliver: always and within the limit, in full. A long index shortens its descriptions, then drops them. Past about a thousand files even the names do not fit: the index then lists as many as fit and says how many more there are and how to list them, and the pane shows those files as not listed. It goes first in a delivery and stays under INDEX_BUDGET_CHARS, so it sits whole in the first part whatever order the parts arrive in.

Structs§

IndexPlan
What the index lists and how it tells the agent to read a file.
Listing
What the index shows of its files.

Constants§

ALWAYS_MAX_CHARS
The most characters of those files, together.
ALWAYS_MAX_FILES
The most files marked deliver: always that go in full.
INDEX_BUDGET_CHARS
The most characters the index takes.

Functions§

is_always
Whether a file’s frontmatter marks it to be sent in full every time (deliver: always, at any indent).
lines
listing’s lines.
listing
The index’s lines at the longest description that fits INDEX_BUDGET_CHARS. When even the names do not fit (about a thousand files), as many files as fit are listed, in the order given, and the rest are counted in a line that says how to list them; the delivery and the pane both say so, so no file reads as listed that was not.
render
The index section: heading, the instruction to read before acting, then a line per file. None when no file is listed.