--- description: "VS Code Wrap-Up: Generates and saves the status file." --- # Session Wrap-Up (VS Code Edition) ## 1. Template Retrieval * **Search Workspace:** Find `documentation/templates/SNAPSHOT_TEMPLATE.md`. * *Fallback:* If not found, use the standard format below. ## 2. Context Aggregation * **Git Diff:** Analyze staged/unstaged changes to populate "Files Changed". * **RAG Search:** Search for "@TODO" or "FIXME" comments added *this session* to populate "New Technical Debt". ## 3. Execution 1. **Generate:** Create the Markdown content filling the Template slots. 2. **Action:** Write file to `documentation/project-history/SESSION_SNAPSHOT_YYYY-MM-DD.md`. 3. **Git:** Prompt user to stage and commit this new file.