Agent Memory Optimizer

v1.0.0

Archives older daily memory notes into month folders to keep active memory lean and reduce prompt token usage. Use when users want lower token overhead, clea...

0· 83· 1 versions· 0 current· 0 all-time· Updated 7h ago· MIT-0

Install

openclaw skills install agent-memory-optimizer

Agent Memory Optimizer

Optimize active memory context by archiving old daily notes into month-based folders.

What it does

  • Scans memory/*.md
  • Moves files older than the current month into memory/archive/YYYY-MM/
  • Supports --dry-run to preview changes
  • Safe to run repeatedly

Run

python3 scripts/agent_memory_optimizer.py --dry-run
python3 scripts/agent_memory_optimizer.py

Optional custom cutoff:

python3 scripts/agent_memory_optimizer.py --before 2026-05

Installation

Install into your workspace skills directory:

<workspace>/skills/agent-memory-optimizer/

Or install from ClawHub after publishing.

Version tags

latestvk971afjfzrfa6yy2q2d8f49ztx84z9ct

Runtime requirements

Binspython3