What problem does it solve?
It prevents multi-turn coding agents from silently derailing by detecting when stale context (“context bleed”) is biasing outputs, and then resetting or trimming the session state at the smallest correct cut.
Core Features & Use Cases
- When to activate context hygiene: targets topic shifts, window/length warnings, and “weird behavior” like repeating corrected mistakes or referencing removed decisions.
- Four-step SOP across tools: recognize the symptom, save durable “keepers,” clear/trim with the right blast radius, then restart with a focused summary.
- Cross-framework consistency: maps the same discipline onto Aider (/clear,/reset,/drop), Claude Code (/clear), CrewAI (memory=False and re-instantiation), and LangGraph (new thread_id, update_state, subgraph isolation).
Use cases include: finishing feature A then switching to a bugfix within the same session, recovering from repeated edit failures after bloated history, and debugging when “it still remembers” due to persistent stores.
Quick Start
Ask the AI to apply Session-State Hygiene by naming the context-bleed symptom, saving a one-paragraph durable summary, clearing the session state appropriately for your tool, and restarting with the objective.