OpenHands Persistent Memory Flow

OpenHands Persistent Memory Flow A data-flow diagram generated by Archify. 01 / Writer 02 / Files 03 / Loader 04 / Prompt 05 / Model Agent via tools · file_editor, terminal · 01 / Writer Agent via tools file_editor, terminal User MEMORY.md · ~/.openhands/memory · 02 / Files User MEMORY.md ~/.openhands/memory Project MEMORY.md · .openhands/memory · 02 / Files Project MEMORY.md .openhands/memory Daily logs · YYYY-MM-DD.md · 02 / Files Daily logs YYYY-MM-DD.md load_memory() · 6000-char budget · 03 / Loader load_memory() 6000-char budget AgentContext · memory_context · 04 / Prompt AgentContext memory_context <MEMORY_CONTEXT> · untrusted wrapper · 04 / Prompt <MEMORY_CONTEXT> untrusted wrapper System prompt · dynamic block · 05 / Model System prompt dynamic block durable facts append notes tier 1 tier 2 model_copy text uncached tier Legend main memory path optional / on demand Markdown file data flow