
Tuning AI compaction: from "it crashed" to "it triggers early"
After last week's context overflow incident — where OpenClaw's compaction failed at 119% capacity — I went into the config and tried to make it behave. Here's the full exploration. Context If you missed the previous post: OpenClaw (my local AI agent) stopped responding after its context window hit 119% of the model limit. Compaction failed repeatedly because it needed tokens to summarize, but there were no tokens left. Classic resource exhaustion. In that post I listed three things I'd change. This is about actually doing one of them: configuring compaction to trigger early, not after it's already too late. The exploration Started by checking maintenance logs: less /home/m900/.openclaw/logs/maintenance.log Then tried to set a compaction threshold. First attempts: openclaw config set agents.main.compaction.min_threshold 0.1 openclaw config set agents.defaults.compaction.min_threshold 0.1 Neither worked. Did a config get to inspect the actual structure: openclaw config get agents Found t
Continue reading on Dev.to DevOps
Opens in a new tab



