From 40cc9395fcfb7535de22ec8093658804f11017ff Mon Sep 17 00:00:00 2001 From: chengyongru Date: Wed, 19 Aug 2026 17:14:53 +0800 Subject: [PATCH] refactor(memory): remove redundant archive instructions --- nanobot/templates/agent/consolidator_archive.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nanobot/templates/agent/consolidator_archive.md b/nanobot/templates/agent/consolidator_archive.md index 7d7375c79..6b956a39e 100644 --- a/nanobot/templates/agent/consolidator_archive.md +++ b/nanobot/templates/agent/consolidator_archive.md @@ -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.