firehose> #llmops

Layered Agent Memory

The memory architecture of a personal always-on agent, arranged in three tiers with different freshness, cost, and recall characteristics. Tier one is a handful of markdown files appended to every context right after the system prompt: in Hermes, soul.md (the agent's personality — effectively the system prompt; ships empty and falls back to a stock "you are a virtual assistant" prompt until written), memory/user.md (facts about the operator, auto-updated whenever the agent learns something about you), and memory/memory.md (arbitrary useful facts — tool usage, workflows, learnings). Tier two is the internal transcript store: every session's full transcript in SQLite, including a bare-text table that makes similarity search over past conversations easy; this is also where the Agent Gateway pulls message history from. Tier three is optional external memory providers (mem0, SuperMemory, Honcho, …) — specialized services with their own recall mechanisms, off by default, which when enabled inject a past-sessions summary block into context. The tiers are kept honest by the loop's memory-update tail: after every response the agent checks whether the exchange held anything worth writing down — which is what makes the agent learn continuously from use.

Claims


Linked from