agent-zero/plugins/_memory/prompts/agent.system.tool.memory.md
Alessandro 1cbecc241e memory: harden FAISS integrity and consolidation scoring
- Add FAISS index integrity checks using a SHA-256 sidecar (`index.faiss.sha256`) and write hash on save.
- Harden `memory_load` filter evaluation with input validation (allowlist + length cap) and `simple_eval(..., functions={})`.
- Add score-preserving similarity search and use real relevance scores in consolidation (including best-score dedupe by memory id).
- Prevent utility-model context overflows by truncating memorize input history for fragments and solutions.
2026-04-08 14:02:05 +02:00

737 B

memory tools

use when durable recall or storage is useful

  • memory_load: args query, optional threshold, limit, filter
  • memory_save: args text, optional area and metadata kwargs
  • memory_delete: arg ids comma-separated ids
  • memory_forget: args query, optional threshold, filter

notes:

  • threshold is similarity from 0 to 1
  • filter is a metadata expression (e.g. area=='main')
  • confirm destructive changes when accuracy matters

example:

{
  "thoughts": ["I should search memory for relevant prior guidance."],
  "headline": "Loading related memories",
  "tool_name": "memory_load",
  "tool_args": {
    "query": "tool argument format",
    "threshold": 0.7,
    "limit": 3
  }
}