Skip to main content

Brain vs Memory vs Session

Goal

Know what goes in ModusBrain, what goes in agent memory, and what stays in session context — so every piece of information lands in the right layer.

What the User Gets

Without this: people dossiers get stored in agent memory (lost on agent reset), user preferences get stored in ModusBrain (cluttering knowledge pages), and the agent re-asks questions it already knows the answer to. With this: world knowledge persists in the brain, operational state persists in agent memory, and the agent never puts information in the wrong layer.

Implementation

Tricky Spots

  1. Don’t store people in agent memory. “Pedro prefers email over Slack” feels like a preference, but it’s a fact about Pedro — it goes in ModusBrain on Pedro’s page. Agent memory is for the agent’s own operational state, not facts about people in the world.
  2. Don’t store user preferences in ModusBrain. “User likes bullet points over paragraphs” is about how the agent should behave, not about the world. It goes in agent memory. ModusBrain pages are for entities, not for agent configuration.
  3. Synthesis of external ideas goes in ModusBrain. “User’s take on Peter Thiel’s zero-to-one framework” is the user’s original thinking — it goes in ModusBrain under originals/, not in agent memory.
  4. Agent memory doesn’t survive agent resets on some platforms. Critical world knowledge MUST be in ModusBrain, which is durable. If the agent loses memory, the brain still has everything.
  5. When in doubt, ask: is this about the world or about how to operate? World -> ModusBrain. Operations -> agent memory. Current conversation -> session.

How to Verify

  1. Ask the agent “Who is Pedro?” — confirm it runs modusbrain search or modusbrain get, not memory_search. Person lookup should hit ModusBrain.
  2. Ask the agent “How should I format responses?” — confirm it checks agent memory, not ModusBrain. Preferences are operational state.
  3. Check that no person or company pages exist in agent memory storage. Run memory_search "person" — it should return preferences, not dossiers.
  4. Check that ModusBrain doesn’t contain pages about agent behavior. Run modusbrain search "user prefers" — it should return nothing (preferences belong in agent memory).
  5. After an agent reset, confirm ModusBrain knowledge is still accessible. Run modusbrain get <any_slug> — world knowledge should survive the reset.

Part of the ModusBrain Skillpack.