yena shared this post · 4h ago
逸尘

太牛逼了,我基于EverOS这套开源记忆框架重构了我的Codex记忆系统!现在不仅能跨项目记住重要事项、隔离Agent记忆和用户决策,还能最大程度上节省Token和自动沉淀有价值的Skill。(评论区附小白无脑复制提示词)​

我原来的记忆系统基于Obsidian的md形式储存,现在加上了SQLite记录状态,本地索引的准确度大大提升。同时考虑到之后知识库扩大,还可以加入LanceDB做embedding语义搜索。​

当然,我的Codex记忆系统的升级全都是@evermind伟大开源EverOS的功劳:​

1.把Markdown作为唯一可信数据源,透明,人工修改控制容易,这和我本来的记忆系统底层不谋而合。​

2.把用户记忆和 Agent 记忆分开,这一点做的特别好,不容易把人工决策和Agent数据搞混。​

3.里面有自动化沉淀 cases / skills ,我借鉴这个做了个候选cases升级skills的机制,最大程度上压缩了重复步骤。​

4.用 SQLite 存状态,我也偷偷学习了一手,现在本地索引更便捷、更省Token。​

5.把历史经验沉淀成更短、更可复用形态的方向也给了我另一层启发——每次Codex对话结束修改的文件,都会加一层省查文件大小,看一下是否需要自动压缩文件,防止知识库臃肿。​

6.按 user_id、agent_id、app_id、project_id 和 session_id 五维独立检索,给我原有的记忆系统加上了正交过滤,大大节省Token。​

EverOS还有一些很牛逼的功能我暂时没用上,但是后续会根据需求陆续添加:加入LanceDB做向量检索;多模态摄取功能......​

还有,这套记忆系统不只是Codex可以用,换成Claude Code、OpenClaw或者Herms,都可以共用一套框架,毕竟完全是在本地。​

所以兄弟们,赶紧逐帧学习这个宝藏仓库吧,实在太牛逼了啊:https://github.com/EverMind-AI/EverOS

GLM 4.7 Flash · Summary · Jun 22

The author, 逸尘, has refactored their Codex memory system using the open-source EverOS framework.

Key improvements include:

  • Data Storage: Switched from Markdown to SQLite for state and local indexing, with plans to integrate LanceDB for semantic search.
  • Architecture: Implemented a five-dimensional retrieval system (user_id, agent_id, app_id, project_id, session_id) to separate user and agent memories.
  • Efficiency: Introduced mechanisms to compress files and automatically upgrade candidate cases into reusable skills to save tokens and prevent database bloat.
  • Compatibility: The system is designed to be platform-agnostic, usable with Claude Code, OpenClaw, or Herms.

The author links to the repository: https://github.com/EverMind-AI/EverOS

44