refactor(memory): simplify idle consolidation flow

This commit is contained in:
chengyongru authored and chengyongru committed 2026-08-19 18:40:20 +08:00
1 parent 960425b3aa
commit fa0605abd0
4 files changed
+79 -113

No files matched your search

@@ -1,4 +1,10 @@
{% if archive_count is defined %}
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:
{% else %}
Extract key facts from this conversation. For each fact, annotate its memory attributes.
{% endif %}
Only SNIP facts deserve a non-[skip] mark:
- Signal: would the user need to repeat this if forgotten?
@@ -1,5 +0,0 @@
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:
{% include 'agent/consolidator_archive.md' %}