Fixing Memory Drift: Keeping Long Sessions on Track
Guardrails to keep long-running agent sessions aligned to goals.
Steps
- Re-anchor the original objective each turn.
- Prune irrelevant memory with a relevance scorer.
- Persist state snapshots for recovery.
- Summarize history when context grows large.
- Track failed attempts to avoid repetition.