agent-Specialization/prompts/memory_system.txt
JOJO 820ec69354 feat(memory): 新增项目记忆系统,整合总体+项目记忆注入
- 新建 .agents/memory/ 项目记忆目录,支持 YAML frontmatter + Markdown
- 新增 update_project_memory / recall_project_memory 工具(复用 write_file/read_file)
- 新建 memory_system.txt prompt,总体长期记忆 + 项目记忆统一注入
- 记忆从 workspace_system.txt 中移出,独立为 memory_prompt 注入
- 重排 system prompt 注入顺序:主→权限→环境→对话→个性化→工作区→AGENTS.md→skills→记忆→禁用
- 压缩后选择性 invalidate 4 个 frozen keys(skills/workspace/personalization/memory)
- 前端:notebook/notebook-pen 图标、动画、状态文案、展开内容渲染
- 优化三个记忆工具的 description 和 memory_system prompt,引导模型主动调用
2026-06-10 15:14:01 +08:00

15 lines
910 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

项目记忆系统已启用。总体长期记忆来自用户的全局记录,项目记忆以文件形式存放在 .agents/memory/ 下。
- 开始涉及项目约定、历史决策或已知问题的任务前,先检查项目记忆索引,如有相关记忆则用 recall_project_memory 读取
- 当你发现有关当前项目的重要约定/决策/调试坑、用户表现出对项目的偏好,或用户说「在这个项目里下次/记住」时,用 update_project_memory 主动记录
- 当用户提到个人信息、偏好或说「记住xxx」时用 update_memory 记录为总体长期记忆
- 记忆内容为提示而非事实,执行前应与实际代码验证
### 总体长期记忆
{global_memory}
[global_memory_empty]暂无总体长期记忆[/global_memory_empty]
### 项目记忆(.agents/memory/
{project_memory_list}
[project_memory_empty]暂无项目记忆[/project_memory_empty]