# Context History & Snapshots ## History Track every context you generate over time. ### Features - **Automatic saving** - Every generated context is saved with a timestamp - **Search and filter** - Find past contexts quickly - **Diff comparison** - Compare versions to see what changed - **One-click restore** - Copy any past context back to clipboard - **Configurable retention** - Control storage limits and auto-cleanup ### Settings | Setting | Description | Default | |---------|-------------|---------| | **Enabled** | Save generated contexts | On | | **Storage folder** | Where to store history | `.context-history` | | **Max entries** | Limit stored entries | 50 | | **Auto-cleanup** | Delete after X days | 30 | ### Usage ``` Ctrl+P > "Promptfire: View context history" ``` Browse, search, compare, and restore any previous context. ## Snapshots Snapshots save a context "recipe" — the exact combination of notes, settings, and template — so you can replay it later. ### Usage ``` Ctrl+P > "Promptfire: View context snapshots" ``` Browse, replay, or delete saved snapshots. Replaying a snapshot re-reads the files with current content and re-applies the template, giving you a fresh context from the same recipe. Snapshots are managed in **Settings > History > Snapshots**.