Context Eviction
Context eviction provides lifecycle-aware pruning of old context in longer shared-session workflows.
Note: Eviction is currently only available on OpenClaw (not Codex or Claude Code).
Mode Thresholds
| Mode | Eviction | Threshold |
|---|---|---|
| Conservative | Off | N/A |
| Normal | Off | N/A |
| Aggressive | On | Lower (evicts sooner) |
Controlling Eviction
bash
# Toggle eviction
lightmem2 eviction on
lightmem2 eviction off
# In OpenClaw
/lightmem2 eviction onNext
- Stable Prefix — cache optimization
- Context Reduction — trimming tool output
- Reports and Visuals — see all metrics