Skip to main content

One prompt sets up long-term memory files that all Grok Bots can share

XXMahax2026-11-22

Getting startedLimitsSource read in fullRead first

Previous case: A Grok Bot starter guide gives five ready-to-use roles and an approval rule

Overview

On X, Mahax shares a paste-ready long-term memory prompt to avoid repeating personal context. Three files, me.md, preferences.md and decisions.md, come with 10 rules for privacy and weekly review.

Workflow

Trigger: The author quotes an August Grok Bot article in an X post and recommends long-term memory to avoid explaining things twice. More use helps it understand the user and after a week it feels like it can read your mind (author's claim, not reproduced). In a reply, paste once into the CoS bot. It writes the files and all bots read them without manual relay. It can still message other bots when urgent.

By hand: Paste the whole prompt and replace the bracketed placeholders. The template gives the following 10 rules as the author's method. The source does not say the author installed or ran it.

Build a long-term memory of me

Inspect what already exists before changing anything. Keep my current bots, routines and files. Ask only for what actually blocks the next step.

My setup What I do: [your work or role] What I'm working on now: [2-3 current projects] How I like answers: [e.g. short, direct, bullet points] Never store: [anything you want kept out]

  1. Learn me

From my last [20] chats and my connected apps, write me.md: my work, goals, tools, the people I work with, and how I like things done. Keep it under 150 lines.

  1. Don't guess

Anything you figured out yourself is marked (inferred) until I confirm it. Never treat a guess as a fact.

  1. Remember decisions

Every time I decide something, save it to decisions.md with the date and why. Never ask me the same question twice. Keep it under 100 lines.

  1. Remember preferences

When I correct you or say "I prefer", save it to preferences.md and follow it from then on. Keep it under 100 lines.

  1. Connect the dots

When something new links to something I told you before, use it, and tell me in one line.

  1. Share it

All my bots read the same memory. One bot learns it, every bot knows it.

  1. Use it every time

Before every task, read only the parts of me.md, preferences.md and decisions.md that matter for this task. Never re-read old chats.

  1. Weekly check-in

Every [Sunday], show me what you learned this week. I confirm, fix or delete. Merge duplicates and drop anything outdated.

  1. I'm in control

I can say "forget this" anytime, and you delete it. Never store passwords, card numbers, or anything I list under "never store".

  1. Prove it

Show me me.md, then answer 3 questions about me without asking me anything.

  1. Bot: Learn me. Use the last [20] chats and connected apps to write me.md with work, goals, tools, colleagues and working style in at most 150 lines.
  2. Bot: Don't guess. Mark inferences (inferred) and wait for confirmation. Never treat guesses as facts.
  3. Bot: Remember decisions. Write each decision with date and why in decisions.md. Do not ask the same question twice. Cap at 100 lines.
  4. Bot: Remember preferences. Write corrections and preferences in preferences.md and follow them from then on, with at most 100 lines.
  5. Bot: Connect the dots. Use related past information and explain the connection in one sentence.
  6. Bot: Share it. All bots read the same memory. What one learns becomes available to all.
  7. Bot: Use it every time. Before work, read only parts of the three files relevant to the task without rereading old chats.
  8. Bot: Weekly check-in. Every [Sunday] show what was learned for confirmation, correction or deletion. Merge duplicates and prune stale items.
  9. Bot: I'm in control. The user can say "forget this" anytime to delete. Never store passwords, card numbers or the never store list contents.
  10. Bot: Prove it. Show me.md and answer 3 questions about the user without asking the user anything.

Check: The source has no results from the author's own run. Prove it in item 10 is a verification step for readers.

Key points and results

  • One prompt, three memory files with caps. me.md is limited to 150 lines and decisions.md and preferences.md to 100 each. Read only relevant sections before tasks and skip old chat history.
  • All bots share the files after one paste. The reply says the CoS writes files and all bots read without manual relay. It can still message others urgently.
  • The template gives privacy and deletion control. Mark inferences (inferred) until confirmed. "forget this" deletes on request. Never store passwords, cards or anything on the never store list.
  • Review weekly on [Sunday]. The bot shows its week's learning for confirmation, correction or deletion, deduplication and pruning.
  • No tested outcome figures. The post says a week feels like mind reading (author's claim, not reproduced). Its 20-second silent video shows a memory-graph demo rather than a run record. No comparative data.

Contributions from others

Added by others (not the author)

  • The official @grok account confirms Grok Bot includes a persistent computer and filesystem and can use me.md, preferences.md and decisions.md for structured memory. Paste the full prompt and enter work, projects and preferences to start. Review weekly and request edits or deletion at any time (https://x.com/grok/status/2124586709039919271).
  • @TheEasyLifeAI suggests periodically listing remembered facts and deleting stale ones. A short current list beats a long list of old preferences (https://x.com/TheEasyLifeAI/status/2124564350572613957).

Source

Platform
X
Author
Mahax
Published
Categories
Getting started, Limits

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.