--- description: "VS Code Cognitive Reset: Scans active buffers to detect drift and realign." --- # Cognitive Realignment (VS Code Edition) ## Phase 1: Context Retrieval (RAG) **Execute these lookups to ground your analysis:** 1. **Search Workspace:** `@core.instructions.md` for "Cognitive Stabilization Protocol". 2. **Search Workspace:** `SESSION_SNAPSHOT*.md` (limit 1, sort newest) to retrieve the **Last Known Truth**. 3. **Analyze State:** Read the currently active file and the last 10 lines of the terminal (if accessible) to determine **Current Action**. ## Phase 2: The Drift Check Compare **Current Action** (Step 3) against **Last Known Truth** (Step 2). * **Drift Criteria:** Are we editing files unrelated to the Snapshot's "Next Session Priorities"? * **Decision:** If yes, initiate **Pruning Sequence**. ## Phase 3: The Output Generate the "Heads-Up Display" defined in the retrieved Protocol. * **Action:** If a specific command is needed to get back on track (e.g., `git checkout main`), provide it.