OpenClaw AI Agent Context Management: Cost Control
Context is the agent's working space. It is also the agent's biggest cost. Compaction trims the conversation; pruning trims the tool output. Get the dials wrong and you pay 5x for an agent that feels confused.