Auto Memory

Memory as a learnable skill — store, recall, compress, and consolidate agent memories. Inspired by Stanford AutoMem.

zedarvates 4872ed0 7 files · 17.4 KB Updated

File contents

AutoMemory

Memory as a capability, not just storage. Adapts to patterns in agent behavior.

Features

  • MemoryBank — persistent key/value store with categories and confidence scores
  • TrajectoryRecorder — capture goal→actions→outcomes paths
  • Compressor — deduplicate, bottleneck reduction, pattern extraction
  • Hook — integrate with context_profiler and control loop

Usage

from skills.auto_memory import init_memory, store_memory, recall_memory

bank = init_memory()
store_memory("user_pref.format", "concise", category="user_pref", confidence=0.95)
prefs = recall_memory("user_pref.format")

Integration

Add to control_loop.py:

from skills.auto_memory.hook import init_memory, record_step, consolidate_memory

bank = init_memory("task_123")
record_step("plan", {"steps": ["a", "b"]})
consolidate_memory()  # merge similar memories

zedarvates/botte-secrete/tree/main/skills/auto_memory commit 4872ed04a7

Frequently asked questions

npx skillmds@latest add zedarvates/auto-memory