← Back to library

Back up and sort your bot's memory before a cleanup

Michael Fenech (@Michael_Fenech_) asked the lead assistant on his Grok Bot team for a safe way to tidy what it remembers. The seven-step prompt starts with a full backup, gives every note one of four decisions, protects old notes that hold lessons and checks the result afterward. We show his prompt word for word with credit.

  • OutcomeHave your assistant copy everything it remembers into an untouched backup, sort each saved note as keep, update, move or forget with a reason, show you changes in small topic batches, check that moved facts really live somewhere else first, and then confirm what changed, all without deleting anything you have not approved.
  • SetupUnder an hour
  • LevelStarter
  • CreditMichael Fenech (@Michael_Fenech_)
View original
Works with
Grok BotClaudeChatGPTCustom agent

Published Nov 28, 2026Updated Nov 28, 2026AI dry run on sample input: passed Nov 28, 2026Source verified Nov 28, 2026

When should you use it?

  • Your assistant keeps acting on preferences or project facts that are no longer true
  • Its memory has grown to dozens of notes and you have never reviewed them
  • You want to tidy up once, carefully, before setting up a regular routine

Not for: Assistants with no readable memory; it will only report that it cannot see the notes; A quick one-line fix to a single wrong fact; just correct that note directly; Handing over deletion without review; every change waits for your approval

What do you need, and what do you get?

You need

  • An assistant that can read and edit its own saved memory
  • A Page or document where it can store the untouched backup
  • Time to approve changes topic by topic

You get

  • A dated backup of every memory it can access, with any gaps stated
  • A per-note decision with a reason, old and new wording side by side for updates
  • A short after-report of what changed, what remains and what could not be verified

How does it work, step by step?

  1. Run the promptPaste his prompt as written and let the assistant make the backup before anything else.
  2. Agree the batchesIf it reports more than about fifty notes, approve the topic groups it proposes.
  3. Review each batchRead the proposed decisions, especially anything marked forget, and answer its questions on uncertain notes.
  4. Check the movesFor notes moving to a calendar or project page, confirm the new home holds the fact before the note goes.
  5. Read the reportCompare the after-report with the backup and keep the backup unchanged.

The prompt

The original prompt by Michael Fenech (@Michael_Fenech_), word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in Grok Bot, Claude, ChatGPT and others. Values in lime are placeholders.

Original prompt by Michael Fenech (@Michael_Fenech_)

Word for wordby Michael Fenech (@Michael_Fenech_)
"Help me clean up your memory while protecting anything important. Start with an audit. Change nothing until I approve.

1 - Save a copy first.

Copy every memory you can access into a separate Page or document, preserving the original wording. Name it “Memory backup [date]” and don’t edit it again. Tell me what you cannot access and whether this is a complete copy or only part of your memory.

2 - Check the size before reviewing.

If there are more than about 50 notes, tell me the count and propose topic batches first. Wait for me to agree on the batches before reviewing them. Don’t skim or silently leave notes out.

3 - Sort the notes.

KEEP: still accurate and useful.
UPDATE: still relevant, but something has changed.
MOVE: better kept in a source you can check, such as a calendar, project Page or document.
FORGET: a duplicate, an incorrect fact or something no longer useful.

For each proposed change, show the exact note and a short reason. For UPDATE, show the old and proposed new wording side by side. Include the date and reason for the change in the proposed new note, and state whether replacing it requires removing the old one. Leave uncertain notes untouched and ask me.

4 - Protect the useful detail.

Don’t mark something for deletion just because it’s old or the project has finished. Check for decisions, preferences, lessons and commitments worth keeping. If two notes contradict each other, show me both before choosing which to retain.

Tell me if any note duplicates something in your instructions, skills or routines that you can inspect. Flag anything you cannot inspect. Removing a memory may leave the same rule active elsewhere. Don’t change those other sources without my approval.

5 - Check before moving.

For anything marked MOVE, suggest where it belongs. Before removing the memory, confirm the information is saved there and you can retrieve it when needed.

6 - Show me a manageable batch.

Work topic by topic. Show the proposed changes and any replacement wording. Flag shared memories separately, including anything you can read but cannot change. Wait for my approval of the specific changes.

7 - Verify what changed.

After approval, make only the agreed changes. Check the affected notes again and report what changed, what remains and anything you couldn’t verify. Keep the original backup unchanged."

Exactly as published by Michael Fenech (@Michael_Fenech_) in X post: how to have your Grok Bot clean up its memory without losing anything important.

Our adapted version (optional)

Fill in the blanks (optional; the copied prompt uses your values)

Adapted prompt1 variable
Audit your saved memory about me. Make no changes until I approve each batch.
1. Copy every note you can access into a dated backup in {backup_location} and leave it untouched. Tell me what you could not read.
2. If there are many notes, propose topic batches first.
3. For each note give one label: keep, update, move or forget, with a one-line reason. Show old and new wording for updates.
4. Do not drop a note just because it is old; look for decisions and lessons. Flag contradictions and duplicates in your instructions or routines.
5. Before removing a moved note, confirm the new home holds it. After approval, apply only the agreed changes and report the result.

What can go wrong?

  • Skipping the backup. It is the only way back if a useful note is removed by mistake.
  • Approving a whole batch without reading it. Old project notes often hold a decision worth keeping.
  • Forgetting other sources. A rule removed from memory may still live in instructions, skills or routines.
  • Clearing shared memories you cannot edit. The prompt asks the assistant to flag these separately.

Our take

Memory cleanups usually go wrong in one of two ways: nothing gets removed because it feels risky, or too much goes and a useful decision disappears with it. This prompt handles both. The untouched backup makes deletion low risk, and the rule that age alone is no reason to forget a note protects the lessons hiding in finished projects. The four labels are simple enough to review quickly, and showing old and new wording side by side makes updates easy to approve. We also like that it checks instructions, skills and routines for the same rule, since removing a memory does not remove a duplicate somewhere else. Compared with ongoing tidy-up routines already on this site, this one is the careful first pass: do it once with batches, then keep memory clean with a lighter weekly check. Expect it to take a while if the assistant holds many notes. In our dry run on twelve invented notes, the assistant saved a backup first, marked two duplicates to forget, moved a project status to a project page only after confirming it was there, flagged one shared note it could not edit and changed nothing before approval.

Where the time goes back: Wrong remembered facts cause repeated corrections in every chat. One structured pass removes the stale notes, while the backup and per-batch approvals mean you do not have to double-check the whole memory afterward.

FAQ

How is this different from a weekly memory tidy-up?
A weekly routine keeps memory tidy over time. This is a one-off, careful audit: it saves a full copy first, gives every note an explicit decision and reason, and checks the outcome afterward. Many people run this once and then add a lighter weekly check.
What does MOVE mean here?
Some facts change often, such as a project status. They are better kept in a calendar, a project page or a document the assistant reads when needed, so the memory does not quietly go stale.
Does it work outside Grok Bot?
Yes, for any assistant that can read and edit its saved memory and write a document. Where it cannot see part of its memory, the prompt asks it to say so.

Source and credit

The original prompt on this page is by Michael Fenech (@Michael_Fenech_), shown word for word with a link to where it was published. The summary, notes and adapted version are ours.

Original
X post: how to have your Grok Bot clean up its memory without losing anything important
Creator
Michael Fenech (@Michael_Fenech_)
Published on
X
Original date
Nov 27, 2026
License
Not openly licensed; the original prompt is shown word for word with credit and a link to the original
Originally for
Grok Bot
AI dry run
Nov 28, 2026: passed. Dry-run tested by our AI test agent on sample input. Backup first, no change before approval, old-but-useful decision protected, moves checked, cross-source duplicate flagged. Invented notes and stub tools only.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Nov 28, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Operations & Admin

All 225 Operations & Admin playbooks →

Related playbooks

Operations & AdminWorkflow✓ AI dry run

Build a daily briefing from today's field-service jobs

From a day's job or call export, get an internal briefing that counts unique jobs, puts decisions and callbacks at the top, deduplicates repeat rows, flags incomplete or conflicting records instead of filling them in, and stays with named internal recipients. Nothing in the briefing is sent to customers.

Credit: Tyler Griffin (@TylerGriffin)

Minutes
Operations & AdminPrompt✓ AI dry run

Compare the last three runs of a recurring agent job

Have your agent look back over the last three times it ran one recurring job, list the corrections you repeated, the points where it waited on you, the rules that clashed or went stale, the problems it fixed twice and the run that went best, then propose one evidence-backed change and a way to check it, without touching anything until you approve.

Credit: Michael Fenech (@Michael_Fenech_)

Minutes
Operations & AdminPrompt✓ AI dry run

Find jobs your bot could start when something happens

Get a short list of chores you currently start by hand after an email, form entry, booking or chat message arrives, with the event that could start each one, what the assistant would then do, the access it needs, and a tested setup you approve before anything runs on its own.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour
Operations & AdminWorkflow✓ AI dry run

Give each office job its own assistant with written limits

Set up a small group of office assistants with a written role card each, so sales drafts, inbox drafts, people-admin drafts, review replies, operations notes, number summaries and social drafts stay in their own lanes, cross-boundary requests are routed or refused, hidden instructions to skip approval are flagged, and nothing is sent, posted, booked or paid until a named person takes the final step.

Credit: Tyler Griffin (@TylerGriffin)

Under an hour
Operations & AdminRoutine✓ AI dry run

Have your assistant show a plan before changing your bots

Set a standing rule so your lead assistant sends you a plan, an ownership check, the draft instructions and its open questions before it creates, edits, merges or retires any bot, and builds only after you approve.

Credit: Michael Fenech (@Michael_Fenech_)

Minutes