Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.208 Home All releases olderv2.1.207 v2.1.209newer
Claude Code v2.1.208

Shell history context integration (with opt-in)

What

When 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.

Details
  • 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)
  • Only command words are included — raw history lines with inline arguments (which may contain secrets) are never read into the transcript
  • If the home directory is a network path (UNC share or automount), history is skipped to avoid unintended network authentication
  • The feature is gated by an explicit user opt-in at the Q3 context question; if not asked, history is marked "NOT GATHERED"
Evidence

History file paths (search for "~/.bash_history" and "PSReadLine")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.208 →