Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/memory-assisted-shaping/llms.txt
Use this file to discover all available pages before exploring further.
notes.py exposes five commands. During live shaping, append is used by default. tail, summary, and export are readback commands and should only be run when explicitly needed — not automatically on every turn.
init
Initialize a new session. Createssession_meta.json and an empty session_notes.jsonl. If a session already exists, reads and validates the existing meta without overwriting it.
--dir.
Example output
append
Append a memory signal to the session log. This is the primary live command used during shaping.Signal type. Must be one of:
artifact, decision, discard, gate, mode, shape, source, tension. No other values are valid in V0.The signal text. Must be a non-empty string.
--effect
Describes how the signal affects later shaping or synthesis. Omit if not needed. Only included in the stored record when provided.
Python automatically adds
id, ts, session_id, seq, and checksum to each stored record. GPT only provides type, text, and optionally effect. Never send a schema-complete record during live append.tail
View the most recent N notes from the session log.Number of records to return. Must be
>= 1. Defaults to 5.Use
tail only during readback — when OP requests a recap, or synthesis preparation requires consolidated state. Do not run it automatically every turn.summary
Return a count of notes by type, plus the last note’s ID and type.--dir.
Example output
export
Export the full session — metadata plus all records — to a single JSON file.--output
Path to write the export file. Defaults to
session_export.json next to notes.py.Use
export only for OP-requested export, handoff, or full session consolidation. The export file (session_export.json) is a derived view and should not be committed as part of the clean source package.Global flag: —dir
--dir overrides the default base directory where session files are read from and written to. It must be placed before the subcommand:
notes.py itself. --dir is optional — most sessions do not need it.