@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.sh +19 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icex-labs/openclaw-memory-engine",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "MemGPT-style hierarchical memory plugin for OpenClaw — core memory block + archival storage with semantic search",
5
5
  "type": "module",
6
6
  "main": "index.js",
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 MemGPT Architecture
287
-
288
- You have 19 memory tools. **Use them actively.**
289
-
290
- ### Core Memory (`core_memory_read` / `core_memory_replace` / `core_memory_append`)
291
- - Call `core_memory_read` at **every session start**
292
- - `core_memory_replace` when facts change
293
- - `current_focus` max 5 items update frequently
294
- - Hard limit: 3KB — move details to archival
295
-
296
- ### Archival Memory (`archival_insert` / `archival_search` / `archival_update` / `archival_delete`)
297
- - `archival_insert`: store facts with entity + tags + importance (1-10)
298
- - `archival_search`: hybrid keyword + semantic search. Use before guessing.
299
- - `archival_update`/`archival_delete`: correct or remove outdated facts
300
-
301
- ### Knowledge Graph (`graph_query` / `graph_add`)
302
- - Auto-extracted from archival_insert (relations like has_doctor, owns, lives_in)
303
- - `graph_query`: traverse from entity to find connections
304
- - `graph_add`: manually add relations
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