v1.5.0 — Memory that models the user
What's new
Memory in n8n-claw used to be a passive fact store — the agent saved what you said and looked it up later. v1.5.0 turns it into an active model of the user. The agent now extracts behavior patterns, tracks half-finished thoughts, and quietly carries that context into every future conversation.
3 new mechanisms, no schema migration, no breaking changes.
Pattern Extraction (nightly)
- memory-consolidation workflow now runs a second LLM pass after the daily summary — extracts 2–5 behavior patterns, communication styles, and stressors into
category='insight'memories - New patterns are tagged
new,reinforced, orcontradictedagainst the last 7 days of insights - Contradicted insights are flagged
metadata.outdated=trueinstead of being deleted — temporal validity, not destructive overwrite - Uses the same LLM provider as the existing summarize step (Claude, OpenAI, Ollama, etc.)
Open Loops
- New
category='open_loop'for half-finished thoughts the agent picks up from chat ("ich muss noch X prüfen", "vergiss nicht Y") - heartbeat workflow checks for unresolved loops older than 3 days and proactively asks: "Vor X Tagen wolltest du noch: Y. Ist das passiert?"
- Throttled to once every 24h via
heartbeat_config.last_open_loop_check - Closed via
metadata.closed=trueon shallow merge — original content preserved as audit trail
Insight Recall (every turn)
- n8n-claw-agent loads top-3 active insights into the system prompt on every message
- Insights shape behavior silently — the prompt explicitly instructs the model not to quote them
- Cost: ~200–500 extra input tokens per turn
Fixed
- memory_update —
metadatanow uses jsonb shallow merge instead of replace. Previously updating one field wiped the others. - setup.sh — workflow lookup paginates correctly past the first 100; deactivates before delete to avoid orphaned webhook registrations
- scheduled_actions —
[SKIP]marker no longer leaks into agent responses
Breaking changes
None. New category values are additive (no CHECK constraint on memory_long.category). No migration needed.
Upgrade
cd n8n-claw && git pull && ./setup.sh --forceInsights start appearing after the first nightly consolidation run. Open loops trigger after 3 days of inactivity on a topic.