{"version":"2.1.208","anchor":"shell-history-context-integration-with-opt-in","canonical_anchor":"shell-history-context-integration-with-opt-in","heading":"Shell history context integration (with opt-in)","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.208\/e\/shell-history-context-integration-with-opt-in","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.208","markdown":"### Shell history context integration (with opt-in)\n\n**What**\n\nWhen a user opts in at the context-gathering prompt, Claude now reads shell command history from common history files and includes a filtered view (command words only, no arguments that might carry secrets) in the system prompt context.\n\n**Details**\n\n- Supported history files: `~\/.bash_history`, `~\/.zsh_history`, `~\/.local\/share\/fish\/fish_history`, `~\/.local\/share\/powershell\/PSReadLine\/ConsoleHost_history.txt` (Linux\/macOS), and `%APPDATA%\\...\\PSReadLine\\ConsoleHost_history.txt` (Windows)\n- Only command words are included \u2014 raw history lines with inline arguments (which may contain secrets) are never read into the transcript\n- If the home directory is a network path (UNC share or automount), history is skipped to avoid unintended network authentication\n- The feature is gated by an explicit user opt-in at the Q3 context question; if not asked, history is marked \"NOT GATHERED\"\n\n**Evidence**\n\nHistory file paths (search for `\"~\/.bash_history\"` and `\"PSReadLine\"`)"}