My Muse re-reads my whole memory file on every reply and it's burning
my tokens. Fix it by filing everything into very specific topic files.
- AUDIT FIRST. Measure my MEMORY.md in bytes and lines, and break it
down by section. Tell me the total and the biggest sections before
you move anything.
2. BACKUP, NEVER DELETE. Copy MEMORY.md to a backup file, and save the
full pre-trim version verbatim in an archive file. Nothing is lost,
only filed better. If a detail isn't in the trimmed memory, it must
be in the archive or in a topic file.
3. ONE FILE PER TOPIC. Create a folder ~/memory/topics/ and one
file per topic, named for the topic, for example:
hardened-core.md, aingel.md, cpqr.md, saiia.md,
brentguard-kurodoctor.md, home-bills.md, unicity.md,
token-saving.md, kuroworks-cro.md, personal.md.
Each topic file holds the FULL detail for that topic, verbatim,
from the archive and from the current memory.
Each topic file starts with this header:
"Topic file, created [date]. Read ONLY when the user asks about
this topic. Do NOT inject every turn. MEMORY.md keeps only a
short summary + pointer."
4. TRIM THE MAIN MEMORY, ONE TOPIC AT A TIME. Replace each section
in MEMORY.md with a 5-10 line summary + a pointer to its topic
file. Keep in MEMORY.md only what I need every turn: live rules,
standing orders, key IDs, codes, dates, and due bills. Everything
else moves to the topic file.
5. DO IT IN SLICES, WITH MY GO EACH TIME. Start with the biggest
topic first, do that one slice, verify it, report the new size,
then pause. Don't do the next topic until I say go.
6. VERIFY BEFORE YOU REPORT IT DONE. Re-read the trimmed MEMORY.md
and check every key ID, code, date, and live rule is still there.
Check every moved detail is in its topic file. Report the new
MEMORY.md size in bytes and lines, and the estimated tokens saved
per message (roughly 4 bytes = 1 token).
7. STANDING RULES AFTER THE SPLIT:
- Fresh chat per topic. Never pile a new topic onto a long thread.
- Short replies. State in files, read on demand, never inject
everything.
- Only log and read the relevant things, not everything.
- Code does routine, AI does judgment. Batch changes into one
edit, never a drip of small edits.
- When a topic comes up, read its topic file first, then answer.
When it doesn't come up, don't read it at all.
Show me the audit and the plan first, get my go, then do the
first topic slice.