- name
- agent-memory-optimizer
- slug
- agent-memory-optimizer
- displayName
- Agent Memory Optimizer
- description
- >-
- version
- 1.0.0
- metadata
- openclaw
- requires
- bins
- homepage
- https://docs.openclaw.ai/tools/skills
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-runto preview changes - Safe to run repeatedly
Run
python3 scripts/agent_memory_optimizer.py --dry-run
python3 scripts/agent_memory_optimizer.pyOptional custom cutoff:
python3 scripts/agent_memory_optimizer.py --before 2026-05Installation
Install into your workspace skills directory:
<workspace>/skills/agent-memory-optimizer/Or install from ClawHub after publishing.