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.21 ·

Shell Completion Cache Management

Entry
JSON All of v2.1.21
EntryKind: in v2.1.21,
ChangesSection of the release
What

Shell completion files are now automatically generated and cached, with auto-regeneration on updates.

Usage

Completion files are stored at:

  • ~/.claude/completion.bash for bash
  • ~/.claude/completion.zsh for zsh
  • ~/.claude/completion.fish for fish (stored in $XDG_CONFIG_HOME/fish/config.fish)
Details
  • Completion caches are automatically regenerated after Claude Code updates
  • Uses claude completion <shell-flag> --output <cache-file> under the hood
  • Logs show update: Regenerating <shell> completion cache and update: Regenerated <shell> completion cache at <path>
  • Improves shell startup performance by avoiding regenerating completions on every shell launch
Evidence

k69() at line 184272-184299 (shell detection, contains "completion.bash", "completion.fish", "completion.zsh"), wq6() at line 184307 (cache regeneration, contains "update: Regenerating" and "completion cache")

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.21 →

Feedback