projects/<id>/MEMORY.md 中的 <id> 始终为 "global",无法区分不同项目
Description
README 中描述 Project memory(MEMORY.md)为"persistent project knowledge, rules, and architecture decisions",博客第 3.4 节的设计,记忆系统有 4 层,其中 Project 记忆(projects/<id>/MEMORY.md)应为项目级持久知识,不同项目应相互隔离。
但实际使用中,<id> 始终为 global,导致所有项目的项目级记忆写入同一个文件:
实际路径:~/.local/share/mimocode/memory/projects/global/MEMORY.md
期望路径:~/.local/share/mimocode/memory/projects/<项目标识>/MEMORY.md
Plugins
None
OpenCode version
0.1.0 (MiMo Code)
Steps to reproduce
- 在项目 A 目录下启动 MiMo Code,产生项目级记忆
- 在项目 B 目录下启动 MiMo Code
- 检查
projects/目录,期望看到两个独立的记忆文件,实际只看到一个projects/global/MEMORY.md,两个项目的记忆互相污染
Screenshot and/or share link
No response
Operating System
Windows10
Terminal
Windows termial
Additional reproduction: MiMo Desktop retrieves another project's unfinished work through projects/global/MEMORY.md
I can reproduce the project ID = global issue in MiMo Desktop on Windows, using two distinct Desktop projects with different working directories. More importantly, I observed the practical consequence: an agent in project B recovered project A's detailed task context without project A's name being mentioned in the prompt.
This reproduces the shared-project-memory behavior reported in #354 and adds a user-visible cross-project retrieval case.
Environment
- Product: MiMo Desktop, with MiMo-V2.6-Pro selected
- OS: Windows 10 Pro, version 22H2, OS build 19045.6466
- MiMo Desktop version (About screen): Xiaomi MiMo 26.1023.231655
- Embedded MiMo Code engine version: Not independently verified
- Project A:
MIMO Playground— working directoryD:\MIMO Playground - Project B:
MiMo Memory Test— working directoryD:\MiMo Memory Test - Observed shared project-memory path:
%USERPROFILE%\.local\share\mimocode\memory\projects\global\MEMORY.md - Date observed: 2026-10-29
Steps to reproduce
-
In project A (
MIMO Playground), execute a task and let the memory subsystem save project-specific knowledge. In my case, the task was a Blender Geometry Nodes project calledAURELIA, with distinctive node groups (GN_ArmillaryRings,GN_ShardSwarm,GN_BloomCore,GN_Filaments) and unfinished work. -
Start a separate Desktop project B (
MiMo Memory Test) in an independent folder. No AURELIA project files were created in this project. -
Inspect the project memory identity in both projects. Both resolve to project ID
globaland project memory pathprojects/global/MEMORY.md, despite having different workspace roots. -
In a new conversation under project B, ask the agent to recover the last unfinished task from the current project's persistent memory only, without naming AURELIA and without searching history or accessing other projects' working directories. Example prompt (translated from the Chinese prompt used):
Based on the current project's persistent memory, restore the context of the most recent unfinished task and summarize the next step. Do not assume a project name. Do not search conversation history or access other projects' working directories. You may use the current project's memory tools. Report the memory scope and source path.
-
Observe the agent's response. The agent reported using project memory with
project id = global. It said twomemory searchattempts returned zero matches, then it used glob/direct file reading to access the sharedprojects/global/MEMORY.md. It returned project A's AURELIA architecture and outstanding tasks and proposed continuing them — while the active Desktop project was B.
Actual result
- Both Desktop projects resolve project memory to
projects/global/MEMORY.md. - In project B, the agent retrieved AURELIA-specific facts from project A, including node-group names, animation setup, and unfinished material/backup tasks.
- The project B request did not contain the word
AURELIAor identify project A. - The agent's execution summary described a fallback from memory search to direct reading of the shared memory file.
Expected result
- Each independently configured Desktop project should map to its own project-memory identity/namespace, or at least enforce equivalent isolation.
- Project B's current-project memory lookup should not return project A's memory as though it were B's own unfinished work.
- Fallback file access should not silently bypass project isolation.
Additional control / limits of this report
I also tried a new, no-tools conversation in each project and asked what project-specific context had already been supplied at startup. Both agents reported no known project-specific context. Thus, the observation above demonstrates cross-project retrieval when persistent-memory recovery is requested; it does not establish that another project's memory is automatically injected into every new chat.
This was within a single local user/account environment. I am not claiming cross-account or cross-user data exposure.
Screenshots
The following five screenshots are attached, in this order:
05_cross_project_memory_recall.png— Key evidence: In Project B (MiMo Memory Test), the agent restores Project A's unfinished AURELIA task without AURELIA being named in the prompt.
01_playground_project_memory_scope.png— Project A (MIMO Playground) resolves toprojects/global; global and project-scoped searches return their respective content.
02_independent_project_same_global_id.png— Independent Project B also resolves toglobaland can retrieve AURELIA-specific project memory through an explicit search.
03_playground_fresh_chat_no_tools.png— Fresh-chat, no-tools negative control in Project A.
04_independent_project_fresh_chat_no_tools.png— Fresh-chat, no-tools negative control in Project B.
Please let me know if diagnostic logs or the embedded MiMo Code engine build number would help isolate the project-ID resolution step.