{"version":"2.1.21","anchor":"shell-completion-cache-management","canonical_anchor":"shell-completion-cache-management","heading":"Shell Completion Cache Management","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.21\/e\/shell-completion-cache-management","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.21","markdown":"### Shell Completion Cache Management\n\n**What**\n\nShell completion files are now automatically generated and cached, with auto-regeneration on updates.\n\n**Usage**\n\nCompletion files are stored at:\n\n- `~\/.claude\/completion.bash` for bash\n- `~\/.claude\/completion.zsh` for zsh\n- `~\/.claude\/completion.fish` for fish (stored in `$XDG_CONFIG_HOME\/fish\/config.fish`)\n\n**Details**\n\n- Completion caches are automatically regenerated after Claude Code updates\n- Uses `claude completion <shell-flag> --output <cache-file>` under the hood\n- Logs show `update: Regenerating <shell> completion cache` and `update: Regenerated <shell> completion cache at <path>`\n- Improves shell startup performance by avoiding regenerating completions on every shell launch\n\n**Evidence**\n\n`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\"`)"}