Install
openclaw skills install context-budgetingManage and optimize OpenClaw context window usage via partitioning, pre-compression checkpointing, and information lifecycle management. Use when the session context is near its limit (>80%), when the agent experiences "memory loss" after compaction, or when aiming to reduce token costs and latency for long-running tasks.
openclaw skills install context-budgetingThis skill provides a systematic framework for managing the finite context window (RAM) of an OpenClaw agent.
Before any compaction (manual or automatic), the agent MUST:
memory/hot/HOT_MEMORY.md with:
scripts/gc_and_checkpoint.sh to trigger the physical cleanup.gc_and_checkpoint.shLocated at: skills/context-budgeting/scripts/gc_and_checkpoint.sh
Usage:
HOT_MEMORY.md to finalize the compaction process without restarting the session.Heartbeat (every 30m) acts as the Garbage Collector (GC):
/status. If Context > 80%, trigger the Checkpointing procedure.