﻿# OpenHands persistent memory loads bounded indexes as unverified hints

OpenHands persistent memory is opt-in and loads bounded user/project MEMORY.md indexes as unverified hints; daily logs, conversation persistence and context compression remain separate.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-openhands-persistent-memory-index-budget/
Language: en

## Distinguish learned notes from a restored conversation

OpenHands' [persistent-memory guide](https://docs.openhands.dev/sdk/guides/persistent-memory) 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](https://docs.openhands.dev/sdk/guides/context-condenser) summarizes older conversation material to manage the current context. The [persistence guide](https://docs.openhands.dev/sdk/guides/convo-persistence) 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](/journal/learn-codex-progressive-reading/) helps follow an index to supporting evidence; [tool observations](/journal/learn-codex-tool-observation/) distinguish remembered claims from new verification. A useful memory system reduces rediscovery while preserving the ability to correct its own stale or mistaken notes.
