Stores a memory verbatim from user input with appropriate category classification. Use when the user says remember this, save this, store this, note that, or ex
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-remember-76ae2fce4917 ,按照其中的说明把「remember」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Store a fact, preference, or learning directly into Mem0.
The user provides the content as an argument: /mem0-remember <text>
If no text was provided, ask: "What should I remember?"
Based on the content, pick the best category:
| Content signal | Category |
|---|---|
| "I prefer...", "I like...", "use X instead of Y" | preferences |
| "we decided...", "always use...", "never..." | decisions |
| "I learned...", "figured out...", "don't try..." | lessons |
| "my goal is...", "I want to...", "working toward..." | goals |
| "I work at...", "my role is...", "my team..." | work |
| "every day I...", "my workflow is..." | routines |
| "I'm working on...", "the project involves..." | projects |
| "John is...", "my manager...", "the team..." | relationships |
| "my name is...", "I'm from...", "I studied..." | identity |
| setup, tools, config, environment | technical |
| anything else | lessons |
Use the mem0_memory tool with:
action="add"content="<the user's text>"The /mem0-remember command stores verbatim — no inference. This is already handled by the command.
Remembered as <category>: "<content, first 80 chars>"
Append ... only if content was truncated (longer than 80 chars).