What is Knowledge?
Knowledge represents canonicalized truths — insights that have been extracted, validated, and promoted from memory patterns. While memories capture individual experiences, knowledge captures what the agent has learned from those experiences.
Knowledge sits above memories in the cognitive hierarchy:
Events → Memories → Knowledge → Identity
How Knowledge Is Created
Knowledge is extracted automatically by the Dreamer during deep sleep curation:
- The Dreamer reviews clusters of related memories
- An LLM identifies recurring patterns and insights
- These are promoted to Knowledge entries with type classification
- Knowledge entries are included in subsequent memory packs
Knowledge Types
| Type | Description | Example |
|---|---|---|
| Fact | Objective truth observed across interactions | "User prefers Python over JavaScript" |
| Preference | Behavioral pattern or stated preference | "User likes concise answers" |
| Skill | Capability or competency observed | "Agent has learned to format SQL queries" |
| Relationship | Connection between entities or concepts | "User works at Acme Corp on ML projects" |
| Rule | Behavioral guideline derived from feedback | "Always include code examples in explanations" |
Knowledge in Memory Packs
When you call inject(), knowledge entries are included in the pack alongside memories. They appear in the knowledge layer and are formatted as structured context for the LLM.
Knowledge entries persist longer than memories — they don't decay in the same way. Once a truth is canonicalized, it remains active until contradicted by new evidence or manually archived.
Knowledge synthesis requires the Dreamer to be active. For new animas with few events, knowledge will be sparse. It grows naturally as more interactions are captured and curated.
The Path to Identity
Over time, accumulated knowledge shapes the agent's Identity — its behavioral fingerprint, tone preferences, and worldview. This is the final layer in the LTAM hierarchy, emerging from patterns across all knowledge entries.