|
1 | | -# 🔍 Echo Memory Recall Installation Protocol |
2 | | -*Systematic memory recall setup for AI MemoryCore companions* |
| 1 | +# Echo Memory Recall Installation Protocol |
| 2 | +*Unified Core compatible recall setup* |
3 | 3 |
|
4 | | -## Purpose |
5 | | -Executed when "Load echo-recall" command is used — installs memory search and narrative recall capabilities, adds trigger detection, and cleans up. |
6 | | - |
7 | | -## Trigger Command |
8 | | -``` |
9 | | -"Load echo-recall" |
10 | | -``` |
11 | | -*Automatically installs recall protocol, trigger detection, and format reference* |
| 4 | +## Trigger |
| 5 | +`Load echo-recall` |
12 | 6 |
|
13 | 7 | ## Prerequisites |
14 | | -- `daily-diary/` directory must exist with dated entries |
15 | | -- Works best with **Save-Diary-System** installed (but not required) |
16 | | -- Existing diary files in any dated format also work |
17 | | - |
18 | | -## 5-Step Execution Process |
19 | | - |
20 | | -### Step 1: Customize Recall System Name |
21 | | -- [ ] Ask user: **"What would you like to name your memory recall system?"** |
22 | | - - Default: `"Memory Recall"` |
23 | | - - Examples: `"Echo"`, `"Remember"`, `"Flashback"`, `"Time Capsule"`, `"Rewind"` |
24 | | -- [ ] Store chosen name as `[RECALL_NAME]` for use in all references |
25 | | -- [ ] Execute `date` command (or `Get-Date` on Windows) to get current timestamp |
26 | | - |
27 | | -### Step 2: Verify Diary Infrastructure |
28 | | -- [ ] Check `daily-diary/` directory exists |
29 | | -- [ ] Check for entries in `daily-diary/current/` (flat files or folders) |
30 | | -- [ ] Check for entries in `daily-diary/archived/*/` (if any) |
31 | | -- [ ] If no diary infrastructure exists: |
32 | | - - Inform user: "Memory recall searches diary entries. You'll need diary files to search through." |
33 | | - - Recommend: "Install the Save-Diary-System feature first for best results." |
34 | | - - Allow user to continue anyway (recall will work once diary entries exist) |
35 | | - |
36 | | -### Step 3: Install Recall Protocol into AI Memory |
37 | | -- [ ] Add recall trigger detection to AI's main memory file (`identity-core.md` or `main-memory.md`): |
38 | | - |
39 | | - ```markdown |
40 | | - ### [RECALL_NAME] |
41 | | - **Trigger phrases**: "do you remember", "remember when", "recall", |
42 | | - "that time when", "what happened with", "when did we", |
43 | | - "have we done", "check our history", "check history" |
44 | | - |
45 | | - **When triggered:** |
46 | | - 1. Extract 2-4 keywords from user's question |
47 | | - 2. Search daily-diary/current/*.md for keyword matches |
48 | | - 3. If not found, search daily-diary/archived/*/*.md |
49 | | - 4. If found: present as narrative (use recall-format.md) |
50 | | - 5. If not found: ask user directly |
51 | | - |
52 | | - **Three-Level System:** |
53 | | - - **Lv.1 Search & Narrate** — Search diary files, present as natural story |
54 | | - - **Lv.2 Uncertainty Guard** — When uncertain about past context, ALWAYS |
55 | | - search diary before speaking. Never assume or fabricate past events. |
56 | | - - **Lv.3 Ask User Fallback** — When search yields no results, ask: |
57 | | - "I don't see a record of [topic] in my diary. Can you tell me |
58 | | - more about what you're remembering?" |
59 | | - |
60 | | - **Rules:** |
61 | | - - NEVER fabricate past context — always search first |
62 | | - - Present results as natural narrative, not raw search output |
63 | | - - Include relevant quotes from diary entries |
64 | | - - Order multiple results chronologically |
65 | | - - Continue conversation naturally after recall |
66 | | - ``` |
67 | | - |
68 | | -### Step 4: Install Recall Format Template |
69 | | -- [ ] Copy `recall-format.md` to `daily-diary/recall-format.md` |
70 | | - (permanent reference for how recall output should be structured) |
71 | | -- [ ] Verify format template is accessible from AI memory references |
72 | | - |
73 | | -### Step 5: Update Master Memory and Cleanup |
74 | | -- [ ] Add recall reference to `master-memory.md` Optional Components: |
75 | | - ```markdown |
76 | | - ### [RECALL_NAME] |
77 | | - *Auto-triggers on: "do you remember", "recall", "when did we", etc.* |
78 | | - - Searches: daily-diary/current/ and daily-diary/archived/ |
79 | | - - Output: Narrative presentation (not raw search) |
80 | | - - Fallback: Asks user when nothing found |
81 | | - - Format: daily-diary/recall-format.md |
82 | | - ``` |
83 | | -- [ ] Add recall commands to Simple Commands section: |
84 | | - ``` |
85 | | - "recall [topic]" → Search diary for past sessions about [topic] |
86 | | - "check history" → Search diary for relevant past context |
87 | | - ``` |
88 | | -- [ ] Remove `Feature/Echo-Memory-Recall/` folder (functionality installed) |
89 | | -- [ ] Display completion confirmation with timestamp |
90 | | - |
91 | | -## Recall Search Protocol (AI Reference After Installation) |
92 | | - |
93 | | -### Keyword Extraction |
94 | | -From user's question, extract 2-4 most specific terms: |
95 | | -- Remove common words (the, a, when, did, we, do, you, remember, etc.) |
96 | | -- Prioritize proper nouns, technical terms, action verbs |
97 | | -- Examples: |
98 | | - - "Do you remember when we fixed the auth bug?" → `["auth", "bug", "fixed"]` |
99 | | - - "What happened with the dashboard project?" → `["dashboard", "project"]` |
100 | | - - "When did we set up the database?" → `["database", "set up"]` |
101 | | - |
102 | | -### Search Execution |
103 | | -``` |
104 | | -1. Read each file in daily-diary/current/ matching YYYY-MM-DD.md pattern |
105 | | -2. Check each file for keyword matches (case-insensitive) |
106 | | -3. If matches found: extract surrounding paragraph context |
107 | | -4. If no matches in current/: repeat for daily-diary/archived/*/ |
108 | | -5. Rank results by number of keyword matches, then by recency |
109 | | -``` |
110 | | - |
111 | | -### Narrative Composition |
112 | | -From matched diary excerpts, compose natural response: |
113 | | -1. **Opening** — "Yes, I remember! On [date]..." or "I found that on [date]..." |
114 | | -2. **Context** — Brief excerpt with key details from diary entry |
115 | | -3. **Significance** — Why this was important or what it meant |
116 | | -4. **Connection** — How it relates to current conversation |
117 | | -5. **Continue** — Flow naturally into ongoing discussion |
118 | | - |
119 | | -### Edge Cases |
120 | | - |
121 | | -| Situation | Behavior | |
122 | | -|-----------|----------| |
123 | | -| No matches anywhere | Ask user: "I don't have a record of that..." | |
124 | | -| Multiple matches | Present chronologically, note patterns if visible | |
125 | | -| Vague query | Ask user to be more specific before searching | |
126 | | -| Match only in archived months | Search takes longer, note the date range found | |
127 | | -| Partial match | Present as uncertain: "I found something that might be related..." | |
128 | | - |
129 | | -## Post-Installation Result |
130 | | -- AI can recall past sessions through natural conversation |
131 | | -- Never fabricates context — always searches diary evidence first |
132 | | -- Gracefully handles missing memories by asking the user |
133 | | -- Recall output reads as natural narrative, not database dump |
134 | | -- Works with any diary format (Save-Diary-System or existing protocol) |
135 | | - |
136 | | -## Notes |
137 | | -- Recall quality depends on diary entry quality (richer entries = better recall) |
138 | | -- Search is keyword-based, not semantic (relies on word matches in diary text) |
139 | | -- For best results, diary entries should include specific technical terms and names |
140 | | -- Cross-platform compatible: Uses file reading, not platform-specific search tools |
141 | | -- The `[RECALL_NAME]` placeholder should be replaced with the name chosen in Step 1 |
142 | | - |
143 | | ---- |
144 | | - |
145 | | -**Version**: Protocol v1.0 - Echo Memory Recall Installation Workflow |
146 | | -**Last Updated**: February 2026 |
147 | | -**Status**: Active protocol for memory recall setup |
148 | | - |
149 | | -*Search before speaking, narrate from evidence, ask when uncertain* |
| 8 | +- Diary directories exist under `daily-diary/`. |
| 9 | +- Best results with unified save pipeline active. |
| 10 | + |
| 11 | +## Install Steps |
| 12 | +1. Confirm recall system name. |
| 13 | +2. Verify search paths: |
| 14 | +- `daily-diary/current/` |
| 15 | +- `daily-diary/archived/` |
| 16 | +- `daily-diary/archived/legacy/` |
| 17 | +3. Add recall behavior guidance to `main/main-memory.md`. |
| 18 | +4. Ensure `daily-diary/recall-format.md` is available. |
| 19 | +5. Update `master-memory.md` optional features listing. |
| 20 | + |
| 21 | +## Recall Rule Set |
| 22 | +- Search current first, then archives, then legacy. |
| 23 | +- Narrate from evidence. |
| 24 | +- Use ask-user fallback when no match is found. |
0 commit comments