Skip to content

Commit 5c2eb80

Browse files
jack-arturoclaude
andauthored
docs: fix drift in best-practices/memory-rules (#250)
- Correct the src/index.ts line reference for expansion params (764-811, not 350-355) to match current mcp-automem main. - Update the Two-Phase Recall example to match the current CLAUDE_MD_MEMORY_RULES.md template: Phase 1 now uses limit 20 + sort: "updated_desc"; Phase 2 uses a single query (not queries[] + auto_decompose) with a 90-day window and limit 30, per the template's own validated tradeoffs note. Claude-Session: https://claude.ai/code/session_01KUAMUr6mjcGM9AHhBd4UmY Co-authored-by: Claude <noreply@anthropic.com>
1 parent ee81ca1 commit 5c2eb80

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/content/docs/docs/best-practices/memory-rules.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ The `recall_memory` tool supports five fundamental recall strategies, often used
4747
```
4848
recall_memory({
4949
tags: ["preference"],
50-
limit: 10
50+
limit: 20,
51+
sort: "updated_desc"
5152
})
5253
```
5354

5455
**Phase 2 — Task context (semantic + temporal):**
5556
```
5657
recall_memory({
57-
queries: ["<current topic>", "user corrections"],
58+
query: "<proper nouns, specific tools, exact topics from the user's message>",
5859
tags: ["<project-name>"],
59-
limit: 10,
60-
auto_decompose: true,
61-
time_query: "last 30 days"
60+
limit: 30,
61+
time_query: "last 90 days"
6262
})
6363
```
6464

6565
:::tip[Key insight]
66-
Don't mix tag-based preference recall with semantic task recall — combining them dilutes results. Preferences are stable and should use exact tag matching without semantic search interference.
66+
Don't mix tag-based preference recall with semantic task recall — combining them dilutes results. Preferences are stable and should use exact tag matching without semantic search interference. For Phase 2, a single well-written `query` consistently beats `queries[]` + `auto_decompose: true` on focused tasks; reserve multi-query decomposition for genuinely multi-topic questions.
6767
:::
6868

6969
### Advanced Recall Techniques
@@ -84,7 +84,7 @@ Enable graph traversal to follow relationships from seed results:
8484
}
8585
```
8686

87-
API parameters exposed in `src/index.ts:350-355`:
87+
API parameters exposed in `src/index.ts:764-811`:
8888
- `expand_entities: true` — Enable multi-hop entity expansion
8989
- `expand_relations: true` — Follow graph relationships from seed results
9090
- `expand_min_importance: 0.5` — Filter expanded results by importance threshold

0 commit comments

Comments
 (0)