π¦ ClawHub
Agent Memory Optimizer
by @x3r081
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...
TERMINAL
clawhub install agent-memory-optimizerπ About This Skill
name: agent-memory-optimizer slug: agent-memory-optimizer displayName: Agent Memory Optimizer description: >- 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, cleaner memory directories, and low-maintenance memory operations. version: 1.0.0 metadata: openclaw: requires: bins: - python3 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
memory/*.mdmemory/archive/YYYY-MM/--dry-run to preview changesRun
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:
/skills/agent-memory-optimizer/
Or install from ClawHub after publishing.