Skip to content

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

ModeEvictionThreshold
ConservativeOffN/A
NormalOffN/A
AggressiveOnLower (evicts sooner)

Controlling Eviction

bash
# Toggle eviction
lightmem2 eviction on
lightmem2 eviction off

# In OpenClaw
/lightmem2 eviction on

Next

Released under the MIT License.