You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src-rust/crates/query/src/auto_dream.rs
+24-16Lines changed: 24 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -291,52 +291,49 @@ You are performing a dream — a reflective pass over your memory files. Synthes
291
291
292
292
Memory directory: `{memory_dir}`
293
293
294
-
Session transcripts: `{conv_dir}` (large JSONL files — grep narrowly, do not read whole files)
294
+
Session transcripts are intentionally unavailable to this automatic background task. Do not inspect historical conversation JSONL files or any other transcript store.
295
295
296
296
---
297
297
298
298
## Phase 1 — Orient
299
299
300
-
- `ls` the memory directory to see what already exists
300
+
- List the memory directory to see what already exists
301
301
- Read `MEMORY.md` to understand the current index
302
302
- Skim existing topic files so you improve them rather than creating duplicates
303
303
304
304
## Phase 2 — Gather recent signal
305
305
306
-
Look for new information worth persisting:
306
+
Look for new information worth persisting from existing memory files only:
307
307
308
308
1. **Daily logs** (`logs/YYYY/MM/YYYY-MM-DD.md`) if present
309
309
2. **Existing memories that drifted** — facts that contradict what you see now
310
-
3. **Transcript search** — grep narrowly for specific terms:
Do not exhaustively read transcripts. Look only for things you already suspect matter.
311
+
Do not inspect session transcripts, conversation logs, repository files, web pages, or other external data sources.
314
312
315
313
## Phase 3 — Consolidate
316
314
317
-
For each thing worth remembering, write or update a memoryfile. Focus on:
315
+
For each thing worth remembering, draft the exact memory-file changes that should be applied later with foreground user approval. Focus on:
318
316
- Merging new signal into existing topic files rather than creating near-duplicates
319
317
- Converting relative dates to absolute dates
320
-
- Deleting contradicted facts
318
+
- Identifying contradicted facts
321
319
322
320
## Phase 4 — Prune and index
323
321
324
-
Update `MEMORY.md` so it stays under 200 lines and ~25 KB. It is an **index**, not a dump.
322
+
Review `MEMORY.md` for changes that would keep it under 200 lines and ~25 KB. It is an **index**, not a dump.
325
323
Each entry: `- [Title](file.md) — one-line hook`
326
324
327
-
- Remove pointers to stale, wrong, or superseded memories
328
-
- Shorten verbose entries; move detail into topic files
329
-
- Add pointers to newly important memories
330
-
- Resolve contradictions
325
+
- Identify pointers to stale, wrong, or superseded memories
326
+
- Suggest shorter entries where entries are verbose
327
+
- Suggest pointers to newly important memories
328
+
- Identify contradictions
331
329
332
330
---
333
331
334
-
Return a brief summary of what you consolidated, updated, or pruned. If nothing changed, say so.
332
+
Return a brief summary and any suggested file changes. If nothing should change, say so.
335
333
336
-
**Tool constraints for this run:** Use only read-only Bash commands (ls, find, grep, cat, stat, wc, head, tail). Anything that writes, redirects to a file, or modifies state will be denied.
334
+
**Tool constraints for this run:** This automatic background task is read-only. Use only the provided read-only file discovery tools. Anything that writes, runs shell commands, accesses the network, or reads transcripts will be denied.
"system_prompt":"You are performing automatic memory consolidation. Complete the task and return a brief summary.",
1845
+
"system_prompt":"You are performing automatic read-only memory consolidation. Complete the task and return a brief summary with any suggested changes. Do not read transcripts, run commands, access the network, or modify files.",
0 commit comments