Skip to main content

Overview

The auto-memory system lets agents save and recall information across sessions. Memories are stored as individual markdown files with YAML frontmatter in ~/.orx/projects/<workspace>/memory/.

Memory Types

Memory Tools

The agent has three tools for managing memories:

save_memory

list_memories

Lists all saved memories with type and description.

delete_memory

Removes a memory by name.

Storage Format

Each memory is a markdown file with YAML frontmatter:

Memory Index

MEMORY.md is auto-maintained as an index of all memories (capped at 200 lines). It’s loaded into the agent’s context at startup.

CLI Commands

What NOT to Save

  • Code patterns or architecture (derivable from the code)
  • Git history (use git log)
  • Debugging recipes (the fix is in the code)
  • API keys or secrets
  • Ephemeral task state

YAML Configuration

Add memory tools to any agent via the memory builtin: