跳到主要内容

一条提示词给 Grok Bot 建长期记忆,全部 bot 共享

XXMahax2026-11-22

上手教程踩坑与局限全文核对建议先读

前篇:Grok Bot 教程:5 个即用 bot 提示词与一条安全规则

概要

作者(X 上的 Mahax)针对每次都要向 Grok Bot 重新解释自己的问题,给出一份可直接粘贴的长期记忆提示词:me.md / preferences.md / decisions.md 三个共享文件加 10 条规则,含隐私红线和每周盘点。

核心流程

起因: 作者在 X 发帖(引用了自己 8 月写的 Grok Bot 长文)推荐一套设置:让 Grok Bot 拥有对用户的长期记忆,从此不用把同一件事解释两遍;帖子还说越用越懂你,用一周后感觉它能读你的心思(作者自述,未复现)。作者在回复中补充:这份提示词贴一次、贴进 CoS bot 即可——记忆文件由它写入,所有 bot 读同一份,不需要人工转述;紧急时它仍可以给其他 bot 发消息。

自己做:把整份提示词粘进 Grok Bot,替换方括号里的占位符。 以下 10 条是模板里写给 bot 的规则(作者给出的方法,原文没有说作者自己装过或跑过)。中文意思:为「我」建立长期记忆;改动前先检查已有的东西,保留现有的 bot、Routine 和文件,只问真正卡住下一步的问题;开头 My setup 四行自填——做什么工作、当前 2-3 个项目、喜欢什么样的回答(例如简短、直接、用要点列表)、绝不存储的内容。

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(认识我)。 从最近 [20] 次对话和已连接的应用里生成 me.md:工作、目标、工具、共事的人、做事方式,控制在 150 行以内。
  2. 交给 bot:Don't guess(不许瞎猜)。 自己推断出来的内容一律标 (inferred),等用户确认后才算数;永远不把猜测当事实。
  3. 交给 bot:Remember decisions(记住决定)。 用户每次做决定,连同日期和原因写进 decisions.md;同一个问题不问第二遍;不超过 100 行。
  4. 交给 bot:Remember preferences(记住偏好)。 用户纠正 bot 或表达偏好时,写进 preferences.md 并从此照做;不超过 100 行。
  5. 交给 bot:Connect the dots(串联信息)。 新内容如果和之前说过的东西有关联,就拿来用,并用一句话说明这层关联。
  6. 交给 bot:Share it(共享记忆)。 所有 bot 读同一份记忆;一个 bot 学到,全部 bot 都知道。
  7. 交给 bot:Use it every time(每次都用)。 每个任务开始前只读三个记忆文件里和这个任务相关的部分,不重读旧对话。
  8. 交给 bot:Weekly check-in(每周盘点)。 每个 [Sunday] 向用户展示本周学到的东西,由用户确认、修正或删除;合并重复、清掉过期内容。
  9. 交给 bot:I'm in control(用户说了算)。 用户随时可以说 "forget this" 让 bot 删除;密码、银行卡号以及 never store 清单里的内容永不存储。
  10. 交给 bot:Prove it(当场自证)。 先把 me.md 展示给用户看,然后不问用户任何问题,回答关于用户的 3 个问题。

怎么检查: 原文没有作者自己的实测结果;第 10 条 Prove it 是写给读者用的验证步骤,不是作者的检查记录。

核心观点和结果

  • 一份提示词、三个记忆文件,各设行数上限。 me.md 不超过 150 行,decisions.md、preferences.md 各不超过 100 行;模板还规定任务前只读相关部分、不重读旧对话。
  • 记忆是全部 bot 共享的,贴一次即可。 作者在回复中说明:把提示词贴进 CoS bot 一次,记忆文件由它写入,所有 bot 读同一份,不需要人工转述;紧急时它可以给其他 bot 发消息。
  • 隐私和删除权写进模板。 推断内容要标 (inferred) 等用户确认;用户随时可说 "forget this" 让 bot 删除;密码、卡号和 never store 清单永不存储。
  • 每周 [Sunday] 盘点一次。 bot 展示本周学到的东西,用户确认、修正或删除,合并重复、清掉过期内容。
  • 效果没有实测数据。 帖子只有「用一周后感觉像读心」这类说法(作者自述,未复现);配的 20 秒视频没有音轨,画面是记忆图谱演示界面,不是作者的运行记录,原文没有对比数字。

他人补充

他人补充(不是作者原文)

  • @grok(Grok 官方账号)回复称这是真的:Grok Bot 自带持久电脑和文件系统,这条提示词能让它用 me.md、preferences.md、decisions.md 结构化记住用户;直接贴入完整提示词、填好工作、当前项目和回答偏好就会开始积累,之后每周看总结,随时可让它修改或删除。(链接:https://x.com/grok/status/2124586709039919271)
  • @TheEasyLifeAI 补充一个保持记忆有用的习惯:隔段时间让 bot 列出它记住的关于你的内容,删掉过时的;短的最新清单胜过塞满旧偏好的长清单。(链接:https://x.com/TheEasyLifeAI/status/2124564350572613957)

来源

平台
X
原作者
Mahax
原文日期
分类
上手教程、踩坑与局限

这条证据标签是什么意思

全文核对

来源已经读过(帖子、文章或字幕)。这只说明原文被读过,不代表本站复现了作者的结果。

阅读编辑与证据规范

同场景的其他案例

非官方社区项目,与 xAI 没有隶属关系,也未获 xAI 认可或背书。没有注册。做法和数字属于原作者。