Augments OpenClaw's built-in memory system with structured learning, preference tracking, and cross-session intelligence. Does NOT replace memory_search/memory_get — enhances them.
memory_search and memory_get are the primary read path~/.openclaw/workspace-astra/memory/synapse/
├── profile.json # Structured operator profile (facts, preferences, patterns)
├── preferences.json # Tracked preferences with confidence scores
├── patterns.jsonl # Append-only pattern detection log
├── daily/ # Daily learning cycle outputs
│ └── YYYY-MM-DD.md # What was learned today
└── associations.json # Cross-reference map (topic → related memories)
write or edit toolMEMORY.md for new entriesmemory/YYYY-MM-DD.md)profile.json with incremental changesdaily/YYYY-MM-DD.mdmemory_search first for general queriesprofile.jsondaily/ logsassociations.json for related topicsprofile.json){
"version": 1,
"lastUpdated": "ISO-8601",
"facts": {
"name": "shadoprizm",
"location": "Ottawa, Ontario",
"timezone": "EST"
},
"preferences": [
{
"category": "communication",
"item": "direct, no fluff",
"confidence": 0.95,
"source": "explicit",
"firstSeen": "ISO-8601",
"lastConfirmed": "ISO-8601"
}
],
"patterns": [
{
"description": "Always asks for cost before deploying paid agents",
"frequency": 12,
"confidence": 0.9
}
],
"corrections": [
{
"from": "Matea",
"to": "Teya (casual) / Matea (formal)",
"date": "ISO-8601"
}
]
}
daily/archive/| Query Type | Primary Tool | Synapse Supplement |
|---|---|---|
| --- | --- | --- |
| General knowledge | memory_search | — |
| Operator preferences | memory_search → profile.json | Structured preference data |
| Behavioral patterns | memory_search → patterns.jsonl | Trend analysis |
| Daily activity | memory/YYYY-MM-DD.md | daily/YYYY-MM-DD.md (learned items) |
| Cross-session context | memory_search | associations.json |
When running a learning cycle:
Review recent interactions and extract:
1. New facts learned about the operator
2. Preference signals (explicit or implicit)
3. Behavioral patterns observed
4. Corrections to prior knowledge
5. Topics of recurring interest
Update profile.json, write daily/YYYY-MM-DD.md, do NOT fabricate.
共 1 个版本