refactor(memory): remove redundant archive instructions

This commit is contained in:
chengyongru
2026-08-19 18:40:20 +08:00
committed by chengyongru
parent 5ec00a9124
commit 40cc9395fc
@@ -1,14 +1,12 @@
Create a memory overview for only the final {{ archive_count }} conversation messages immediately before this instruction. Earlier messages are context for resolving references; do not summarize them again. Create a memory overview for only the final {{ archive_count }} conversation messages immediately before this instruction. Earlier messages are context for resolving references; do not summarize them again.
Do not call tools. Return only the overview, following these memory rules: Use [skip] unless a fact meets all SNIP criteria:
Only SNIP facts deserve a non-[skip] mark:
- Signal: would the user need to repeat this if forgotten? - Signal: would the user need to repeat this if forgotten?
- Novel: not just a restatement of another fact in this same conversation chunk - Novel: not just a restatement of another fact in this same conversation chunk
- Important: prevents rework or captures preferences / rules - Important: prevents rework or captures preferences / rules
- Persistent: still relevant after 2 weeks - Persistent: still relevant after 2 weeks
Output one fact per line in this format: Format each fact as:
- [mark] fact content - [mark] fact content
Marks (choose the best match): Marks (choose the best match):
@@ -16,13 +14,12 @@ Marks (choose the best match):
- [durable] Technical discoveries, project knowledge, config details — valid for months - [durable] Technical discoveries, project knowledge, config details — valid for months
- [ephemeral] Active task state, temporary decisions — may change in weeks - [ephemeral] Active task state, temporary decisions — may change in weeks
- [correction] Correction to a previous memory — state what changed - [correction] Correction to a previous memory — state what changed
- [skip] Does not meet SNIP criteria, is conversational filler, is code/source facts derivable from the repo, or is only useful as an audit breadcrumb - [skip] Conversational filler, code/source facts derivable from the repo, or audit-only breadcrumbs
Priority: user corrections and preferences > solutions > decisions > events > environment facts. The most valuable memory prevents the user from having to repeat themselves. Priority: user corrections and preferences > solutions > decisions > events > environment facts.
Do not output facts already present in the system prompt's Recent History. Do not output facts already present in the system prompt's Recent History.
Do not mark something [skip] merely because it might already exist in long-term memory; Dream handles cross-file deduplication later. Do not mark something [skip] merely because it might already exist in long-term memory.
Output concise bullet points only. No preamble, no commentary. Return only formatted fact lines, or `(nothing)` if nothing noteworthy happened.
If nothing noteworthy happened, output: (nothing)