AIToday
Zenn AI/MLPublished: Dec 6, 2026, 22:00 JST

Muse memory bloat: MEMORY.md at 25.5KB, cut to 36.9KB via skills

Send on LINE
Muse memory bloat: MEMORY.md at 25.5KB, cut to 36.9KB via skills

3 Key Points

  1. What happened

    In the author's setup, resident files totaled about 41.6KB, with MEMORY.md at 25.5KB, and moving step-by-step rules into skills cut the total to 36.9KB, an about 11% reduction.

  2. Why it matters

    That is roughly 61% of the resident base sitting in long-term memory, so trimming it lightens every reply's context rather than just one task.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The trigger was a late-night read of an article explaining Muse's security design, which led the author to ask Muse directly whether oversized skills and rules waste tokens. Muse's answer split the problem into three parts: always-on files (skill descriptions, rules, memory) load into every conversation's foundation; skill bodies load only on use but grow with length; and duplicate promises in multiple places cost double and risk inconsistency when only one copy is fixed. The author then had Muse measure the resident files, and the ranking showed memory—not skills—was the heaviest item. The sorting insight followed: moving rules into rules changes nothing because rules are also always-on, but moving procedures into skills works because they load on demand. Fact-like memory (family, amounts, deadlines) should stay as summaries with details fetched by search. The author named this sorting 'defrag' after the old Windows optimization and applied it by moving Medium, note, and SNS operating rules into three local skills, leaving summaries and references behind. A final rule was added: when memory accumulates enough step-like procedures, the AI should propose migrating them, so there is an exit as well as an entrance.

FAQ
What exactly was taking up the most space?
MEMORY.md, the long-term memory file, was 25.5KB—about 61% of the roughly 41.6KB resident total. Skill bodies were not counted because they load only when used.
What is 'defrag' in this context?
It is the author's name for sorting memory: move procedural knowledge into skills, keep facts as summaries plus search, and leave only truly always-on rules in the resident base.
How much did the cleanup save?
Resident files went from 41.6KB to 36.9KB (about 11% down), and MEMORY.md from 25.5KB to 20.8KB (about 18% down). The author estimates that is roughly 1,500–2,000 tokens saved per reply, though caching at the start of context can shrink the billing effect.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Next articleTidal to purge 29 million AI tracks on December 9