everclaw 0.3.15 → 0.3.17
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/index.js +122 -122
- package/package.json +1 -1
- package/skills/memory/SKILL.md +11 -5
package/package.json
CHANGED
package/skills/memory/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ always: true
|
|
|
9
9
|
## Structure
|
|
10
10
|
|
|
11
11
|
- `memory/MEMORY.md` — Long-term facts (preferences, project context, relationships). Always loaded into your context.
|
|
12
|
-
- `memory/HISTORY.md` — Append-only event log. NOT loaded into context. Search it with grep.
|
|
12
|
+
- `memory/HISTORY.md` — Append-only event log. NOT loaded into context. Search it with grep. Entries use ISO-prefix timestamps like `[2024-01-15T10:30]`.
|
|
13
13
|
|
|
14
14
|
## Search Past Events
|
|
15
15
|
|
|
@@ -19,13 +19,19 @@ grep -i "keyword" memory/HISTORY.md
|
|
|
19
19
|
|
|
20
20
|
Use the `exec` tool to run grep. Combine patterns: `grep -iE "meeting|deadline" memory/HISTORY.md`
|
|
21
21
|
|
|
22
|
+
## Auto-consolidation
|
|
23
|
+
|
|
24
|
+
Old conversations are automatically summarized when the session grows beyond the `memoryWindow` threshold. The consolidation LLM:
|
|
25
|
+
1. Appends a summary to `HISTORY.md`
|
|
26
|
+
2. **Overwrites** `MEMORY.md` with an updated long-term memory snapshot
|
|
27
|
+
|
|
28
|
+
Because consolidation overwrites MEMORY.md entirely, do **not** manually edit it for transient notes. The consolidation prompt includes the current MEMORY.md contents, so existing facts are generally preserved and refined automatically.
|
|
29
|
+
|
|
22
30
|
## When to Update MEMORY.md
|
|
23
31
|
|
|
24
|
-
|
|
32
|
+
Only write to MEMORY.md for **critical persistent facts** that must survive before the next consolidation:
|
|
25
33
|
- User preferences ("I prefer dark mode")
|
|
26
34
|
- Project context ("The API uses OAuth2")
|
|
27
35
|
- Relationships ("Alice is the project lead")
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Old conversations are automatically summarized and appended to HISTORY.md when the session grows large. Long-term facts are extracted to MEMORY.md. You don't need to manage this.
|
|
37
|
+
Use `edit_file` to update specific sections rather than `write_file` to avoid clobbering existing content.
|