In this article
Keep durable memory indexes concise and reviewed, because a new session loads a bounded view from disk rather than every prior note or a verified project specification.
Distinguish learned notes from a restored conversation
OpenHands’ persistent-memory guide describes an opt-in feature for carrying learned facts between conversations. It is off by default. This differs from resuming the same stored conversation and from repository-wide instructions. A new session can receive selected memory without inheriting the full history that originally produced each note, so the note’s current accuracy matters.
Understand the loaded indexes
The feature uses user-level memory across projects and project-level memory inside the workspace. Each tier has a MEMORY.md index and can have daily logs. Only the indexes are automatically injected; longer logs are read on demand. Put a concise durable finding in the index and retain detailed evidence elsewhere when needed. A directory full of logs does not establish that a new conversation saw their contents.
Account for truncation and trust
The guide caps the combined indexes at approximately 6,000 characters and describes dropping whole lines from over-budget tiers with a truncation notice. The injected material is explicitly marked untrusted because workspace or repository contributors can change it. Thus a saved note is a hint to verify, not an authoritative instruction that overrides the actual task. Avoid burying the only important constraint in a long index whose loaded portion may omit it.
Keep memory separate from context compression
The condenser guide summarizes older conversation material to manage the current context. The persistence guide retains conversation state for restoration. Persistent memory is instead resolved from disk for each opted-in session, with resolved memory excluded from persisted conversation state. Changing a memory file and restoring a conversation therefore need not reproduce an identical historical memory view. Record relevant memory revisions when that distinction affects reproducibility.
Curate what deserves to survive
Keep stable environment quirks and project decisions, remove obsolete workarounds and avoid storing credentials. Compare a remembered root cause with current code before extending a fix around it. Progressive reading helps follow an index to supporting evidence; tool observations distinguish remembered claims from new verification. A useful memory system reduces rediscovery while preserving the ability to correct its own stale or mistaken notes.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.