mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 00:03:01 +03:00
refactor(memory): remove redundant archive instructions
This commit is contained in:
@@ -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.
|
||||
|
||||
Do not call tools. Return only the overview, following these memory rules:
|
||||
|
||||
Only SNIP facts deserve a non-[skip] mark:
|
||||
Use [skip] unless a fact meets all SNIP criteria:
|
||||
- Signal: would the user need to repeat this if forgotten?
|
||||
- Novel: not just a restatement of another fact in this same conversation chunk
|
||||
- Important: prevents rework or captures preferences / rules
|
||||
- Persistent: still relevant after 2 weeks
|
||||
|
||||
Output one fact per line in this format:
|
||||
Format each fact as:
|
||||
- [mark] fact content
|
||||
|
||||
Marks (choose the best match):
|
||||
@@ -16,13 +14,12 @@ Marks (choose the best match):
|
||||
- [durable] Technical discoveries, project knowledge, config details — valid for months
|
||||
- [ephemeral] Active task state, temporary decisions — may change in weeks
|
||||
- [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 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.
|
||||
If nothing noteworthy happened, output: (nothing)
|
||||
Return only formatted fact lines, or `(nothing)` if nothing noteworthy happened.
|
||||
|
||||
Reference in New Issue
Block a user