Memory System

Holon is designed for long-lived agents. Memory preserves what matters across turns without replaying the entire conversation history. The runtime derives memory from durable evidence rather than relying on free-form model summaries.

Memory Layers

Holon's context memory has four layers, each with a distinct role:

Durable Ledger  ──── append-only audit trail (messages, briefs, tool calls, tasks)
     │
     ▼
Working Memory  ──── compact current-state snapshot rebuilt after each turn
     │
     ▼
Episode Memory  ──── archived records of completed work chunks
     │
     ▼
Context Assembly ──── budgeted prompt sections selected from all layers

Durable Ledger

The append-only source of truth. Every runtime event is recorded:

The ledger is not prompt-bounded. It grows indefinitely as the audit trail. The model-visible projection is a compressed selection, not a full replay.

Working Memory

Working memory is the compact current-state snapshot that answers:

It is derived deterministically from runtime state and rebuilt after each turn reaches closure. When the snapshot changes, the runtime appends a working memory delta to the ledger.

Working memory is not free-form summary. It is a structured projection of the runtime's own records — current work item, active todo list, pending follow-ups, and waiting conditions.

Episode Memory

Episode memory archives completed work. While work is in progress, an active episode builder accumulates:

When a meaningful boundary is reached (work item completed, task finished), the runtime finalizes the builder into an immutable episode record and stores it.

Archived episodes are selected into prompt context by relevance and budget, not rendered in full by default.

Context Assembly

Each turn assembles a prompt from budgeted memory sections:

This assembly keeps prompt size bounded while preserving continuity. Slow-changing memory sections keep provider cache identity stable.

Memory vs Agent Home Files

Memory and agent home files serve different purposes:

AspectRuntime MemoryAgent Home Files
What it storesCurrent state, episodes, evidenceRole contract, notes, references
Who writes itRuntime (automatic)Agent or operator (manual)
DurabilityAppend-only ledger + snapshotsPersistent files
SearchIndexed via MemorySearchOrdinary file read
LoadedBudgeted prompt assemblyAGENTS.md always loaded

agent_home/AGENTS.md is loaded guidance — the agent's long-lived role contract. Runtime memory is automatically derived evidence. They coexist without overlapping.

MemorySearch and MemoryGet

Holon exposes two memory tools for indexed retrieval:

These tools let the agent pull relevant past context on demand without rendering every archived episode into every prompt.

Memory and Work Items

Memory is tightly coupled to work items:

This means Holon can remember what it did for a previous issue without re-reading the entire transcript of that work.

Memory Boundaries

Holon separates memory by identity scope:

These boundaries prevent session transcripts from becoming the only memory surface and let shared workspaces accumulate knowledge across multiple agents.

See Also