Skip to main content
Claw Memory Fix — a cyberpunk lobster technician with mechanical claws repairing and optimizing memory files in a neon-lit server room

Your Clawdbot is getting dumber. Here's the fix.

Free global skill — works on all your Clawdbots at once

25,000

characters before

6,200

characters after

75%

reduction

Nothing deleted. All archived content searchable on demand.

One step. That's it.

Copy this. Paste it into any Clawdbot chat. Your bot does the rest.

Your bot downloads the files, installs the skill, restarts itself, and confirms it's ready. You don't touch a single file.

After installing

Open any bot chat and type /claw-memory-fix. Run it again every 4–8 weeks.

/claw-memory-fix              Full run
/claw-memory-fix [bot-name]   Target a specific bot
/claw-memory-fix --quick      Fast scan, no changes
/claw-memory-fix --report-only  Report only, nothing written
Prefer to install manually?

Create this folder structure on your machine, then paste the contents of each file from the Skill Files section below. Restart your gateway when done.

~/.npm-global/lib/node_modules/openclaw/skills/
└── claw-memory-fix/
    ├── SKILL.md
    └── references/
        ├── methodology.md
        └── classification-rubric.md

What happens when you run it

Six phases. You approve before anything changes.

0

Phase 0Health Check

Before it does anything else, it checks that your bot can actually find what it archives. OpenClaw's memory search silently fails without an embedding provider — no error, just nothing comes back. If that's you, it stops here and walks you through the fix: an OpenAI API key, separate from your Anthropic subscription, costs fractions of a penny per year. You paste it in the chat, the bot wires it in automatically.

1

Phase 1Snapshot

Before it touches a single file, it makes a complete backup. Everything is safe. Nothing gets deleted without your review.

2

Phase 2Classify

It reads your entire MEMORY.md and scores every section against a research-backed rubric. Four verdicts: keep it in core, move it to archive, distill it from a story into a rule, or mark it superseded because it's out of date.

3

Phase 3Report🛑 Human checkpoint

It shows you everything before doing anything. A full report, section by section — what's staying, what's moving, why. You read it, tweak any verdicts you disagree with, then approve.

4

Phase 4Execute

Only after you say go. Rewrites MEMORY.md to lean core only. Archives everything else. Commits to git so you have a full recovery path.

5

Phase 5Verify

Confirms the archive is intact, runs a live search to confirm archived content is still findable on demand, shows you the before and after numbers.

Why your bot is getting worse

Has your Clawdbot felt off lately? Like it used to just get you — it knew your projects, your preferences, your quirks — and now it's answering like it's meeting you for the first time?

You're not imagining it. Your bot isn't broken. It's drowning.

Every time you start a conversation, before you've said a word, your bot loads a stack of files — MEMORY.md, AGENTS.md, SOUL.md, TOOLS.md — all of it into the context window. The context window is a fixed size. Everything the bot knows right now has to fit on it. Most of us have been running our bots for months. Every session, every project, every lesson learned — it all gets written into MEMORY.md. That whiteboard fills up fast.

Real example — one production bot

  • MEMORY.md: 25,000 characters (~6,000 tokens)
  • Total workspace context before first message: 57,000 characters
  • Old bug fixes from three months ago sitting next to today's project brief
  • Bot holding all of it with equal weight, every single session

Your bot doesn't get dumber because the AI gets worse. It gets dumber because you've been too good at telling it things. And nobody told you to clean it up.

What the research says

FadeMem — Alibaba / Peking University (2026)

Memory systems that selectively fade low-importance content outperformed full-retention systems while using 45% less storage. Not everything deserves equal real estate in your bot's working memory.

Episodic vs. Semantic Memory — Tulving (1972)

Episodic memory is what happened. Semantic memory is what you learned. The event log is 200 words. The rule is 15 words. Same lesson. Most MEMORY.md files are full of event logs when they should be full of rules.

Archived memory isn't lost memory

Claw Memory Fix applies the FadeMem principle without biological decay — classification instead. High-signal memories stay active. Low-signal memories get archived. Same idea, different implementation.

GitHub Copilot Engineering Team

The Copilot team rejected periodic memory cleanups as too much maintenance overhead. Their solution: tag every memory with where it came from and verify it's still true when you use it. Every surviving entry gets a citation tag — when it was written, why it was kept, and the last time it was verified accurate. Makes every future run 10x faster.

Three-layer memory architecture

All the research points to the same structure:

1
Core working memory (MEMORY.md) Identity, hard rules, active projects. Under 8,000 characters.
2
Searchable archive (memory/archive/) Detailed history, retrieved on demand via memory_search.
3
Historical record (memory/archive/superseded/) Superseded context. Kept for reference. Never surfaced automatically.

The skill files

All three files are here to read, copy, or download. These are everything your bot gets when it runs /claw-memory-fix. For most people, the install prompt above is all you need.

SKILL.md

The main skill file — defines all six phases, flags, and rules.

Install path: ~/.npm-global/lib/node_modules/openclaw/skills/claw-memory-fix/SKILL.md

references/methodology.md

The research breakdown — FadeMem, MemGPT, GitHub Copilot, and why memory_search matters.

Install path: ~/.npm-global/lib/node_modules/openclaw/skills/claw-memory-fix/references/methodology.md

references/classification-rubric.md

The scoring rubric — KEEP, ARCHIVE, DISTILL, SUPERSEDED verdicts with examples.

Install path: ~/.npm-global/lib/node_modules/openclaw/skills/claw-memory-fix/references/classification-rubric.md

Frequently asked questions

Why is my Clawdbot getting worse over time?

Your bot isn't broken — its MEMORY.md is bloated. Every session, it loads your entire MEMORY.md into the context window before saying a word. As that file grows, the model spreads its attention thinner across more content, making older context compete with newer context. The fix is a leaner MEMORY.md with the detailed stuff in a searchable archive.

Do I lose anything when I archive memory?

Nothing is deleted. Everything archived moves to memory/archive/ where it stays searchable via memory_search. When you bring up a topic that relates to archived content, your bot will find it and surface it automatically.

Do I need an OpenAI API key for this?

Only if you want archived content to be searchable on demand — which is strongly recommended. OpenClaw's memory_search tool requires an embedding provider (OpenAI). It's a separate, pay-as-you-go account from your Anthropic subscription. One key works for all your bots. Typical cost: fractions of a cent per run. Claw Memory Fix checks this in Phase 0 and walks you through the fix if needed.

How often should I run it?

Every 4–8 weeks, or whenever your MEMORY.md crosses 15,000 characters, or when your bot starts feeling slower and less focused. The skill does all the heavy lifting.

Is it safe to install?

Yes. It installs as a global OpenClaw skill — install once, all bots get access. The skill never modifies anything without your explicit approval. Phase 3 shows you the full report and waits for you to say 'approved' before executing a single change. All three skill files are available to read on this page before you install anything.

What happened to Claw Memory Audit?

Claw Memory Fix is the updated version. Same concept, refined name, and now includes a verified tag on every surviving memory entry so future runs know exactly which entries have been reviewed and which need a second look. If you have the old skill installed, just run the new install prompt and it replaces it.

A clean desk isn't less informed. It's faster.

Don't sleep on AI.