--- title: "养龙虾日记-记忆调试" type: source tags: [article] date: 2025-04-02 --- ## Source File - [[raw/微信公众号/养龙虾5天血泪史:我的AI Agent为什么总失忆?OpenClaw 记忆调试全记录.md]] ## Summary - 核心主题:OpenClaw内存管理调试 - 问题域:Agent像金鱼只有7秒记忆 - 方法/机制:解决对话压缩、搜索失效、系统臃肿等问题 - 结论/价值:10条OpenClaw内存管理黄金法则 ## Key Claims - AI每次对话都是白纸是核心问题 - 涉及对话压缩compaction和搜索失效 - 需要平衡系统性能和记忆能力 ## Key Concepts - [[内存管理]]:对话上下文管理 - [[对话压缩]]:减少token消耗 ## Key Entities - [[OpenClaw]]:AI Agent框架 - [[星辉]]:用户助理Agent ## Connections - [[OpenClaw]] ← 优化 ← [[内存管理]] ## Contradictions