Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.208 ·

Shell history context integration (with opt-in)

Entry
JSON All of v2.1.208
EntryKind: in v2.1.208,
New FeaturesSection of the release
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 →

Feedback