You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
能否优化记忆层?而且我也没在参考文档里看到和记忆有关的东西?搞大项目的时候很痛苦。 || Can the memory layer be optimized? And I didn’t see anything related to memory in the reference document? It’s painful when working on big projects. #1478
Can the memory layer be optimized? And I didn’t see anything related to memory in the reference document? (Only one agent.md is seen)
Otherwise it will be very painful when working on big projects.
This is the information I came across, I don’t know if it’s useful:
your device
├── ~/.openclaw/workspace/
│ ├── SOUL.md ← AI personality settings
│ ├── USER.md ← Your information
│ ├── MEMORY.md ← Long-term memory (selected)
│ └── memory/ ← Daily memory (original record)
│ ├── 2026-03-01.md
│ ├── 2026-03-02.md
│ └── ...
Core differences:
Features Public AIOpenClaw memory storage cloud (cleared at the end of the session) local hard drive (saved permanently) Memory type only current session context short-term + long-term + daily memory control platform has the final say, you have the final say Memory migration cannot be exported and backed up/migrated at any time From "a stranger every time" to "an assistant who truly understands you", there is a lack of a memory system.
2. OpenClaw memory system architecture
OpenClaw's memory system is divided into three layers, each with a different purpose.
┌────────────────────────────────────────────
│ Short-term memory: Session Context │ ← Current conversation
├──────────────────────────────────────────┤
│ Long Term Memory: MEMORY.md (Selected Memory) │ ← Important Information
├──────────────────────────────────────────┤
│ Daily memory: memory/YYYY-MM-DD.md (original) │ ← Daily record
└──────────────────────────────────────────┘
Specification documents (your knowledge base):
PRD.md (Product Requirements Document) - complete specifications. What are you building, who are you building for, what functionality is there, what is in scope and what is explicitly out of scope. User stories, success criteria, non-goals, and specific criteria for each feature. This is your contract. The AI reads this and knows what "done" looks like to you. Don't have this? You’re not building an app, you’re praying for one to appear.
APP_FLOW.md - Every page and every user navigation path is recorded in plain English. What triggers each process. Step-by-step sequences and decision points, what happens on success, what happens on error, and screen listings and routing. This prevents the AI from guessing how the user moves within the app. 3. TECH_STACK.md - Every package, dependency, API and tool is locked to an exact version. There is no ambiguity. When the AI sees "Use React", it may choose any version. When it sees "Next.js 14.1.0, React 18.2.0, TypeScript 5.3.3", it builds exactly what you specified. This document eliminates illusory dependencies and random technology choices. 4. FRONTEND_GUIDELINES.md - Your complete design system. Fonts, palettes with exact hex codes, spacing ticks, layout rules, component styles, responsive breakpoints, and UI library preferences. Every visual decision is locked. The AI refers to this to create each component. No more random colors or inconsistent spacing. 5. BACKEND_STRUCTURE.md - database schema, each table, column, type and relationship are defined. Authentication logic, API endpoint contracts, storage rules, and edge cases. If you use Supabase, this document contains the exact SQL structure. AI builds your backend based on this blueprint, not its own assumptions. 6. IMPLEMENTATION_PLAN.md - Build a sequence step by step. Not "Building Apps". More like: step 1.1 initialize the project, step 1.2 install dependencies from TECH_STACK.md, step 1.3 create the folder structure, step 2.1 build the navigation bar component according to FRONTEND_GUIDELINES.md, etc. The more steps there are, the less guesswork the AI has to do. The less the AI guesses, the fewer hallucinations it has. These documents reference each other. PRD defines features, APP FLOW defines how users experience them, TECH STACK defines what to build them with, FRONTEND GUIDELINES defines what they look like, BACKEND STRUCTURE defines how data works, and IMPLEMENTATION PLAN defines the build order. This is your knowledge base. The AI will read these and get everything it needs. Two session files (your persistence layer): CLAUDE.md - This is the file that AI automatically reads first for each session. It contains the rules, constraints, patterns, and context that every AI session must follow. Summary of your technology stack, file naming conventions, component patterns, design system tokens. It is allowed and forbidden. Think of it as an AI operations manual for your specific project. Claude Code can read this from the project root without you even asking. progress.txt - This is the file everyone misses. This file keeps track of what's been done, what's in progress, and what's next. Every time you complete a feature, you update this file. Every time you start a new session, every time you open a new terminal window, every time you switch branches, the AI first reads this file to get contextual memory of your progress. Without it, every new session starts with zero context, along with a bunch of errors. With it, the AI continues exactly where you left off. Here's why this matters: AI has no memory between sessions. When you close the terminal, open a new terminal, or start a new chat, everything is gone. progress.txt is your external memory. It is a bridge between sessions. Update it prayerfully. After each implementation completes functionality, keep detailed records of what was built, what worked, what broke, and what to do next.
能否优化记忆层?而且我也没在参考文档里看到和记忆有关的东西?(只看到一个agent.md)
要不然搞大项目的时候很痛苦。
这是我参考到的信息,不知道是否有用哈:
你的设备
├── ~/.openclaw/workspace/
│ ├── SOUL.md ← AI 的人格设定
│ ├── USER.md ← 你的信息
│ ├── MEMORY.md ← 长期记忆(精选)
│ └── memory/ ← 每日记忆(原始记录)
│ ├── 2026-03-01.md
│ ├── 2026-03-02.md
│ └── ...
核心差异:
特性公共 AIOpenClaw记忆存储云端(会话结束清空)本地硬盘(永久保存)记忆类型仅当前会话上下文短期 + 长期 + 每日记忆控制平台说了算你说了算记忆迁移无法导出随时备份/迁移从”每次都是陌生人”到”真正了解你的助手”,差一套记忆系统。
二、OpenClaw 记忆系统架构
OpenClaw 的记忆系统分为三层,每层有不同用途。
┌─────────────────────────────────────────┐
│ 短期记忆:会话上下文(Session Context) │ ← 当前对话
├─────────────────────────────────────────┤
│ 长期记忆:MEMORY.md(精选记忆) │ ← 重要信息
├─────────────────────────────────────────┤
│ 每日记忆:memory/YYYY-MM-DD.md(原始) │ ← 日常记录
└─────────────────────────────────────────┘
规范文档(你的知识库):
Can the memory layer be optimized? And I didn’t see anything related to memory in the reference document? (Only one agent.md is seen)
Otherwise it will be very painful when working on big projects.
This is the information I came across, I don’t know if it’s useful:
your device
├── ~/.openclaw/workspace/
│ ├── SOUL.md ← AI personality settings
│ ├── USER.md ← Your information
│ ├── MEMORY.md ← Long-term memory (selected)
│ └── memory/ ← Daily memory (original record)
│ ├── 2026-03-01.md
│ ├── 2026-03-02.md
│ └── ...
Core differences:
Features Public AIOpenClaw memory storage cloud (cleared at the end of the session) local hard drive (saved permanently) Memory type only current session context short-term + long-term + daily memory control platform has the final say, you have the final say Memory migration cannot be exported and backed up/migrated at any time From "a stranger every time" to "an assistant who truly understands you", there is a lack of a memory system.
2. OpenClaw memory system architecture
OpenClaw's memory system is divided into three layers, each with a different purpose.
┌────────────────────────────────────────────
│ Short-term memory: Session Context │ ← Current conversation
├──────────────────────────────────────────┤
│ Long Term Memory: MEMORY.md (Selected Memory) │ ← Important Information
├──────────────────────────────────────────┤
│ Daily memory: memory/YYYY-MM-DD.md (original) │ ← Daily record
└──────────────────────────────────────────┘
Specification documents (your knowledge base):