@icex-labs/openclaw-memory-engine 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/setup.sh +19 -35
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -283,41 +283,25 @@ if [ -f "$AGENTS_MD" ]; then
|
|
|
283
283
|
if ! grep -q "core_memory_read" "$AGENTS_MD"; then
|
|
284
284
|
cat >> "$AGENTS_MD" <<'PATCH'
|
|
285
285
|
|
|
286
|
-
## Memory System
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
###
|
|
291
|
-
-
|
|
292
|
-
- `
|
|
293
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
- `
|
|
298
|
-
- `archival_search
|
|
299
|
-
- `
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
-
|
|
303
|
-
- `
|
|
304
|
-
- `
|
|
305
|
-
|
|
306
|
-
### Episodic Memory (`episode_save` / `episode_recall`)
|
|
307
|
-
- `episode_save`: at end of meaningful conversations (summary, decisions, mood, topics)
|
|
308
|
-
- `episode_recall`: "what did we discuss about X last time?"
|
|
309
|
-
|
|
310
|
-
### Maintenance
|
|
311
|
-
- `memory_reflect`: analyze patterns (use during heartbeats)
|
|
312
|
-
- `archival_deduplicate`: clean near-duplicate facts
|
|
313
|
-
- `memory_consolidate`: extract facts from text blocks
|
|
314
|
-
- `memory_dashboard`: generate browsable HTML dashboard
|
|
315
|
-
|
|
316
|
-
### Memory Discipline
|
|
317
|
-
- If it matters → `archival_insert` it. "Mental notes" don't survive restarts.
|
|
318
|
-
- Don't guess → `archival_search` first.
|
|
319
|
-
- End of conversation → `episode_save`.
|
|
320
|
-
- Update core memory proactively.
|
|
286
|
+
## Memory System (memory-engine plugin v4.2)
|
|
287
|
+
|
|
288
|
+
**Memory is automatic.** All conversations are captured by hooks — you don't need to manually save anything.
|
|
289
|
+
|
|
290
|
+
### What NOT to do
|
|
291
|
+
- **Don't say "I'll remember that" or "recorded"** — memory happens silently
|
|
292
|
+
- **Don't call `archival_insert` for conversation content** — hooks already capture it
|
|
293
|
+
- Just be natural. Like a person who actually remembers things.
|
|
294
|
+
|
|
295
|
+
### When to use tools manually
|
|
296
|
+
- `core_memory_read` — call at **every session start** to load your identity
|
|
297
|
+
- `core_memory_replace` / `core_memory_append` — when identity facts change
|
|
298
|
+
- `archival_search` — **before answering factual questions** (don't guess)
|
|
299
|
+
- `archival_insert` — only for non-conversation sources (web_fetch results, file contents)
|
|
300
|
+
- `archival_update` / `archival_delete` — correct or remove wrong facts
|
|
301
|
+
- `graph_query` — answer relational questions ("who is my doctor?")
|
|
302
|
+
- `episode_save` — at end of meaningful conversations (summary, decisions, mood)
|
|
303
|
+
- `episode_recall` — "what did we discuss about X last time?"
|
|
304
|
+
- `memory_reflect` — during heartbeats to analyze patterns
|
|
321
305
|
PATCH
|
|
322
306
|
echo "✅ AGENTS.md patched with memory instructions"
|
|
323
307
|
else
|