I want to optimise compaction and avoid tools going into loops and prompts abruptly ending. I running lmstudio/qwen/qwen3.6-35b-a3b on a beelink gtr9 with 96 GB RAM and have set the maximum context to 256K. Here is my openclaw config, please make suggestions and ask questions
"compaction": {
"mode": "default",
"model": "lmstudio/qwen/qwen3.6-35b-a3b",
"timeoutSeconds": 3600,
"reserveTokens": 32000,
"keepRecentTokens": 40000,
"reserveTokensFloor": 48000,
"maxHistoryShare": 0.65,
"memoryFlush": {
"enabled": true,
"model": "lmstudio/qwen/qwen3.6-35b-a3b",
"softThresholdTokens": 64000,
"prompt": "Save decisions, state changes, lessons, and open tasks to memory/YYYY-MM-DD.md. Skip routine conversation. If nothing worth storing: NO_>
"systemPrompt": "Only persist what matters for session continuity. Be concise."
}
},
"contextPruning": {
"mode": "cache-ttl",
"ttl": "30m",
"keepLastAssistants": 4,
"softTrimRatio": 0.65,
"hardClearRatio": 0.88,
"minPrunableToolChars": 1200
},