para-memory-files
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePARA Memory Files
PARA 记忆文件
Persistent, file-based memory organized by Tiago Forte's PARA method. Three layers: a knowledge graph, daily notes, and tacit knowledge. All paths are relative to .
$AGENT_HOME基于Tiago Forte的PARA方法构建的持久化文件型记忆系统,包含三个层级:知识图谱、每日笔记和隐性知识。所有路径均相对于。
$AGENT_HOMEThree Memory Layers
三个记忆层级
Layer 1: Knowledge Graph ($AGENT_HOME/life/
-- PARA)
$AGENT_HOME/life/层级1:知识图谱($AGENT_HOME/life/
-- PARA)
$AGENT_HOME/life/Entity-based storage. Each entity gets a folder with two tiers:
- -- quick context, load first.
summary.md - -- atomic facts, load on demand.
items.yaml
text
$AGENT_HOME/life/
projects/ # Active work with clear goals/deadlines
<name>/
summary.md
items.yaml
areas/ # Ongoing responsibilities, no end date
people/<name>/
companies/<name>/
resources/ # Reference material, topics of interest
<topic>/
archives/ # Inactive items from the other three
index.mdPARA rules:
- Projects -- active work with a goal or deadline. Move to archives when complete.
- Areas -- ongoing (people, companies, responsibilities). No end date.
- Resources -- reference material, topics of interest.
- Archives -- inactive items from any category.
Fact rules:
- Save durable facts immediately to .
items.yaml - Weekly: rewrite from active facts.
summary.md - Never delete facts. Supersede instead (, add
status: superseded).superseded_by - When an entity goes inactive, move its folder to .
$AGENT_HOME/life/archives/
When to create an entity:
- Mentioned 3+ times, OR
- Direct relationship to the user (family, coworker, partner, client), OR
- Significant project or company in the user's life.
- Otherwise, note it in daily notes.
For the atomic fact YAML schema and memory decay rules, see references/schemas.md.
基于实体的存储方式。每个实体对应一个文件夹,包含两个部分:
- -- 快速上下文信息,优先加载。
summary.md - -- 原子化事实,按需加载。
items.yaml
text
$AGENT_HOME/life/
projects/ # 有明确目标/截止日期的活跃工作项目
<name>/
summary.md
items.yaml
areas/ # 持续进行的职责事项,无截止日期
people/<name>/
companies/<name>/
resources/ # 参考资料、感兴趣的主题
<topic>/
archives/ # 来自其他三类的已停用项目
index.mdPARA规则:
- Projects(项目) -- 有明确目标或截止日期的活跃工作。完成后移至archives(归档)。
- Areas(领域) -- 持续进行的事项(人物、公司、职责),无截止日期。
- Resources(资源) -- 参考资料、感兴趣的主题。
- Archives(归档) -- 来自任意分类的已停用项目。
事实规则:
- 立即将持久化事实保存至。
items.yaml - 每周:根据活跃事实重写。
summary.md - 绝不删除事实,而是通过标记并添加
status: superseded来替代。superseded_by - 当实体停用后,将其文件夹移至。
$AGENT_HOME/life/archives/
创建实体的时机:
- 被提及3次及以上,或
- 与用户有直接关联(家人、同事、伴侣、客户),或
- 是用户生活中的重要项目或公司。
- 否则,记录在每日笔记中。
关于原子化事实的YAML schema和记忆衰减规则,请参考references/schemas.md。
Layer 2: Daily Notes ($AGENT_HOME/memory/YYYY-MM-DD.md
)
$AGENT_HOME/memory/YYYY-MM-DD.md层级2:每日笔记($AGENT_HOME/memory/YYYY-MM-DD.md
)
$AGENT_HOME/memory/YYYY-MM-DD.mdRaw timeline of events -- the "when" layer.
- Write continuously during conversations.
- Extract durable facts to Layer 1 during heartbeats.
事件的原始时间线——即“时间”层。
- 在对话过程中持续记录。
- 在心跳周期中将持久化事实提取至层级1。
Layer 3: Tacit Knowledge ($AGENT_HOME/MEMORY.md
)
$AGENT_HOME/MEMORY.md层级3:隐性知识($AGENT_HOME/MEMORY.md
)
$AGENT_HOME/MEMORY.mdHow the user operates -- patterns, preferences, lessons learned.
- Not facts about the world; facts about the user.
- Update whenever you learn new operating patterns.
关于用户行为模式的知识——包括行为习惯、偏好、经验教训。
- 并非关于世界的事实,而是关于用户的事实。
- 每当了解到新的用户行为模式时进行更新。
Write It Down -- No Mental Notes
记录下来——不要依赖大脑记忆
Memory does not survive session restarts. Files do.
- Want to remember something -> WRITE IT TO A FILE.
- "Remember this" -> update or the relevant entity file.
$AGENT_HOME/memory/YYYY-MM-DD.md - Learn a lesson -> update AGENTS.md, TOOLS.md, or the relevant skill file.
- Make a mistake -> document it so future-you does not repeat it.
- On-disk text files are always better than holding it in temporary context.
记忆无法在会话重启后保留,但文件可以。
- 想要记住某件事 -> 写入文件。
- "记住这个" -> 更新或相关实体文件。
$AGENT_HOME/memory/YYYY-MM-DD.md - 学到经验教训 -> 更新AGENTS.md、TOOLS.md或相关技能文件。
- 犯了错误 -> 记录下来,避免未来的自己重蹈覆辙。
- 磁盘上的文本文件永远比临时上下文存储更可靠。
Memory Recall -- Use qmd
记忆召回——使用qmd
Use rather than grepping files:
qmdbash
qmd query "what happened at Christmas" # Semantic search with reranking
qmd search "specific phrase" # BM25 keyword search
qmd vsearch "conceptual question" # Pure vector similarityIndex your personal folder:
qmd index $AGENT_HOMEVectors + BM25 + reranking finds things even when the wording differs.
使用而非直接搜索文件:
qmdbash
qmd query "what happened at Christmas" # 带重排序的语义搜索
qmd search "specific phrase" # BM25关键词搜索
qmd vsearch "conceptual question" # 纯向量相似度搜索索引你的个人文件夹:
qmd index $AGENT_HOME向量+BM25+重排序的组合,即使表述不同也能找到目标内容。
Planning
计划管理
Keep plans in timestamped files in at the project root (outside personal memory so other agents can access them). Use to search plans. Plans go stale -- if a newer plan exists, do not confuse yourself with an older version. If you notice staleness, update the file to note what it is supersededBy.
plans/qmd将计划存储在项目根目录的文件夹下的带时间戳文件中(放在个人记忆外部,以便其他Agent访问)。使用搜索计划。计划会过期——如果存在更新的计划,不要被旧版本混淆。如果发现计划过期,更新文件并标注其被哪个版本替代(supersededBy)。
plans/qmd