Runtime Modes
TokenPilot provides three runtime modes: conservative, normal, and aggressive. Each is a preset that configures the stabilizer, reduction, and eviction subsystems. Switch modes at any time without restarting.
Mode Comparison
| Behavior | Conservative | Normal | Aggressive |
|---|---|---|---|
| Stable Prefix | On | On | On |
| Stabilizer target | Developer | Developer | User |
| Reduction | Light | Balanced | Strong |
| Eviction | Off | On | On (lower threshold) |
| Risk of signal loss | Very low | Low | Moderate |
| Token savings | Moderate | High | Maximum |
Conservative Mode
For safety-critical sessions where you cannot afford to lose any context.
lightmem2 mode conservative- Stabilizer rewrites context into cache-stable form but keeps it developer-visible
- Reduction applies light trimming only — removes truly redundant output
- Eviction is disabled — full history is always available
Best for: debugging, sensitive workflows, first-time use to build confidence.
Normal Mode
The default and recommended mode for most sessions.
lightmem2 mode normal- Stabilizer rewrites context and attaches dynamic content at the developer level
- Reduction applies balanced trimming — removes noise while keeping signal
- Eviction is enabled with standard thresholds
Best for: everyday agent work, long sessions, shared sessions.
Aggressive Mode
For maximum savings when you're willing to trade some context completeness.
lightmem2 mode aggressive- Stabilizer rewrites context and attaches dynamic content at the user level (further from the model)
- Reduction applies strong trimming — may discard borderline-useful output
- Eviction is enabled with lower thresholds — older context is dropped sooner
Best for: very long sessions, cost-sensitive environments, when you've verified quality in normal mode first.
Switching Modes Mid-Session
You can change modes at any time — no restart needed:
# Per-host
lightmem2 openclaw mode aggressive
lightmem2 codex mode conservative
lightmem2 claude-code mode normal
# Or inside OpenClaw session
/lightmem2 mode aggressiveThe new mode takes effect on the next turn.
How to Choose
- Start with normal. It's the safe default for most users.
- If you notice any missing context, switch to conservative.
- If normal works well and you want more savings, try aggressive.
- Check your report after a few turns to see the impact:
lightmem2 reportCompare token counts and cost across modes to find the right balance for your sessions.
Next
- Stable Prefix — how stabilization works
- Context Reduction — the trimming pipeline
- Context Eviction — lifecycle-aware pruning