DriftGuard
Monitors real-time AI conversation health and context degradation in popular AI CLIs to advise users on when to refresh a session.
Long-running AI chat sessions often degrade as the model's context window fills, leading to repetition and loss of focus. DriftGuard provides a real-time monitoring solution for AI CLIs like Claude Code, Gemini CLI, Codex CLI, and Cursor. It directly reads session files and analyzes key signals, such as context depth, repetition, and response length, to calculate a comprehensive drift score. This helps users understand when their AI conversation is degrading and offers tools, like a context handoff generation, to ensure productive, focused interactions without losing important session history.
Key Features
01Supports Claude Code, Gemini CLI, Codex CLI, and Cursor
02Configurable drift measurement factors and warning thresholds
03Real-time AI conversation drift monitoring
04Generates comprehensive session handoffs for new sessions
05Directly analyzes session files without external APIs or UI
064 GitHub stars
Use Cases
01Seamlessly transitioning AI context across multiple sessions using generated handoffs.
02Optimizing AI assistant interaction for sustained productivity and focused outcomes.
03Preventing AI conversation degradation in long coding or research sessions.