agentleFS
0xUrsanomics0xUrsanomics/utopia-os/skills/meta-memory-review/SKILL.md

meta-memory-review

Skill2 starsChanged 25 days agoMITView on GitHub

Periodic self-optimization of the memory STRUCTURE (not its content). Review tier layout, dedupe, prune, and re-index the memory system.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If substantive proposals found: write the full review to outputs/raw/agent/YYYY-MM-DD-meta-memory-review.md (frontmatter status: raw), then …

    line 27
  2. Distinctive:

    NEVER auto-apply: Only after the operator approves specific proposals are they edited in.

    line 28
  3. Distinctive:

    SILENT ON CLEAN: if no substantive proposal (a quiet week), log ONE line to session.jsonl and do NOT ping the operator.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Meta-Memory Review

Purpose: periodic self-optimization of the memory STRUCTURE (not its content). A strong-model pass reads recent session trajectories + recurring-failure signals and PROPOSES concrete edits to the memory rules / schema / tiers. Proposals are surfaced to the operator; NEVER auto-applied (memory-rule/schema/tier edits are CONFIRM-gated).

Lift provenance: AutoMem (arXiv 2607.01224) loop-1 = "a strong LLM reviews complete agent trajectories and iteratively revises the memory structure." Take loop-1 (structure-revision-by-review) and SKIP loop-2 (RL fine-tuning, impossible on a frozen model). The problem it targets: "a single memory mistake hides long before it surfaces" = recurring drift / over-hardening / noop-loop pains, which more text-lessons have failed to fix.

Inputs (READ-ONLY)

  1. logs/session.jsonl, last ~7 days of session events (categories, save extractions, failures, event mix).
  2. memory/Learnings.md, tail + scan for RECURRENCE markers ("Nx", "N-th occurrence", "3rd/4th instance"). Repeated failure modes are the highest-signal targets.
  3. logs/errors.jsonl + skill-failure tracker (scripts/eval/skill_failure_tracker.py output, or its store), skills failing 3x/14d.
  4. reality-feedback ledger (reality_feedback.sqlite if present), verdicts + friction signals.
  5. The CURRENT rules to propose AGAINST: skills/save/SKILL.md (extraction rules), memory/MEMORY.md (tier-1 index + bloat), frontmatter conventions across memory/Context|Infra|Feedback.

Review lenses (produce proposals under each; SKIP a lens with no evidence)

  • A. Extraction gaps: patterns that recurred in sessions but save.md did NOT capture, or mis-categorized. → propose a save.md rule edit.
  • B. Schema: frontmatter/format inconsistencies or a missing field that would improve recall/dedup. → propose the schema change.
  • C. Tier misassignment: tier-1 (always-loaded) entries that are stale / low-value (every line is reply-cost tax), or tier-2 items that should be promoted. → propose move/prune (cross-check MEMORY.md detox + reaper history).
  • D. Recurring-failure → STRUCTURAL guard (the AutoMem core): for each Learnings recurrence (e.g. over-hardening 4x, continue-turn-drop 3x), ask: is there a memory/skill STRUCTURE change (hook, gate, schema field, a load-order fix) that would actually guard it, versus appending an (N+1)th text lesson that already failed N times? Propose the structural fix.

Output + GATE

  • If substantive proposals found: write the full review to outputs/raw/agent/YYYY-MM-DD-meta-memory-review.md (frontmatter status: raw), then surface a CONCISE summary to the operator: the top 3-5 proposals, each = observed pattern + the specific edit + why. Ask which to apply.
  • NEVER auto-apply. Only after the operator approves specific proposals are they edited in.
  • SILENT ON CLEAN: if no substantive proposal (a quiet week), log ONE line to session.jsonl and do NOT ping the operator. Evidence-gated (per the "no evidence-on-clean-path" rule). No noise.

Cadence

Weekly cron meta-memory-review-weekly (Sunday 05:00 local, strong model / high effort). Also manual via /meta-memory-review.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.