oc-tweaks 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +27 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -249,14 +249,38 @@ var autoMemoryPlugin = async ({ directory }) => {
|
|
|
249
249
|
await ensureAutoMemoryInfra(home, projectMemoryDir);
|
|
250
250
|
output.context.push(`## \uD83D\uDCBE Memory 保存提示 (Compaction Phase)
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
回顾本轮对话,判断是否有值得跨会话持久保存的信息。
|
|
253
|
+
|
|
254
|
+
### 应该保存的(至少一项命中即标记)
|
|
255
|
+
- 用户明确要求记住的偏好、决策或约定
|
|
256
|
+
- 用户纠正了你的行为(隐含偏好)
|
|
257
|
+
- 架构决策、设计约束、技术选型及其理由
|
|
258
|
+
- 跨会话有价值的模式或约定(问自己:明天从头开始,这个信息有帮助吗?)
|
|
259
|
+
- 反复出现问题的根因与解决方案
|
|
260
|
+
- 用户的工作流、工具链、沟通风格偏好
|
|
261
|
+
|
|
262
|
+
### 不应该保存的
|
|
263
|
+
- 仅本次对话有用的临时细节(具体报错、一次性调试命令)
|
|
264
|
+
- AGENTS.md / CLAUDE.md 中已有的内容(不得重复)
|
|
265
|
+
- 未验证的猜测或中间结论
|
|
266
|
+
- 机密信息(密码、API key、token)
|
|
267
|
+
|
|
268
|
+
### 标记格式
|
|
269
|
+
|
|
270
|
+
有值得保存的内容时,在摘要中标记:
|
|
253
271
|
|
|
254
272
|
\`\`\`
|
|
255
273
|
[MEMORY: 文件名.md]
|
|
256
|
-
|
|
274
|
+
简洁的 bullet points,保持原意不扩写
|
|
257
275
|
\`\`\`
|
|
258
276
|
|
|
259
|
-
|
|
277
|
+
确实没有值得保存的,标记 \`[MEMORY: none]\`。
|
|
278
|
+
|
|
279
|
+
### Memory 路径
|
|
280
|
+
- 全局:\`${globalMemoryDir}/\`
|
|
281
|
+
- 项目:\`${projectMemoryDir}/\`
|
|
282
|
+
|
|
283
|
+
后续对话中应根据标记调用内置 Read/Edit/Write 工具写入对应 memory 文件。`);
|
|
260
284
|
})
|
|
261
285
|
};
|
|
262
286
|
};
|