Fact Ingestion
Extract durable facts from the provided text and store them in db0 memory.
Workflow
- Analyze
$ARGUMENTSfor durable facts worth remembering - For each fact, determine the appropriate scope:
user— user preferences, decisions, personal context (permanent, cross-session)agent— agent-specific knowledge, patterns (permanent, all sessions)session— current session context, decisions in progress
- Call
db0_memory_writefor each extracted fact with:
content: the fact textscope: determined scopetags: relevant tags for filtering
If the text contains corrections to existing facts, first call db0_memory_search to find the old memory, then use supersedes to mark it as replaced.
Examples
User: "remember that I prefer dark mode"
→ db0_memory_write({ content: "User prefers dark mode", scope: "user", tags: ["preference", "ui"] })
User: "actually I switched to light mode"
→ Search for existing dark mode preference, then supersede it with new light mode preference.